"
+ ]
+ },
+ "is_alphanumeric": {
+ "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time"
}
- }
+ },
+ "required": [
+ "id",
+ "key_prefix",
+ "url_template",
+ "is_alphanumeric"
+ ]
}
}
}
@@ -669856,10 +712159,6 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
}
],
"previews": [],
@@ -669869,7 +712168,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Administration\" repository permissions": "read"
}
]
}
@@ -669877,10 +712176,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
- "title": "Delete a repository ruleset",
+ "requestPath": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
+ "title": "Delete an autolink reference from a repository",
"category": "repos",
- "subcategory": "rules",
+ "subcategory": "autolinks",
"parameters": [
{
"name": "owner",
@@ -669901,8 +712200,8 @@
}
},
{
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
+ "name": "autolink_id",
+ "description": "The unique identifier of the autolink.
",
"in": "path",
"required": true,
"schema": {
@@ -669911,7 +712210,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Delete a ruleset for a repository.
",
+ "descriptionHTML": "This deletes a single autolink reference by ID that was configured for the given repository.
\nInformation about autolinks are only available to repository administrators.
",
"codeExamples": [
{
"key": "default",
@@ -669921,483 +712220,2311 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "ruleset_id": "RULESET_ID"
+ "autolink_id": "AUTOLINK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "contents": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/contents/{path}",
+ "title": "Get repository content",
+ "category": "repos",
+ "subcategory": "contents",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "path",
+ "description": "path parameter
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
+ },
+ {
+ "name": "ref",
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory with the path parameter. If you omit the path parameter, you will receive the contents of the repository's root directory.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents for files and symlinks. \napplication/vnd.github.html+json : Returns the file contents in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \napplication/vnd.github.object+json : Returns the contents in a consistent object format regardless of the content type. For example, instead of an array of objects for a directory, the response will be an object with an entries attribute containing the array of objects. \n \nIf the content is a directory, the response will be an array of objects, one object for each item in the directory. When listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value should be \"submodule\". This behavior exists for backwards compatibility purposes . In the next major version of the API, the type will be returned as \"submodule\".
\nIf the content is a symlink and the symlink's target is a normal file in the repository, then the API responds with the content of the file. Otherwise, the API responds with an object describing the symlink itself.
\nIf the content is a submodule, the submodule_git_url field 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. If 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.
\nNotes :
\n\nTo get a repository's contents recursively, you can recursively get the tree . \nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve\nmore files, use the Git Trees API . \nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download. \nIf the requested file's size is:\n\n1 MB or smaller: All features of this endpoint are supported. \nBetween 1-100 MB: Only the raw or object custom media types are supported. Both will work as normal, except that when using the object media type, the content field will be an empty\nstring and the encoding field will be \"none\". To get the contents of these larger files, use the raw media type. \nGreater than 100 MB: This endpoint is not supported. \n \n \n ",
+ "codeExamples": [
+ {
+ "key": "response-if-content-is-a-file",
+ "request": {
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/vnd.github.object",
+ "description": "Response if content is a file
",
+ "example": {
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "IyBZb2dhIEJvmsgaW4gcHJvZ3Jlc3MhIEZlZWwgdAoKOndhcm5pbmc6IFdvc\\nZnJlZSBmUgdG8gY0byBjaGVjayBvdXQgdGhlIGFwcCwgYnV0IGJlIHN1c29t\\nZSBiYWNrIG9uY2UgaXQgaXMgY29tcGxldGUuCgpBIHdlYiBhcHAgdGhhdCBs\\nZWFkcyB5b3UgdGhyb3VnaCBhIHlvZ2Egc2Vzc2lvbi4KCltXb3Jrb3V0IG5v\\ndyFdKGh0dHBzOi8vc2tlZHdhcmRzODguZ2l0aHViLmlvL3lvZ2EvKQoKPGlt\\nZyBzcmM9InNyYy9pbWFnZXMvbWFza2FibGVfaWNvbl81MTIucG5nIiBhbHQ9\\nImJvdCBsaWZ0aW5nIHdlaWdodHMiIHdpZHRoPSIxMDAiLz4KCkRvIHlvdSBo\\nYXZlIGZlZWRiYWNrIG9yIGlkZWFzIGZvciBpbXByb3ZlbWVudD8gW09wZW4g\\nYW4gaXNzdWVdKGh0dHBzOi8vZ2l0aHViLmNvbS9za2Vkd2FyZHM4OC95b2dh\\nL2lzc3Vlcy9uZXcpLgoKV2FudCBtb3JlIGdhbWVzPyBWaXNpdCBbQ25TIEdh\\nbWVzXShodHRwczovL3NrZWR3YXJkczg4LmdpdGh1Yi5pby9wb3J0Zm9saW8v\\nKS4KCiMjIERldmVsb3BtZW50CgpUbyBhZGQgYSBuZXcgcG9zZSwgYWRkIGFu\\nIGVudHJ5IHRvIHRoZSByZWxldmFudCBmaWxlIGluIGBzcmMvYXNhbmFzYC4K\\nClRvIGJ1aWxkLCBydW4gYG5wbSBydW4gYnVpbGRgLgoKVG8gcnVuIGxvY2Fs\\nbHkgd2l0aCBsaXZlIHJlbG9hZGluZyBhbmQgbm8gc2VydmljZSB3b3JrZXIs\\nIHJ1biBgbnBtIHJ1biBkZXZgLiAoSWYgYSBzZXJ2aWNlIHdvcmtlciB3YXMg\\ncHJldmlvdXNseSByZWdpc3RlcmVkLCB5b3UgY2FuIHVucmVnaXN0ZXIgaXQg\\naW4gY2hyb21lIGRldmVsb3BlciB0b29sczogYEFwcGxpY2F0aW9uYCA+IGBT\\nZXJ2aWNlIHdvcmtlcnNgID4gYFVucmVnaXN0ZXJgLikKClRvIHJ1biBsb2Nh\\nbGx5IGFuZCByZWdpc3RlciB0aGUgc2VydmljZSB3b3JrZXIsIHJ1biBgbnBt\\nIHN0YXJ0YC4KClRvIGRlcGxveSwgcHVzaCB0byBgbWFpbmAgb3IgbWFudWFs\\nbHkgdHJpZ2dlciB0aGUgYC5naXRodWIvd29ya2Zsb3dzL2RlcGxveS55bWxg\\nIHdvcmtmbG93Lgo=\\n",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
+ }
+ },
+ "schema": {
+ "title": "Content Tree",
+ "description": "Content Tree",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "entries": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-if-content-is-a-directory",
+ "request": {
+ "description": "Example 2: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/vnd.github.object",
+ "description": "Response if content is a directory and the application/vnd.github.v3.object media type is requested
",
+ "example": {
+ "type": "dir",
+ "size": 0,
+ "name": "src",
+ "path": "src",
+ "sha": "2962be1c94eaae9794b3080790ec9d74b2fa8358",
+ "url": "https://api.github.com/repos/octocat/octorepo/contents/src?ref=main",
+ "git_url": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html_url": "https://github.com/octocat/octorepo/blob/main/src",
+ "download_url": "https://raw.githubusercontent.com/octocat/octorepo/main/src",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/octorepo/contents/src",
+ "git": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html": "https://github.com/octocat/octorepo/blob/main/src"
+ },
+ "entries": [
+ {
+ "type": "file",
+ "size": 625,
+ "name": "app.js",
+ "path": "src/app.js",
+ "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "url": "https://api.github.com/repos/octocat/octorepo/contents/src/app.js",
+ "git_url": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html_url": "https://github.com/octocat/octorepo/blob/main/src/app.js",
+ "download_url": "https://raw.githubusercontent.com/octocat/octorepo/main/src/app.js",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/octorepo/contents/src/app.js",
+ "git": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html": "https://github.com/octocat/octorepo/blob/main/src/app.js"
+ }
+ },
+ {
+ "type": "dir",
+ "size": 0,
+ "name": "images",
+ "path": "src/images",
+ "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "url": "https://api.github.com/repos/octocat/octorepo/contents/src/images",
+ "git_url": "https://api.github.com/repos/octocat/octorepo/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html_url": "https://github.com/octocat/octorepo/tree/main/src/images",
+ "download_url": null,
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/octorepo/contents/src/images",
+ "git": "https://api.github.com/repos/octocat/octorepo/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html": "https://github.com/octocat/octorepo/tree/main/src/images"
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Content Tree",
+ "description": "Content Tree",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "entries": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-if-content-is-a-file",
+ "request": {
+ "description": "Example 3: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response if content is a file
",
+ "example": {
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "IyBZb2dhIEJvmsgaW4gcHJvZ3Jlc3MhIEZlZWwgdAoKOndhcm5pbmc6IFdvc\\nZnJlZSBmUgdG8gY0byBjaGVjayBvdXQgdGhlIGFwcCwgYnV0IGJlIHN1c29t\\nZSBiYWNrIG9uY2UgaXQgaXMgY29tcGxldGUuCgpBIHdlYiBhcHAgdGhhdCBs\\nZWFkcyB5b3UgdGhyb3VnaCBhIHlvZ2Egc2Vzc2lvbi4KCltXb3Jrb3V0IG5v\\ndyFdKGh0dHBzOi8vc2tlZHdhcmRzODguZ2l0aHViLmlvL3lvZ2EvKQoKPGlt\\nZyBzcmM9InNyYy9pbWFnZXMvbWFza2FibGVfaWNvbl81MTIucG5nIiBhbHQ9\\nImJvdCBsaWZ0aW5nIHdlaWdodHMiIHdpZHRoPSIxMDAiLz4KCkRvIHlvdSBo\\nYXZlIGZlZWRiYWNrIG9yIGlkZWFzIGZvciBpbXByb3ZlbWVudD8gW09wZW4g\\nYW4gaXNzdWVdKGh0dHBzOi8vZ2l0aHViLmNvbS9za2Vkd2FyZHM4OC95b2dh\\nL2lzc3Vlcy9uZXcpLgoKV2FudCBtb3JlIGdhbWVzPyBWaXNpdCBbQ25TIEdh\\nbWVzXShodHRwczovL3NrZWR3YXJkczg4LmdpdGh1Yi5pby9wb3J0Zm9saW8v\\nKS4KCiMjIERldmVsb3BtZW50CgpUbyBhZGQgYSBuZXcgcG9zZSwgYWRkIGFu\\nIGVudHJ5IHRvIHRoZSByZWxldmFudCBmaWxlIGluIGBzcmMvYXNhbmFzYC4K\\nClRvIGJ1aWxkLCBydW4gYG5wbSBydW4gYnVpbGRgLgoKVG8gcnVuIGxvY2Fs\\nbHkgd2l0aCBsaXZlIHJlbG9hZGluZyBhbmQgbm8gc2VydmljZSB3b3JrZXIs\\nIHJ1biBgbnBtIHJ1biBkZXZgLiAoSWYgYSBzZXJ2aWNlIHdvcmtlciB3YXMg\\ncHJldmlvdXNseSByZWdpc3RlcmVkLCB5b3UgY2FuIHVucmVnaXN0ZXIgaXQg\\naW4gY2hyb21lIGRldmVsb3BlciB0b29sczogYEFwcGxpY2F0aW9uYCA+IGBT\\nZXJ2aWNlIHdvcmtlcnNgID4gYFVucmVnaXN0ZXJgLikKClRvIHJ1biBsb2Nh\\nbGx5IGFuZCByZWdpc3RlciB0aGUgc2VydmljZSB3b3JrZXIsIHJ1biBgbnBt\\nIHN0YXJ0YC4KClRvIGRlcGxveSwgcHVzaCB0byBgbWFpbmAgb3IgbWFudWFs\\nbHkgdHJpZ2dlciB0aGUgYC5naXRodWIvd29ya2Zsb3dzL2RlcGxveS55bWxg\\nIHdvcmtmbG93Lgo=\\n",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
+ }
+ },
+ "schema": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
+ ]
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
+ },
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
+ }
+ ]
}
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
- "title": "Get repository ruleset history",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
}
},
{
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get the history of a repository ruleset.
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "response-if-content-is-a-directory",
"request": {
- "description": "Example",
+ "description": "Example 4: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "ruleset_id": "RULESET_ID"
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Response if content is a directory and the application/json media type is requested
",
"example": [
{
- "version_id": 3,
- "actor": {
- "id": 1,
- "type": "User"
- },
- "updated_at": "2024-010-23T16:29:47Z"
- },
- {
- "version_id": 2,
- "actor": {
- "id": 2,
- "type": "User"
- },
- "updated_at": "2024-09-23T16:29:47Z"
+ "type": "file",
+ "size": 625,
+ "name": "octokit.rb",
+ "path": "lib/octokit.rb",
+ "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/lib/octokit.rb",
+ "_links": {
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb",
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb"
+ }
},
{
- "version_id": 1,
- "actor": {
- "id": 1,
- "type": "User"
- },
- "updated_at": "2024-08-23T16:29:47Z"
+ "type": "dir",
+ "size": 0,
+ "name": "octokit",
+ "path": "lib/octokit",
+ "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html_url": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit",
+ "download_url": null,
+ "_links": {
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit",
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit"
+ }
}
],
"schema": {
- "type": "array",
- "items": {
- "title": "Ruleset version",
- "type": "object",
- "description": "The historical version of a ruleset",
- "required": [
- "version_id",
- "actor",
- "updated_at"
- ],
- "properties": {
- "version_id": {
- "type": "integer",
- "description": "The ID of the previous version of the ruleset"
- },
- "actor": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
"type": "object",
- "description": "The actor who updated the ruleset",
"properties": {
- "id": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
+ ]
+ },
+ "size": {
"type": "integer"
},
- "type": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
"type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
}
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
}
},
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
+ },
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
}
- }
+ ]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}",
- "title": "Get repository ruleset version",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
},
{
- "name": "version_id",
- "description": "The ID of the version
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a version of a repository ruleset.
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "response-if-content-is-a-symlink",
"request": {
- "description": "Example",
+ "description": "Example 5: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "ruleset_id": "RULESET_ID",
- "version_id": "VERSION_ID"
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "version_id": 3,
- "actor": {
- "id": 1,
- "type": "User"
+ "description": "Response if content is a symlink and the application/json media type is requested
",
+ "example": {
+ "type": "symlink",
+ "target": "/path/to/symlink/target",
+ "size": 23,
+ "name": "some-symlink",
+ "path": "bin/some-symlink",
+ "sha": "452a98979c88e093d682cab404a3ec82babebb48",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/bin/some-symlink",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink"
+ }
+ },
+ "schema": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
+ ]
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
},
- "updated_at": "2024-010-23T16:29:47Z",
- "state": {
- "id": 42,
- "name": "super cool ruleset",
- "target": "branch",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
],
- "exclude": [
- "refs/heads/dev*"
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
]
}
},
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
- }
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
]
- }
- }
- ],
- "schema": {
- "allOf": [
+ },
{
- "title": "Ruleset version",
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
"type": "object",
- "description": "The historical version of a ruleset",
- "required": [
- "version_id",
- "actor",
- "updated_at"
- ],
"properties": {
- "version_id": {
- "type": "integer",
- "description": "The ID of the previous version of the ruleset"
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
},
- "actor": {
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
"type": "object",
- "description": "The actor who updated the ruleset",
"properties": {
- "id": {
- "type": "integer"
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "type": {
- "type": "string"
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
- }
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
}
- }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
},
{
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
"type": "object",
- "required": [
- "state"
- ],
"properties": {
- "state": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
"type": "object",
- "description": "The state of the ruleset version"
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
}
- }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
}
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "tags": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/tags/protection",
- "title": "Closing down - List tag protection states for a repository",
- "category": "repos",
- "subcategory": "tags",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis returns the tag protection states of a repository.
\nThis information is only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "response-if-content-is-a-submodule",
"request": {
- "description": "Example",
+ "description": "Example 6: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 2,
- "pattern": "v1.*"
+ "description": "Response if content is a submodule and the application/json media type is requested
",
+ "example": {
+ "type": "submodule",
+ "submodule_git_url": "git://github.com/jquery/qunit.git",
+ "size": 0,
+ "name": "qunit",
+ "path": "test/qunit",
+ "sha": "6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "url": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master",
+ "git_url": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "html_url": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "download_url": null,
+ "_links": {
+ "git": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "self": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master",
+ "html": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9"
}
- ],
+ },
"schema": {
- "type": "array",
- "items": {
- "title": "Tag protection",
- "description": "Tag protection",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "created_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
+ ]
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
]
+ }
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
+ }
},
- "enabled": {
- "type": "boolean",
- "examples": [
- true
- ]
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
},
- "pattern": {
- "type": "string",
- "examples": [
- "v1.*"
- ]
- }
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
},
- "required": [
- "pattern"
- ]
- }
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
+ }
+ ]
}
}
}
@@ -670407,6 +714534,14 @@
"httpStatusCode": "200",
"description": "OK
"
},
+ {
+ "httpStatusCode": "302",
+ "description": "Found
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
{
"httpStatusCode": "403",
"description": "Forbidden
"
@@ -670423,18 +714558,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "read"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/tags/protection",
- "title": "Closing down - Create a tag protection state for a repository",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/contents/{path}",
+ "title": "Create or update file contents",
"category": "repos",
- "subcategory": "tags",
+ "subcategory": "contents",
"parameters": [
{
"name": "owner",
@@ -670453,95 +714589,608 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "path",
+ "description": "path parameter
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
}
],
"bodyParameters": [
{
"type": "string",
- "name": "pattern",
+ "name": "message",
"in": "body",
- "description": "An optional glob pattern to match against when enforcing tag protection.
",
+ "description": "The commit message.
",
"isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "content",
+ "in": "body",
+ "description": "The new file content, using Base64 encoding.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "in": "body",
+ "description": "Required if you are updating a file . The blob SHA of the file being replaced.
"
+ },
+ {
+ "type": "string",
+ "name": "branch",
+ "in": "body",
+ "description": "The branch name. Default: the repository’s default branch.
"
+ },
+ {
+ "type": "object",
+ "name": "committer",
+ "in": "body",
+ "description": "The person that committed the file. Default: the authenticated user.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "date",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "author",
+ "in": "body",
+ "description": "The author of the file. Default: The committer or the authenticated user if you omit committer.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "date",
+ "description": ""
+ }
+ ]
}
],
- "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis creates a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
+ "descriptionHTML": "Creates a new file or replaces an existing file in a repository.
\n Note
\n
\nIf you use this endpoint and the \"Delete a file \" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
\n
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint. The workflow scope is also required in order to modify files in the .github/workflows directory.
",
"codeExamples": [
{
- "key": "default",
+ "key": "example-for-creating-a-file",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example for creating a file",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "pattern": "v1.*"
+ "message": "my commit message",
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "content": "bXkgbmV3IGZpbGUgY29udGVudHM="
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "content": {
+ "name": "hello.txt",
+ "path": "notes/hello.txt",
+ "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
+ "size": 9,
+ "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt",
+ "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
+ "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt",
+ "type": "file",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
+ "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt"
+ }
+ },
+ "commit": {
+ "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
+ "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==",
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "author": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "committer": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "message": "my commit message",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
+ "sha": "691272480426f78a0138979dd3ce63b77f706feb"
+ },
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
+ }
+ ],
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
+ }
+ }
+ },
+ "schema": {
+ "title": "File Commit",
+ "description": "File Commit",
+ "type": "object",
+ "required": [
+ "content",
+ "commit"
+ ],
+ "properties": {
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "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",
+ "null"
+ ]
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "key": "example-for-updating-a-file",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example for updating a file",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "message": "a new commit message",
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "content": "bXkgdXBkYXRlZCBmaWxlIGNvbnRlbnRz",
+ "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "enabled": true
+ "content": {
+ "name": "hello.txt",
+ "path": "notes/hello.txt",
+ "sha": "a56507ed892d05a37c6d6128c260937ea4d287bd",
+ "size": 9,
+ "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt",
+ "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd",
+ "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt",
+ "type": "file",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd",
+ "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt"
+ }
+ },
+ "commit": {
+ "sha": "18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
+ "node_id": "MDY6Q29tbWl0MThhNDNjZDhlMWUzYTc5Yzc4NmUzZDgwOGE3M2QyM2I2ZDIxMmIxNg==",
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
+ "author": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "committer": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "message": "my commit message",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f",
+ "sha": "9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f"
+ },
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/da5a433788da5c255edad7979b328b67d79f53f6",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/da5a433788da5c255edad7979b328b67d79f53f6",
+ "sha": "da5a433788da5c255edad7979b328b67d79f53f6"
+ }
+ ],
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
+ }
+ }
},
"schema": {
- "title": "Tag protection",
- "description": "Tag protection",
+ "title": "File Commit",
+ "description": "File Commit",
"type": "object",
+ "required": [
+ "content",
+ "commit"
+ ],
"properties": {
- "id": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "created_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "enabled": {
- "type": "boolean",
- "examples": [
- true
- ]
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "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"
+ }
+ }
+ }
+ }
},
- "pattern": {
- "type": "string",
- "examples": [
- "v1.*"
- ]
+ "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",
+ "null"
+ ]
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ }
+ }
+ }
}
- },
- "required": [
- "pattern"
- ]
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -670551,7 +715200,11 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Contents\" repository permissions": "write"
+ },
+ {
+ "\"Contents\" repository permissions": "write",
+ "\"Workflows\" repository permissions": "write"
}
]
}
@@ -670559,10 +715212,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/tags/protection/{tag_protection_id}",
- "title": "Closing down - Delete a tag protection state for a repository",
+ "requestPath": "/repos/{owner}/{repo}/contents/{path}",
+ "title": "Delete a file",
"category": "repos",
- "subcategory": "tags",
+ "subcategory": "contents",
"parameters": [
{
"name": "owner",
@@ -670583,324 +715236,301 @@
}
},
{
- "name": "tag_protection_id",
- "description": "The unique identifier of the tag protection.
",
+ "name": "path",
+ "description": "path parameter
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis deletes a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "tag_protection_id": "TAG_PROTECTION_ID"
- }
+ "type": "string"
},
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
+ "x-multi-segment": true
}
],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
+ "bodyParameters": [
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "type": "string",
+ "name": "message",
+ "in": "body",
+ "description": "The commit message.
",
+ "isRequired": true
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "webhooks": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks",
- "title": "List repository webhooks",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "sha",
+ "in": "body",
+ "description": "The blob SHA of the file being deleted.
",
+ "isRequired": true
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "branch",
+ "in": "body",
+ "description": "The branch name. Default: the repository’s default branch
"
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "object",
+ "name": "committer",
+ "in": "body",
+ "description": "object containing information about the committer.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "The name of the author (or committer) of the commit
"
+ },
+ {
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author (or committer) of the commit
"
+ }
+ ]
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "object",
+ "name": "author",
+ "in": "body",
+ "description": "object containing information about the author.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "The name of the author (or committer) of the commit
"
+ },
+ {
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author (or committer) of the commit
"
+ }
+ ]
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists webhooks for a repository. last response may return null if there have not been any deliveries within 30 days.
",
+ "descriptionHTML": "Deletes a file in a repository.
\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.
\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.
\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.
\n Note
\n
\nIf you use this endpoint and the \"Create or update file contents \" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "message": "my commit message",
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "sha": "329688480d39049927147c162b9d2deaf885005f"
+ },
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
+ "example": {
+ "content": null,
+ "commit": {
+ "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
+ "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==",
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "author": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
},
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
+ "committer": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "message": "my commit message",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
+ "sha": "691272480426f78a0138979dd3ce63b77f706feb"
+ },
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
+ }
+ ],
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
}
}
- ],
+ },
"schema": {
- "type": "array",
- "items": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "description": "Unique identifier of the webhook.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
- "type": "string",
- "examples": [
- "web"
- ]
- },
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
+ "title": "File Commit",
+ "description": "File Commit",
+ "type": "object",
+ "required": [
+ "content",
+ "commit"
+ ],
+ "properties": {
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "name": {
"type": "string"
},
- "examples": [
- "push",
- "pull_request"
- ]
- },
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "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"
+ }
}
}
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
- },
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
- },
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
- },
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
- },
- "last_response": {
- "title": "Hook Response",
- "type": "object",
- "properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "message": {
- "type": [
- "string",
- "null"
- ]
+ }
+ },
+ "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"
+ }
}
},
- "required": [
- "code",
- "status",
- "message"
- ]
+ "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",
+ "null"
+ ]
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ }
+ }
}
- },
- "required": [
- "id",
- "url",
- "type",
- "name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
- ]
+ }
}
}
}
@@ -670914,6 +715544,18 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -670923,18 +715565,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Contents\" repository permissions": "write"
+ },
+ {
+ "\"Contents\" repository permissions": "write",
+ "\"Workflows\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks",
- "title": "Create a repository webhook",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/readme",
+ "title": "Get a repository README",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "contents",
"parameters": [
{
"name": "owner",
@@ -670953,284 +715599,160 @@
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
"
- },
- {
- "type": "object",
- "name": "config",
- "in": "body",
- "description": "Key/value pairs to provide settings for this webhook.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "url",
- "description": "The URL to which the payloads will be delivered.
"
- },
- {
- "type": "string",
- "name": "content_type",
- "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
- },
- {
- "type": "string",
- "name": "secret",
- "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
- },
- {
- "type": "string or number",
- "name": "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": "array of strings",
- "name": "events",
- "in": "body",
- "description": "Determines what events the hook is triggered for.
",
- "default": [
- "push"
- ]
},
{
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
- "default": true
+ "name": "ref",
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
}
],
- "descriptionHTML": "Repositories can have multiple webhooks installed. Each webhook should have a unique config. Multiple webhooks can\nshare the same config as long as those webhooks do not have any events that overlap.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets the preferred README for a repository.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents. This is the default if you do not specify a media type. \napplication/vnd.github.html+json : Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \n ",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "url": "https://example.com/webhook",
- "content_type": "json",
- "insecure_ssl": "0"
- }
- },
"parameters": {
"owner": "OWNER",
"repo": "REPO"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
- },
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "encoded content ...",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
}
},
"schema": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
+ "title": "Content File",
+ "description": "Content File",
"type": "object",
"properties": {
"type": {
- "type": "string"
- },
- "id": {
- "description": "Unique identifier of the webhook.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
"type": "string",
- "examples": [
- "web"
+ "enum": [
+ "file"
]
},
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
+ "encoding": {
+ "type": "string"
},
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "push",
- "pull_request"
- ]
+ "size": {
+ "type": "integer"
},
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
- }
+ "name": {
+ "type": "string"
},
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
+ "path": {
+ "type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
},
"url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
+ "format": "uri"
},
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "last_response": {
- "title": "Hook Response",
+ "_links": {
"type": "object",
"properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "message": {
+ "html": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
"required": [
- "code",
- "status",
- "message"
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
]
}
},
"required": [
- "id",
- "url",
- "type",
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
"name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
]
}
}
@@ -671238,12 +715760,12 @@
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "404",
@@ -671261,18 +715783,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "title": "Get a repository webhook",
+ "requestPath": "/repos/{owner}/{repo}/readme/{dir}",
+ "title": "Get a repository README for a directory",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "contents",
"parameters": [
{
"name": "owner",
@@ -671293,17 +715816,27 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "dir",
+ "description": "The alternate path to look for a README file
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
+ },
+ "x-multi-segment": true
+ },
+ {
+ "name": "ref",
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config properties, see \"Get a webhook configuration for a repository .\"
",
+ "descriptionHTML": "Gets the README from a repository directory.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents. This is the default if you do not specify a media type. \napplication/vnd.github.html+json : Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \n ",
"codeExamples": [
{
"key": "default",
@@ -671313,7 +715846,7 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID"
+ "dir": "DIR"
}
},
"response": {
@@ -671321,199 +715854,131 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
- },
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "encoded content ...",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
}
},
"schema": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
+ "title": "Content File",
+ "description": "Content File",
"type": "object",
"properties": {
"type": {
- "type": "string"
- },
- "id": {
- "description": "Unique identifier of the webhook.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
"type": "string",
- "examples": [
- "web"
+ "enum": [
+ "file"
]
},
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
+ "encoding": {
+ "type": "string"
},
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "push",
- "pull_request"
- ]
+ "size": {
+ "type": "integer"
},
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
- }
+ "name": {
+ "type": "string"
},
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
+ "path": {
+ "type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
},
"url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
+ "format": "uri"
},
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "last_response": {
- "title": "Hook Response",
+ "_links": {
"type": "object",
"properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "message": {
+ "html": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
"required": [
- "code",
- "status",
- "message"
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
]
}
},
"required": [
- "id",
- "url",
- "type",
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
"name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
]
}
}
@@ -671527,6 +715992,10 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -671536,18 +716005,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "title": "Update a repository webhook",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/tarball/{ref}",
+ "title": "Download a repository archive (tar)",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "contents",
"parameters": [
{
"name": "owner",
@@ -671568,308 +716038,40 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "ref",
"in": "path",
"required": true,
+ "x-multi-segment": true,
"schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "object",
- "name": "config",
- "in": "body",
- "description": "Configuration object of the webhook
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "url",
- "description": "The URL to which the payloads will be delivered.
"
- },
- {
- "type": "string",
- "name": "content_type",
- "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
- },
- {
- "type": "string",
- "name": "secret",
- "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
- },
- {
- "type": "string or number",
- "name": "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": "array of strings",
- "name": "events",
- "in": "body",
- "description": "Determines what events the hook is triggered for. This replaces the entire array of events.
",
- "default": [
- "push"
- ]
- },
- {
- "type": "array of strings",
- "name": "add_events",
- "in": "body",
- "description": "Determines a list of events to be added to the list of events that the Hook triggers for.
"
- },
- {
- "type": "array of strings",
- "name": "remove_events",
- "in": "body",
- "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
"
- },
- {
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
- "default": true
+ "type": "string"
+ },
+ "description": ""
}
],
- "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret set, you must provide the same secret or set a new secret or the secret will be removed. If you are only updating individual webhook config properties, use \"Update a webhook configuration for a repository .\"
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a redirect URL to download a tar archive for a repository. If you omit :ref, the repository’s default branch (usually\nmain) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe Location header to make a second GET request.
\n Note
\n
\nFor private repositories, these links are temporary and expire after five minutes.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "active": true,
- "add_events": [
- "pull_request"
- ]
- },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID"
+ "ref": "REF"
}
},
"response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
- },
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
- }
- },
- "schema": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "description": "Unique identifier of the webhook.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
- "type": "string",
- "examples": [
- "web"
- ]
- },
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "push",
- "pull_request"
- ]
- },
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
- }
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
- },
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
- },
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
- },
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
- },
- "last_response": {
- "title": "Hook Response",
- "type": "object",
- "properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "message": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "code",
- "status",
- "message"
- ]
- }
- },
- "required": [
- "id",
- "url",
- "type",
- "name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
- ]
- }
+ "statusCode": "302",
+ "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "302",
+ "description": "Found
"
}
],
"previews": [],
@@ -671879,18 +716081,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "title": "Delete a repository webhook",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/zipball/{ref}",
+ "title": "Download a repository archive (zip)",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "contents",
"parameters": [
{
"name": "owner",
@@ -671911,17 +716114,18 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "ref",
"in": "path",
"required": true,
+ "x-multi-segment": true,
"schema": {
- "type": "integer"
- }
+ "type": "string"
+ },
+ "description": ""
}
],
"bodyParameters": [],
- "descriptionHTML": "Delete a webhook for an organization.
\nThe authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook.
",
+ "descriptionHTML": "Gets a redirect URL to download a zip archive for a repository. If you omit :ref, the repository’s default branch (usually\nmain) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe Location header to make a second GET request.
\n Note
\n
\nFor private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.
\n
",
"codeExamples": [
{
"key": "default",
@@ -671931,23 +716135,19 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID"
+ "ref": "REF"
}
},
"response": {
- "statusCode": "204",
+ "statusCode": "302",
"description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "302",
+ "description": "Found
"
}
],
"previews": [],
@@ -671957,18 +716157,21 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
- },
+ }
+ ],
+ "custom-properties": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
- "title": "Get a webhook configuration for a repository",
+ "requestPath": "/repos/{owner}/{repo}/properties/values",
+ "title": "Get all custom property values for a repository",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "custom-properties",
"parameters": [
{
"name": "owner",
@@ -671987,19 +716190,10 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [],
- "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active state and events, use \"Get a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the read:repo_hook or repo scope to use this endpoint.
",
+ "descriptionHTML": "Gets all custom property values that are set for a repository.\nUsers with read access to the repository can use this endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -672008,61 +716202,62 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "content_type": "json",
- "insecure_ssl": "0",
- "secret": "********",
- "url": "https://example.com/webhook"
- },
+ "example": [
+ {
+ "property_name": "environment",
+ "value": "production"
+ },
+ {
+ "property_name": "service",
+ "value": "web"
+ },
+ {
+ "property_name": "team",
+ "value": "octocat"
+ }
+ ],
"schema": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
+ "type": "array",
+ "items": {
+ "title": "Custom Property Value",
+ "description": "Custom property name and associated value",
+ "type": "object",
+ "properties": {
+ "property_name": {
+ "type": "string",
+ "description": "The name of the property"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ],
+ "description": "The value assigned to the property",
+ "type": [
+ "null",
+ "string",
+ "array"
+ ]
+ }
},
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
+ "required": [
+ "property_name",
+ "value"
+ ]
}
}
}
@@ -672072,6 +716267,14 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -672081,18 +716284,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Metadata\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
- "title": "Update a webhook configuration for a repository",
+ "requestPath": "/repos/{owner}/{repo}/properties/values",
+ "title": "Create or update custom property values for a repository",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "custom-properties",
"parameters": [
{
"name": "owner",
@@ -672111,121 +716315,82 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [
{
- "type": "string",
- "name": "url",
- "in": "body",
- "description": "The URL to which the payloads will be delivered.
"
- },
- {
- "type": "string",
- "name": "content_type",
- "in": "body",
- "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
- },
- {
- "type": "string",
- "name": "secret",
- "in": "body",
- "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
- },
- {
- "type": "string or number",
- "name": "insecure_ssl",
+ "type": "array of objects",
+ "name": "properties",
"in": "body",
- "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.
"
+ "description": "A list of custom property names and associated values to apply to the repositories.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "property_name",
+ "description": "The name of the property
",
+ "isRequired": true
+ },
+ {
+ "type": "null or string or array",
+ "name": "value",
+ "description": "The value assigned to the property
",
+ "isRequired": true
+ }
+ ]
}
],
- "descriptionHTML": "Updates the webhook configuration for a repository. To update more information about the webhook, including the active state and events, use \"Update a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the write:repo_hook or repo scope to use this endpoint.
",
+ "descriptionHTML": "Create new or update existing custom property values for a repository.\nUsing a value of null for a custom property will remove or 'unset' the property value from the repository.
\nRepository admins and other users with the repository-level \"edit custom property values\" fine-grained permission can use this endpoint.
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example of updating content type and URL",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "content_type": "json",
- "url": "https://example.com/webhook"
+ "properties": [
+ {
+ "property_name": "environment",
+ "value": "production"
+ },
+ {
+ "property_name": "service",
+ "value": "web"
+ },
+ {
+ "property_name": "team",
+ "value": "octocat"
+ }
+ ]
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "content_type": "json",
- "insecure_ssl": "0",
- "secret": "********",
- "url": "https://example.com/webhook"
- },
- "schema": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
- }
- }
+ "statusCode": "204",
+ "description": "No Content when custom property values are successfully created or updated
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "204",
+ "description": "No Content when custom property values are successfully created or updated
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -672235,18 +716400,20 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Custom properties\" repository permissions": "write"
}
]
}
- },
+ }
+ ],
+ "forks": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
- "title": "List deliveries for a repository webhook",
+ "requestPath": "/repos/{owner}/{repo}/forks",
+ "title": "List forks",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "forks",
"parameters": [
{
"name": "owner",
@@ -672267,12 +716434,19 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
+ "name": "sort",
+ "description": "The sort order. stargazers will sort by star count.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "integer"
+ "type": "string",
+ "enum": [
+ "newest",
+ "oldest",
+ "stargazers",
+ "watchers"
+ ],
+ "default": "newest"
}
},
{
@@ -672285,17 +716459,17 @@
}
},
{
- "name": "cursor",
- "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
",
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "required": false,
"schema": {
- "type": "string"
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in a repository.
",
+ "descriptionHTML": "",
"codeExamples": [
{
"key": "default",
@@ -672304,8 +716478,7 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
@@ -672314,155 +716487,977 @@
"description": "Response
",
"example": [
{
- "id": 12345678,
- "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "delivered_at": "2019-06-03T00:57:16Z",
- "redelivery": false,
- "duration": 0.27,
- "status": "OK",
- "status_code": 200,
- "event": "issues",
- "action": "opened",
- "installation_id": 123,
- "repository_id": 456,
- "throttled_at": "2019-06-03T00:57:16Z"
- },
- {
- "id": 123456789,
- "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "delivered_at": "2019-06-04T00:57:16Z",
- "redelivery": true,
- "duration": 0.28,
- "status": "OK",
- "status_code": 200,
- "event": "issues",
- "action": "opened",
- "installation_id": 123,
- "repository_id": 456,
- "throttled_at": null
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": true,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "delete_branch_on_merge": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "spdx_id": "MIT",
+ "url": "https://api.github.com/licenses/mit",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
+ }
}
],
"schema": {
"type": "array",
"items": {
- "title": "Simple webhook delivery",
- "description": "Delivery made by a webhook, without request and response information.",
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the webhook delivery.",
"type": "integer",
"format": "int64",
"examples": [
- 42
+ 1296269
]
},
- "guid": {
- "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
+ "node_id": {
"type": "string",
"examples": [
- "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "delivered_at": {
- "description": "Time when the webhook delivery occurred.",
+ "name": {
"type": "string",
- "format": "date-time",
"examples": [
- "2021-05-12T20:33:44Z"
+ "Hello-World"
]
},
- "redelivery": {
- "description": "Whether the webhook delivery is a redelivery.",
- "type": "boolean",
+ "full_name": {
+ "type": "string",
"examples": [
- false
+ "octocat/Hello-World"
]
},
- "duration": {
- "description": "Time spent delivering.",
- "type": "number",
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 0.03
+ "https://github.com/octocat/Hello-World"
]
},
- "status": {
- "description": "Describes the response returned after attempting the delivery.",
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "failed to connect"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "status_code": {
- "description": "Status code received when delivery was made.",
- "type": "integer",
+ "archive_url": {
+ "type": "string",
"examples": [
- 502
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "event": {
- "description": "The event that triggered the delivery.",
+ "assignees_url": {
"type": "string",
"examples": [
- "issues"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "action": {
- "description": "The type of activity for the event that triggered the delivery.",
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
"type": [
"string",
"null"
- ],
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "opened"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "installation_id": {
- "description": "The id of the GitHub App installation associated with this event.",
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
"type": [
- "integer",
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
"null"
],
- "format": "int64",
+ "format": "date-time",
"examples": [
- 123
+ "2011-01-26T19:06:43Z"
]
},
- "repository_id": {
- "description": "The id of the repository associated with this event.",
+ "created_at": {
"type": [
- "integer",
+ "string",
"null"
],
- "format": "int64",
+ "format": "date-time",
"examples": [
- 123
+ "2011-01-26T19:01:12Z"
]
},
- "throttled_at": {
- "description": "Time when the webhook delivery was throttled.",
+ "updated_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"examples": [
- "2021-05-12T20:33:44Z"
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
"required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
"id",
- "guid",
- "delivered_at",
- "redelivery",
- "duration",
- "status",
- "status_code",
- "event",
- "action",
- "installation_id",
- "repository_id"
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
]
}
}
@@ -672477,10 +717472,6 @@
{
"httpStatusCode": "400",
"description": "Bad Request
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -672490,18 +717481,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Metadata\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
- "title": "Get a delivery for a repository webhook",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/forks",
+ "title": "Create a fork",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "forks",
"parameters": [
{
"name": "owner",
@@ -672520,3248 +717512,4685 @@
"schema": {
"type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "organization",
+ "in": "body",
+ "description": "Optional parameter to specify the organization name if forking into an organization.
"
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "When forking from an existing repository, a new name for the fork.
"
},
{
- "name": "delivery_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- },
- "description": ""
+ "type": "boolean",
+ "name": "default_branch_only",
+ "in": "body",
+ "description": "When forking from an existing repository, fork with only the default branch.
"
}
],
- "bodyParameters": [],
- "descriptionHTML": "Returns a delivery for a webhook configured in a repository.
",
+ "descriptionHTML": "Create a fork for the authenticated user.
\n Note
\n
\nForking 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 Support .
\n
\n Note
\n
\nAlthough this endpoint works with GitHub Apps, the GitHub App must be installed on the destination account with access to all repositories and on the source account with access to the source repository.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "organization": "octocat",
+ "name": "Hello-World",
+ "default_branch_only": true
+ },
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID",
- "delivery_id": "DELIVERY_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "202",
"contentType": "application/json",
"description": "Response
",
"example": {
- "id": 12345678,
- "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "delivered_at": "2019-06-03T00:57:16Z",
- "redelivery": false,
- "duration": 0.27,
- "status": "OK",
- "status_code": 200,
- "event": "issues",
- "action": "opened",
- "installation_id": 123,
- "repository_id": 456,
- "url": "https://www.example.com",
- "throttled_at": "2019-06-03T00:57:16Z",
- "request": {
- "headers": {
- "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "Accept": "*/*",
- "X-GitHub-Hook-ID": "42",
- "User-Agent": "GitHub-Hookshot/b8c71d8",
- "X-GitHub-Event": "issues",
- "X-GitHub-Hook-Installation-Target-ID": "123",
- "X-GitHub-Hook-Installation-Target-Type": "repository",
- "content-type": "application/json",
- "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d"
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "language": null,
+ "forks_count": 9,
+ "forks": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "open_issues": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "pull": true,
+ "push": false,
+ "admin": false
+ },
+ "allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "payload": {
- "action": "opened",
- "issue": {
- "body": "foo"
- },
- "repository": {
- "id": 123
- }
- }
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
},
- "response": {
- "headers": {
- "Content-Type": "text/html;charset=utf-8"
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "schema": {
+ "title": "Full Repository",
+ "description": "Full Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
},
- "payload": "ok"
- }
- },
- "schema": {
- "title": "Webhook delivery",
- "description": "Delivery made by a webhook.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the delivery.",
- "type": "integer",
+ "releases_url": {
+ "type": "string",
"examples": [
- 42
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "guid": {
- "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
+ "ssh_url": {
"type": "string",
"examples": [
- "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ "git@github.com:octocat/Hello-World.git"
]
},
- "delivered_at": {
- "description": "Time when the delivery was delivered.",
+ "stargazers_url": {
"type": "string",
- "format": "date-time",
+ "format": "uri",
"examples": [
- "2021-05-12T20:33:44Z"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "redelivery": {
- "description": "Whether the delivery is a redelivery.",
- "type": "boolean",
+ "statuses_url": {
+ "type": "string",
"examples": [
- false
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "duration": {
- "description": "Time spent delivering.",
- "type": "number",
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 0.03
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "status": {
- "description": "Description of the status of the attempted delivery",
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "failed to connect"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "status_code": {
- "description": "Status code received when delivery was made.",
- "type": "integer",
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 502
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "event": {
- "description": "The event that triggered the delivery.",
+ "teams_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "issues"
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "action": {
- "description": "The type of activity for the event that triggered the delivery.",
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
"type": [
"string",
"null"
],
+ "format": "uri",
"examples": [
- "opened"
+ "git:git.example.com/octocat/Hello-World"
]
},
- "installation_id": {
- "description": "The id of the GitHub App installation associated with this event.",
- "type": [
- "integer",
- "null"
- ],
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 123
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "repository_id": {
- "description": "The id of the repository associated with this event.",
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
"type": [
- "integer",
+ "string",
"null"
],
+ "format": "uri",
"examples": [
- 123
+ "https://github.com"
]
},
- "throttled_at": {
- "description": "Time when the webhook delivery was throttled.",
+ "language": {
"type": [
"string",
"null"
- ],
- "format": "date-time",
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
"examples": [
- "2021-05-12T20:33:44Z"
+ 9
]
},
- "url": {
- "description": "The URL target of the delivery.",
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
"type": "string",
"examples": [
- "https://www.example.com"
+ "master"
]
},
- "request": {
- "type": "object",
- "properties": {
- "headers": {
- "description": "The request headers sent with the webhook delivery.",
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true
- },
- "payload": {
- "description": "The webhook payload.",
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true
- }
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "required": [
- "headers",
- "payload"
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
]
},
- "response": {
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
"type": "object",
"properties": {
- "headers": {
- "description": "The response headers received when the delivery was made.",
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true
+ "admin": {
+ "type": "boolean"
},
- "payload": {
- "description": "The response payload received.",
- "type": [
- "string",
- "null"
- ],
- "additionalProperties": true
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
}
},
"required": [
- "headers",
- "payload"
+ "admin",
+ "pull",
+ "push"
]
- }
- },
- "required": [
- "id",
- "guid",
- "delivered_at",
- "redelivery",
- "duration",
- "status",
- "status_code",
- "event",
- "action",
- "installation_id",
- "repository_id",
- "request",
- "response"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
- "title": "Redeliver a delivery for a repository webhook",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "delivery_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- },
- "description": ""
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Redeliver a webhook delivery for a webhook configured in a repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID",
- "delivery_id": "DELIVERY_ID"
- }
- },
- "response": {
- "statusCode": "202",
- "contentType": "application/json",
- "description": "Accepted
",
- "example": null,
- "schema": {
- "type": "object"
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings",
- "title": "Ping a repository webhook",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "This will trigger a ping event to be sent to the hook.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/tests",
- "title": "Test the push repository webhook",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "This 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 Note
\n
\nPreviously /repos/:owner/:repo/hooks/:hook_id/test
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "read"
- }
- ]
- }
- }
- ]
- },
- "search": {
- "search": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/code",
- "title": "Search code",
- "category": "search",
- "subcategory": "search",
- "parameters": [
- {
- "name": "q",
- "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching code \" for a detailed list of qualifiers.
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "deprecated": true,
- "description": "This field is closing down. Sorts the results of your query. Can only be indexed, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: best match
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "indexed"
- ]
- }
- },
- {
- "name": "order",
- "description": "This field is closing down. 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.
",
- "in": "query",
- "deprecated": true,
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to find the definition of the addClass function inside jQuery repository, your query would look something like this:
\nq=addClass+in:file+language:js+repo:jquery/jquery
\nThis query searches for the keyword addClass within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery repository.
\nConsiderations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\n\nOnly the default branch is considered. In most cases, this will be the master branch. \nOnly files smaller than 384 KB are searchable. \nYou must always include at least one search term when searching source code. For example, searching for language:go is not valid, while amazing language:go is. \n \nThis endpoint requires you to authenticate and limits you to 10 requests per minute.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 7,
- "incomplete_results": false,
- "items": [
- {
- "name": "classes.js",
- "path": "src/attributes/classes.js",
- "sha": "d7212f9dee2dcc18f084d7df8f417b80846ded5a",
- "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=825ac3773694e0cd23ee74895fd5aeb535b27da4",
- "git_url": "https://api.github.com/repositories/167174/git/blobs/d7212f9dee2dcc18f084d7df8f417b80846ded5a",
- "html_url": "https://github.com/jquery/jquery/blob/825ac3773694e0cd23ee74895fd5aeb535b27da4/src/attributes/classes.js",
- "repository": {
- "id": 167174,
- "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
- "name": "jquery",
- "full_name": "jquery/jquery",
- "owner": {
- "login": "jquery",
- "id": 70142,
- "node_id": "MDQ6VXNlcjcwMTQy",
- "avatar_url": "https://0.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https%3A%2F%2Fidenticons.github.com%2Ff426f04f2f9813718fb806b30e0093de.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/jquery",
- "html_url": "https://github.com/jquery",
- "followers_url": "https://api.github.com/users/jquery/followers",
- "following_url": "https://api.github.com/users/jquery/following{/other_user}",
- "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
- "organizations_url": "https://api.github.com/users/jquery/orgs",
- "repos_url": "https://api.github.com/users/jquery/repos",
- "events_url": "https://api.github.com/users/jquery/events{/privacy}",
- "received_events_url": "https://api.github.com/users/jquery/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/jquery/jquery",
- "description": "jQuery JavaScript Library",
- "fork": false,
- "url": "https://api.github.com/repos/jquery/jquery",
- "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
- "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
- "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
- "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
- "events_url": "https://api.github.com/repos/jquery/jquery/events",
- "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
- "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
- "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
- "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
- "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
- "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
- "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
- "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
- "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments/{number}",
- "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
- "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
- "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
- "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
- "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
- "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
- "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- },
- "score": 1
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
},
- "incomplete_results": {
- "type": "boolean"
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "items": {
- "type": "array",
- "items": {
- "title": "Code Search Result Item",
- "description": "Code Search Result Item",
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "repository": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
}
},
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
},
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
+ "lexical_commit_sha": {
+ "type": "string"
}
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "score": {
- "type": "number"
- },
- "file_size": {
- "type": "integer"
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
+ }
},
- "last_modified_at": {
- "type": "string",
- "format": "date-time"
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "allow_squash_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "line_numbers": {
- "type": "array",
- "items": {
- "type": "string"
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "examples": [
- "73..77",
- "77..78"
- ]
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "object_url": {
- "type": "string"
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
},
- "object_type": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
"type": [
"string",
"null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
]
},
- "property": {
- "type": "string"
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
},
- "fragment": {
- "type": "string"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
},
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
- }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
- "required": [
- "score",
- "name",
- "path",
- "sha",
- "git_url",
- "html_url",
- "url",
- "repository"
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/commits",
- "title": "Search commits",
- "category": "search",
- "subcategory": "search",
- "parameters": [
- {
- "name": "q",
- "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching commits \" for a detailed list of qualifiers.
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "description": "Sorts the results of your query by author-date or committer-date. Default: best match
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "author-date",
- "committer-date"
- ]
- }
- },
- {
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Find commits via various criteria on the default branch (usually main). This method returns up to 100 results per page .
\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\nmetadata .
\nFor example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 1,
- "incomplete_results": false,
- "items": [
- {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f/comments",
- "commit": {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "author": {
- "date": "2014-02-04T14:38:36-08:00",
- "name": "The Octocat",
- "email": "octocat@nowhere.com"
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "committer": {
- "date": "2014-02-12T15:18:55-08:00",
- "name": "The Octocat",
- "email": "octocat@nowhere.com"
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "message": "Create styles.css and updated README",
- "tree": {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa68",
- "sha": "a639e96f9038797fba6e0469f94a4b0cc459fa68"
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "comment_count": 8
- },
- "author": {
- "login": "octocat",
- "id": 583231,
- "node_id": "MDQ6VXNlcjU4MzIzMQ==",
- "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "committer": {},
- "parents": [
- {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
- "html_url": "https://github.com/octocat/Spoon-Knife/commit/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
- "sha": "a30c19e3f13765a3b48829788bc1cb8b4e95cee4"
- }
- ],
- "repository": {
- "id": 1300192,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMzAwMTky",
- "name": "Spoon-Knife",
- "full_name": "octocat/Spoon-Knife",
- "owner": {
- "login": "octocat",
- "id": 583231,
- "node_id": "MDQ6VXNlcjU4MzIzMQ==",
- "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "has_pages": {
+ "type": "boolean"
},
- "private": false,
- "html_url": "https://github.com/octocat/Spoon-Knife",
- "description": "This repo is for demonstration purposes only.",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Spoon-Knife",
- "forks_url": "https://api.github.com/repos/octocat/Spoon-Knife/forks",
- "keys_url": "https://api.github.com/repos/octocat/Spoon-Knife/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/octocat/Spoon-Knife/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/octocat/Spoon-Knife/teams",
- "hooks_url": "https://api.github.com/repos/octocat/Spoon-Knife/hooks",
- "issue_events_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/events{/number}",
- "events_url": "https://api.github.com/repos/octocat/Spoon-Knife/events",
- "assignees_url": "https://api.github.com/repos/octocat/Spoon-Knife/assignees{/user}",
- "branches_url": "https://api.github.com/repos/octocat/Spoon-Knife/branches{/branch}",
- "tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/tags",
- "blobs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/octocat/Spoon-Knife/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/octocat/Spoon-Knife/languages",
- "stargazers_url": "https://api.github.com/repos/octocat/Spoon-Knife/stargazers",
- "contributors_url": "https://api.github.com/repos/octocat/Spoon-Knife/contributors",
- "subscribers_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscription",
- "commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/octocat/Spoon-Knife/contents/{+path}",
- "compare_url": "https://api.github.com/repos/octocat/Spoon-Knife/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/octocat/Spoon-Knife/merges",
- "archive_url": "https://api.github.com/repos/octocat/Spoon-Knife/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/octocat/Spoon-Knife/downloads",
- "issues_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues{/number}",
- "pulls_url": "https://api.github.com/repos/octocat/Spoon-Knife/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/octocat/Spoon-Knife/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Spoon-Knife/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/octocat/Spoon-Knife/labels{/name}",
- "releases_url": "https://api.github.com/repos/octocat/Spoon-Knife/releases{/id}",
- "deployments_url": "https://api.github.com/repos/octocat/Spoon-Knife/deployments"
- },
- "score": 1,
- "node_id": "MDQ6VXNlcjU4MzIzMQ=="
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- "items": {
- "type": "array",
- "items": {
- "title": "Commit Search Result Item",
- "description": "Commit Search Result Item",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "sha": {
- "type": "string"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "comments_url": {
- "type": "string",
- "format": "uri"
- },
- "commit": {
- "type": "object",
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string",
- "format": "date-time"
- }
- },
- "required": [
- "name",
- "email",
- "date"
- ]
- },
- "committer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "\"Chris Wanstrath\""
- ]
- },
- "email": {
- "type": "string",
- "examples": [
- "\"chris@ozmm.org\""
- ]
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "\"2007-10-29T02:42:39.000-07:00\""
- ]
- }
- }
- }
- ]
- },
- "comment_count": {
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "verification": {
- "title": "Verification",
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "payload": {
- "type": [
- "string",
- "null"
- ]
- },
- "signature": {
- "type": [
- "string",
- "null"
- ]
- },
- "verified_at": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "verified",
- "reason",
- "payload",
- "signature",
- "verified_at"
- ]
- }
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "required": [
- "author",
- "committer",
- "comment_count",
- "message",
- "tree",
- "url"
- ]
- },
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "committer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "\"Chris Wanstrath\""
- ]
- },
- "email": {
- "type": "string",
- "examples": [
- "\"chris@ozmm.org\""
- ]
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "\"2007-10-29T02:42:39.000-07:00\""
- ]
- }
- }
- }
- ]
- },
- "parents": {
- "type": "array",
- "items": {
+ {
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "url": {
- "type": "string"
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
},
- "html_url": {
- "type": "string"
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
},
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "repository": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
},
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
},
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "score": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
}
},
- "required": [
- "sha",
- "node_id",
- "url",
- "html_url",
- "author",
- "committer",
- "parents",
- "comments_url",
- "commit",
- "repository",
- "score"
- ]
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
}
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
- }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "202",
+ "description": "Accepted
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -675769,62 +722198,88 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write",
+ "\"Contents\" repository permissions": "read"
+ }
+ ]
}
- },
+ }
+ ],
+ "rule-suites": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/search/issues",
- "title": "Search issues and pull requests",
- "category": "search",
- "subcategory": "search",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/rule-suites",
+ "title": "List repository rule suites",
+ "category": "repos",
+ "subcategory": "rule-suites",
"parameters": [
{
- "name": "q",
- "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching issues and pull requests \" for a detailed list of qualifiers.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "sort",
- "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
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ref",
+ "description": "The name of the ref. Cannot contain wildcard characters. Optionally prefix with refs/heads/ to limit to branches or refs/tags/ to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "comments",
- "reactions",
- "reactions-+1",
- "reactions--1",
- "reactions-smile",
- "reactions-thinking_face",
- "reactions-heart",
- "reactions-tada",
- "interactions",
- "created",
- "updated"
- ]
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
}
},
{
- "name": "order",
- "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": "actor_name",
+ "description": "The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "rule_suite_result",
+ "description": "The rule suite results to filter on. When specified, only suites with this result will be returned.
",
"in": "query",
- "required": false,
"schema": {
"type": "string",
"enum": [
- "desc",
- "asc"
+ "pass",
+ "fail",
+ "bypass",
+ "all"
],
- "default": "desc"
+ "default": "all"
}
},
{
@@ -675844,2876 +722299,3445 @@
"type": "integer",
"default": 1
}
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists suites of rule evaluations at the repository level.\nFor more information, see \"Managing rulesets for a repository .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 21,
+ "actor_id": 12,
+ "actor_name": "octocat",
+ "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d",
+ "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01",
+ "ref": "refs/heads/i-see-everything",
+ "repository_id": 404,
+ "repository_name": "octo-repo",
+ "pushed_at": "2023-07-06T08:43:03Z",
+ "result": "bypass"
+ },
+ {
+ "id": 25,
+ "actor_id": 11,
+ "actor_name": "not-octocat",
+ "before_sha": "48994e4e01ccc943624c6231f172702b82b233cc",
+ "after_sha": "ecfd5a1025fa271a33ca5608d089476a2df3c9a1",
+ "ref": "refs/heads/i-am-everything",
+ "repository_id": 404,
+ "repository_name": "octo-repo",
+ "pushed_at": "2023-07-07T08:43:03Z",
+ "result": "pass",
+ "evaluation_result": "fail"
+ }
+ ],
+ "schema": {
+ "title": "Rule Suites",
+ "description": "Response",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the rule insight."
+ },
+ "actor_id": {
+ "type": "integer",
+ "description": "The number that identifies the user."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The handle for the GitHub user account."
+ },
+ "before_sha": {
+ "type": "string",
+ "description": "The first commit sha before the push evaluation."
+ },
+ "after_sha": {
+ "type": "string",
+ "description": "The last commit sha in the push evaluation."
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref name that the evaluation ran on."
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository associated with the rule evaluation."
+ },
+ "repository_name": {
+ "type": "string",
+ "description": "The name of the repository without the `.git` extension."
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass"
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` enforcement status."
+ },
+ "evaluation_result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass"
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}",
+ "title": "Get a repository rule suite",
+ "category": "repos",
+ "subcategory": "rule-suites",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "name": "advanced_search",
- "description": "Set to true to use advanced search.\nExample: http://api.github.com/search/issues?q={query}&advanced_search=true
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "rule_suite_id",
+ "description": "The unique identifier of the rule suite result.\nTo get this ID, you can use GET /repos/{owner}/{repo}/rulesets/rule-suites \nfor repositories and GET /orgs/{org}/rulesets/rule-suites \nfor organizations.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Find issues by state and keyword. This method returns up to 100 results per page .
\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\nsearch results, see Text match metadata .
\nFor example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
\nThis query searches for the keyword windows, within any open issue that is labeled as bug. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
\n Note
\n
\nFor requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue or is:pull-request qualifier will receive an HTTP 422 Unprocessable Entity response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is qualifier, see \"Searching only issues or pull requests .\"
\n
",
+ "descriptionHTML": "Gets information about a suite of rule evaluations from within a repository.\nFor more information, see \"Managing rulesets for a repository .\"
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "rule_suite_id": "RULE_SUITE_ID"
+ }
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "total_count": 280,
- "incomplete_results": false,
- "items": [
- {
- "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132",
- "repository_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit",
- "labels_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/labels{/name}",
- "comments_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/comments",
- "events_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/events",
- "html_url": "https://github.com/batterseapower/pinyin-toolkit/issues/132",
- "id": 35802,
- "node_id": "MDU6SXNzdWUzNTgwMg==",
- "number": 132,
- "title": "Line Number Indexes Beyond 20 Not Displayed",
- "user": {
- "login": "Nick3C",
- "id": 90254,
- "node_id": "MDQ6VXNlcjkwMjU0",
- "avatar_url": "https://secure.gravatar.com/avatar/934442aadfe3b2f4630510de416c5718?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/Nick3C",
- "html_url": "https://github.com/Nick3C",
- "followers_url": "https://api.github.com/users/Nick3C/followers",
- "following_url": "https://api.github.com/users/Nick3C/following{/other_user}",
- "gists_url": "https://api.github.com/users/Nick3C/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/Nick3C/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/Nick3C/subscriptions",
- "organizations_url": "https://api.github.com/users/Nick3C/orgs",
- "repos_url": "https://api.github.com/users/Nick3C/repos",
- "events_url": "https://api.github.com/users/Nick3C/events{/privacy}",
- "received_events_url": "https://api.github.com/users/Nick3C/received_events",
- "type": "User",
- "site_admin": true
- },
- "labels": [
- {
- "id": 4,
- "node_id": "MDU6TGFiZWw0",
- "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/labels/bug",
- "name": "bug",
- "color": "ff0000"
- }
- ],
- "state": "open",
- "assignee": null,
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
- "number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
- "creator": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
- },
- "comments": 15,
- "created_at": "2009-07-12T20:10:41Z",
- "updated_at": "2009-07-19T09:23:43Z",
- "closed_at": null,
- "pull_request": {
- "url": "https://api/github.com/repos/octocat/Hello-World/pull/1347",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- },
- "body": "...",
- "score": 1,
- "locked": true,
- "author_association": "COLLABORATOR",
- "state_reason": "completed"
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "Issue Search Result Item",
- "description": "Issue Search Result Item",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "repository_url": {
- "type": "string",
- "format": "uri"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string",
- "format": "uri"
- },
- "events_url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "integer"
- },
- "title": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "assignees": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- },
- "sub_issues_summary": {
- "title": "Sub-issues Summary",
- "type": "object",
- "properties": {
- "total": {
- "type": "integer"
- },
- "completed": {
- "type": "integer"
- },
- "percent_completed": {
- "type": "integer"
- }
- },
- "required": [
- "total",
- "completed",
- "percent_completed"
- ]
- },
- "issue_dependencies_summary": {
- "title": "Issue Dependencies Summary",
- "type": "object",
- "properties": {
- "blocked_by": {
- "type": "integer"
- },
- "blocking": {
- "type": "integer"
- },
- "total_blocked_by": {
- "type": "integer"
- },
- "total_blocking": {
- "type": "integer"
- }
- },
- "required": [
- "blocked_by",
- "blocking",
- "total_blocked_by",
- "total_blocking"
- ]
- },
- "issue_field_values": {
- "type": "array",
- "items": {
- "title": "Issue Field Value",
- "description": "A value assigned to an issue field",
- "type": "object",
- "properties": {
- "issue_field_id": {
- "description": "Unique identifier for the issue field.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "IFT_GDKND"
- ]
- },
- "data_type": {
- "description": "The data type of the issue field",
- "type": "string",
- "enum": [
- "text",
- "single_select",
- "number",
- "date"
- ],
- "examples": [
- "text"
- ]
- },
- "value": {
- "description": "The value of the issue field",
- "anyOf": [
- {
- "type": "string",
- "examples": [
- "Sample text"
- ]
- },
- {
- "type": "number",
- "examples": [
- 42.5
- ]
- },
- {
- "type": "integer",
- "examples": [
- 1
- ]
- }
- ],
- "type": [
- "null",
- "string",
- "number",
- "integer"
- ]
- },
- "single_select_option": {
- "description": "Details about the selected option (only present for single_select fields)",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "id": {
- "description": "Unique identifier for the option.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "name": {
- "description": "The name of the option",
- "type": "string",
- "examples": [
- "High"
- ]
- },
- "color": {
- "description": "The color of the option",
- "type": "string",
- "examples": [
- "red"
- ]
- }
- },
- "required": [
- "id",
- "name",
- "color"
- ]
- }
- },
- "required": [
- "issue_field_id",
- "node_id",
- "data_type",
- "value"
- ]
- }
- },
- "state": {
- "type": "string"
- },
- "state_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "milestone": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
- ]
- },
- "labels_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1002604
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
- ]
- },
- "number": {
- "description": "The number of the milestone.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "The state of the milestone.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open",
- "examples": [
- "open"
- ]
- },
- "title": {
- "description": "The title of the milestone.",
- "type": "string",
- "examples": [
- "v1.0"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Tracking milestone for version 1.0"
- ]
- },
- "creator": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
- },
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2012-10-09T23:39:01Z"
- ]
- }
- },
- "required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
- "closed_at",
- "id",
- "node_id",
- "labels_url",
- "html_url",
- "number",
- "open_issues",
- "state",
- "title",
- "url",
- "created_at",
- "updated_at"
- ]
- }
- ]
- },
- "comments": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- }
- },
- "pull_request": {
+ "id": 21,
+ "actor_id": 12,
+ "actor_name": "octocat",
+ "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d",
+ "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01",
+ "ref": "refs/heads/i-see-everything",
+ "repository_id": 404,
+ "repository_name": "octo-repo",
+ "pushed_at": "2023-07-06T08:43:03Z",
+ "result": "bypass",
+ "evaluation_result": "fail",
+ "rule_evaluations": [
+ {
+ "rule_source": {
+ "type": "ruleset",
+ "id": 2,
+ "name": "Author email must be a GitHub email address"
+ },
+ "enforcement": "active",
+ "result": "pass",
+ "rule_type": "commit_author_email_pattern"
+ },
+ {
+ "rule_source": {
+ "type": "protected_branch"
+ },
+ "enforcement": "active",
+ "result": "fail",
+ "rule_type": "pull_request",
+ "details": "Changes must be made through a pull request."
+ },
+ {
+ "rule_source": {
+ "type": "ruleset",
+ "id": 3,
+ "name": "Evaluate commit message pattern"
+ },
+ "enforcement": "evaluate",
+ "result": "fail",
+ "rule_type": "commit_message_pattern"
+ }
+ ]
+ },
+ "schema": {
+ "title": "Rule Suite",
+ "description": "Response",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the rule insight."
+ },
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The number that identifies the user."
+ },
+ "actor_name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The handle for the GitHub user account."
+ },
+ "before_sha": {
+ "type": "string",
+ "description": "The previous commit SHA of the ref."
+ },
+ "after_sha": {
+ "type": "string",
+ "description": "The new commit SHA of the ref."
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref name that the evaluation ran on."
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository associated with the rule evaluation."
+ },
+ "repository_name": {
+ "type": "string",
+ "description": "The name of the repository without the `.git` extension."
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass"
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` enforcement status."
+ },
+ "evaluation_result": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "pass",
+ "fail",
+ "bypass",
+ null
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run."
+ },
+ "rule_evaluations": {
+ "type": "array",
+ "description": "Details on the evaluated rules.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "rule_source": {
"type": "object",
"properties": {
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "diff_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "type": {
+ "type": "string",
+ "description": "The type of rule source."
},
- "patch_url": {
+ "id": {
"type": [
- "string",
+ "integer",
"null"
],
- "format": "uri"
+ "description": "The ID of the rule source."
},
- "url": {
+ "name": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "description": "The name of the rule source."
}
- },
- "required": [
- "diff_url",
- "html_url",
- "patch_url",
- "url"
- ]
- },
- "body": {
- "type": "string"
+ }
},
- "score": {
- "type": "number"
+ "enforcement": {
+ "type": "string",
+ "enum": [
+ "active",
+ "evaluate",
+ "deleted ruleset"
+ ],
+ "description": "The enforcement level of this rule source."
},
- "author_association": {
- "title": "author_association",
+ "result": {
"type": "string",
- "description": "How the author is associated with the repository.",
"enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
+ "pass",
+ "fail"
],
- "examples": [
- "OWNER"
- ]
+ "description": "The result of the evaluation of the individual rule."
},
- "draft": {
- "type": "boolean"
+ "rule_type": {
+ "type": "string",
+ "description": "The type of rule."
},
- "repository": {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "details": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The detailed failure message for the rule. Null if the rule passed."
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "rules": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/rules/branches/{branch}",
+ "title": "Get rules for a branch",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch",
+ "description": "The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API .
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns all active rules that apply to the specified branch. The branch does not need to exist; rules that would apply\nto a branch with that name will be returned. All active rules that apply will be returned, regardless of the level\nat which they are configured (e.g. repository or organization). Rules in rulesets with \"evaluate\" or \"disabled\"\nenforcement statuses are not returned.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "branch": "BRANCH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "type": "commit_message_pattern",
+ "ruleset_source_type": "Repository",
+ "ruleset_source": "monalisa/my-repo",
+ "ruleset_id": 42,
+ "parameters": {
+ "operator": "starts_with",
+ "pattern": "issue"
+ }
+ },
+ {
+ "type": "commit_author_email_pattern",
+ "ruleset_source_type": "Organization",
+ "ruleset_source": "my-org",
+ "ruleset_id": 73,
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule with ruleset details.",
+ "oneOf": [
+ {
+ "allOf": [
+ {
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
+ "type": {
"type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "enum": [
+ "creation"
]
- },
- "name": {
- "description": "The name of the repository.",
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "examples": [
- "Team Environment"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "full_name": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "update"
]
},
- "forks": {
- "type": "integer"
- },
- "permissions": {
+ "parameters": {
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
}
},
"required": [
- "admin",
- "pull",
- "push"
+ "update_allows_fetch_and_merge"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "deletion"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
+ "check_response_timeout_minutes": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
},
- "repos_url": {
+ "grouping_strategy": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
]
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "type": {
+ "merge_method": {
"type": "string",
- "examples": [
- "User"
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "fork": {
- "type": "boolean"
- },
- "url": {
+ "ruleset_source": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "archive_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "enum": [
+ "required_deployments"
]
},
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
]
- },
- "blobs_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "branches_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "collaborators_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "enum": [
+ "required_signatures"
]
- },
- "comments_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "commits_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "compare_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "enum": [
+ "pull_request"
]
},
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
+ },
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
+ },
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
+ },
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
+ },
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
+ },
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
+ },
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
]
- },
- "contributors_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "deployments_url": {
+ "ruleset_source": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "downloads_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "enum": [
+ "required_status_checks"
]
},
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
+ }
+ },
+ "required": [
+ "required_status_checks",
+ "strict_required_status_checks_policy"
]
- },
- "forks_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "git_commits_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "git_refs_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "enum": [
+ "non_fast_forward"
]
- },
- "git_tags_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "git_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "issue_comment_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "enum": [
+ "commit_message_pattern"
]
},
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "issues_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "keys_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "labels_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "enum": [
+ "commit_author_email_pattern"
]
},
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "merges_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "milestones_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "notifications_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "enum": [
+ "committer_email_pattern"
]
},
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "releases_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "ssh_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "stargazers_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "enum": [
+ "branch_name_pattern"
]
},
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "subscribers_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "subscription_url": {
+ "ruleset_source": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "tags_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "enum": [
+ "tag_name_pattern"
]
},
- "teams_url": {
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "trees_url": {
+ "ruleset_source": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "clone_url": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
+ "enum": [
+ "file_path_restriction"
]
},
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_paths"
]
- },
- "hooks_url": {
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "svn_url": {
+ "ruleset_source": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "stargazers_count": {
+ "ruleset_id": {
"type": "integer",
- "examples": [
- 80
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
]
},
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
+ }
+ },
+ "required": [
+ "max_file_path_length"
]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "ruleset_source": {
"type": "string",
- "examples": [
- "master"
- ]
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "open_issues_count": {
+ "ruleset_id": {
"type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_extensions"
]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
]
},
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
+ }
+ },
+ "required": [
+ "max_file_size"
]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
]
},
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
+ }
+ },
+ "required": [
+ "workflows"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
"enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ "Repository",
+ "Organization"
+ ]
},
- "squash_merge_commit_message": {
+ "ruleset_source": {
"type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "merge_commit_title": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
"enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ "code_scanning"
+ ]
},
- "merge_commit_message": {
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
+ }
+ },
+ "required": [
+ "code_scanning_tools"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
"type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
"enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
+ "Repository",
+ "Organization"
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "starred_at": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
+ "enum": [
+ "copilot_code_review"
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
+ "parameters": {
"type": "object",
- "description": "The status of the code search index for this repository",
"properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
},
- "lexical_commit_sha": {
- "type": "string"
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
}
}
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "timeline_url": {
- "type": "string",
- "format": "uri"
+ }
},
- "type": {
- "title": "Issue Type",
- "description": "The type of issue.",
- "type": [
- "object",
- "null"
- ],
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
"properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the issue type."
- },
- "node_id": {
- "type": "string",
- "description": "The node identifier of the issue type."
- },
- "name": {
+ "ruleset_source_type": {
"type": "string",
- "description": "The name of the issue type."
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The description of the issue type."
- },
- "color": {
- "type": [
- "string",
- "null"
- ],
- "description": "The color of the issue type.",
+ "description": "The type of source for the ruleset that includes this rule.",
"enum": [
- "gray",
- "blue",
- "green",
- "yellow",
- "orange",
- "red",
- "pink",
- "purple",
- null
+ "Repository",
+ "Organization"
]
},
- "created_at": {
- "type": "string",
- "description": "The time the issue type created.",
- "format": "date-time"
- },
- "updated_at": {
+ "ruleset_source": {
"type": "string",
- "description": "The time the issue type last updated.",
- "format": "date-time"
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "is_enabled": {
- "type": "boolean",
- "description": "The enabled state of the issue type."
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
}
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/rulesets",
+ "title": "Get all repository rulesets",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "includes_parents",
+ "description": "Include rulesets configured at higher levels that apply to this repository
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": true
+ }
+ },
+ {
+ "name": "targets",
+ "description": "A comma-separated list of rule targets to filter by.\nIf provided, only rulesets that apply to the specified targets will be returned.\nFor example, branch,tag,push.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "examples": [
+ "branch,tag,push"
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get all the rulesets for a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 42,
+ "name": "super cool ruleset",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "enabled",
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
+ },
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ {
+ "id": 314,
+ "name": "Another ruleset",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "enabled",
+ "node_id": "RRS_lACkVXNlcgQQ",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/314"
+ },
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/314"
+ }
+ },
+ "created_at": "2023-08-15T08:43:03Z",
+ "updated_at": "2023-09-23T16:29:47Z"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
+ },
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
+ },
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
+ },
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
+ "type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
+ "properties": {
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories."
},
- "required": [
- "id",
- "node_id",
- "name",
- "description"
- ]
+ "actor_type": {
+ "type": "string",
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey"
+ ],
+ "description": "The type of actor that can bypass a ruleset."
+ },
+ "bypass_mode": {
+ "type": "string",
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
+ }
},
- "performed_via_github_app": {
- "anyOf": [
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
{
- "type": "null"
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
},
{
- "title": "GitHub app",
- "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "id": {
- "description": "Unique identifier of the GitHub app",
- "type": "integer",
- "examples": [
- 37
- ]
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
},
- "slug": {
- "description": "The slug name of the GitHub app",
- "type": "string",
- "examples": [
- "probot-owners"
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOkludGVncmF0aW9uMQ=="
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
+ {
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "creation"
+ ]
+ }
+ }
+ },
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "update"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
},
- "client_id": {
- "type": "string",
- "examples": [
- "\"Iv1.25b5d1e65ffc4022\""
- ]
+ "required": [
+ "update_allows_fetch_and_merge"
+ ]
+ }
+ }
+ },
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "deletion"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ }
+ },
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
+ "type": "string",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
},
- "owner": {
- "oneOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ }
+ },
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
+ },
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
+ },
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
+ },
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
+ },
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
+ },
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
+ },
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
},
- "id": {
+ "minimum_approvals": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
]
- },
- {
- "title": "Enterprise",
- "description": "An enterprise on GitHub.",
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
"type": "object",
"properties": {
- "description": {
- "description": "A short description of the enterprise.",
- "type": [
- "string",
- "null"
- ]
- },
- "html_url": {
+ "context": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/enterprises/octo-business"
- ]
- },
- "website_url": {
- "description": "The enterprise's website URL.",
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "description": "The status check context name that must be present on the commit."
},
- "id": {
- "description": "Unique identifier of the enterprise",
+ "integration_id": {
"type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the enterprise.",
- "type": "string",
- "examples": [
- "Octo Business"
- ]
- },
- "slug": {
- "description": "The slug url identifier for the enterprise.",
- "type": "string",
- "examples": [
- "octo-business"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2019-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2019-01-26T19:14:43Z"
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri"
+ "description": "The optional integration ID that this status check must originate from."
}
},
"required": [
- "id",
- "node_id",
- "name",
- "slug",
- "html_url",
- "created_at",
- "updated_at",
- "avatar_url"
+ "context"
]
}
- ]
- },
- "name": {
- "description": "The name of the GitHub app",
- "type": "string",
- "examples": [
- "Probot Owners"
- ]
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
+ }
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "The description of the app."
- ]
+ "required": [
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
},
- "external_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://example.com"
- ]
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/apps/super-ci"
- ]
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-08T16:18:44-04:00"
- ]
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
},
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-08T16:18:44-04:00"
- ]
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
},
- "permissions": {
- "description": "The set of permissions for the GitHub app",
- "type": "object",
- "properties": {
- "issues": {
- "type": "string"
- },
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
"type": "string"
- },
- "deployments": {
+ }
+ }
+ },
+ "required": [
+ "restricted_file_paths"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
+ }
+ },
+ "required": [
+ "max_file_path_length"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
"type": "string"
}
- },
- "additionalProperties": {
- "type": "string"
- },
- "example": {
- "issues": "read",
- "deployments": "write"
}
},
- "events": {
- "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
- "type": "array",
- "items": {
- "type": "string"
+ "required": [
+ "restricted_file_extensions"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
+ }
+ },
+ "required": [
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
+ }
+ },
+ "required": [
+ "workflows"
+ ]
+ }
+ }
+ },
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
+ }
+ },
+ "required": [
+ "code_scanning_tools"
+ ]
+ }
+ }
+ },
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
},
- "examples": [
- "label",
- "deployment"
- ]
- },
- "installations_count": {
- "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
- "type": "integer",
- "examples": [
- 5
- ]
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
}
- },
- "required": [
- "id",
- "node_id",
- "owner",
- "name",
- "description",
- "external_url",
- "html_url",
- "created_at",
- "updated_at",
- "permissions",
- "events"
- ]
- }
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
+ }
}
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "assignee",
- "closed_at",
- "comments",
- "comments_url",
- "events_url",
- "html_url",
- "id",
- "node_id",
- "labels",
- "labels_url",
- "milestone",
- "number",
- "repository_url",
- "state",
- "locked",
- "title",
- "url",
- "user",
- "author_association",
- "created_at",
- "updated_at",
- "score"
- ]
+ }
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
}
@@ -678727,20 +725751,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -678748,1871 +725764,2448 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
"allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/labels",
- "title": "Search labels",
- "category": "search",
- "subcategory": "search",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/rulesets",
+ "title": "Create a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
- "name": "repository_id",
- "description": "The id of the repository.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "q",
- "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 .
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the ruleset.
",
+ "isRequired": true
},
{
- "name": "sort",
- "description": "Sorts the results of your query by when the label was created or updated. Default: best match
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ]
- }
+ "type": "string",
+ "name": "target",
+ "in": "body",
+ "description": "The target of the ruleset
",
+ "enum": [
+ "branch",
+ "tag",
+ "push"
+ ],
+ "default": "branch"
},
{
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
+ "type": "string",
+ "name": "enforcement",
+ "in": "body",
+ "description": "The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).
",
+ "isRequired": true,
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "array of objects",
+ "name": "bypass_actors",
+ "in": "body",
+ "description": "The actors that can bypass the rules in this ruleset
",
+ "childParamsGroups": [
+ {
+ "type": "integer or null",
+ "name": "actor_id",
+ "description": "The ID of the actor that can bypass a ruleset. Required for Integration, RepositoryRole, and Team actor types. If actor_type is OrganizationAdmin, this should be 1. If actor_type is DeployKey, this should be null. OrganizationAdmin is not applicable for personal repositories.
"
+ },
+ {
+ "type": "string",
+ "name": "actor_type",
+ "description": "The type of actor that can bypass a ruleset.
",
+ "isRequired": true,
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "bypass_mode",
+ "description": "When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. pull_request is not applicable for the DeployKey actor type. Also, pull_request is only applicable to branch rulesets. When bypass_mode is exempt, rules will not be run for that actor and a bypass audit entry will not be created.
",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ ]
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "object",
+ "name": "conditions",
+ "in": "body",
+ "description": "Parameters for a repository ruleset ref name condition
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "ref_name",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "include",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "exclude",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "rules",
+ "in": "body",
+ "description": "An array of rules within the ruleset.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "creation"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "update",
+ "description": "Only allow users with bypass permission to update matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "update"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "update_allows_fetch_and_merge",
+ "description": "Branch can pull changes from its upstream repository
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "deletion"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "merge_queue",
+ "description": "Merges must be performed via a merge queue.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "check_response_timeout_minutes",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "grouping_strategy",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
",
+ "isRequired": true,
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_build",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_merge",
+ "description": "The maximum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "merge_method",
+ "description": "Method to use when merging changes from queued pull requests.
",
+ "isRequired": true,
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge",
+ "description": "The minimum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge_wait_minutes",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "required_deployment_environments",
+ "description": "The environments that must be successfully deployed to before branches can be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "pull_request"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "allowed_merge_methods",
+ "description": "Array of allowed merge methods. Allowed values include merge, squash, and rebase. At least one option must be enabled.\nSupported values are: merge, squash, rebase
"
+ },
+ {
+ "type": "boolean",
+ "name": "dismiss_stale_reviews_on_push",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_code_owner_review",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_last_push_approval",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "required_approving_review_count",
+ "description": "The number of approving reviews that are required before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "required_review_thread_resolution",
+ "description": "All conversations on code must be resolved before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects",
+ "name": "required_reviewers",
+ "description": " Note
\n
\nrequired_reviewers is in beta and subject to change.
\n
\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "file_patterns",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "minimum_approvals",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
",
+ "isRequired": true
+ },
+ {
+ "type": "object",
+ "name": "reviewer",
+ "description": "A required reviewing team
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "id",
+ "description": "ID of the reviewer which must review changes to matching files.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of the reviewer
",
+ "isRequired": true,
+ "enum": [
+ "Team"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "required_status_checks",
+ "description": "Status checks that are required.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "context",
+ "description": "The status check context name that must be present on the commit.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "integration_id",
+ "description": "The optional integration ID that this status check must originate from.
"
+ }
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "strict_required_status_checks_policy",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_paths",
+ "description": "The file paths that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_path_length",
+ "description": "The maximum amount of characters allowed in file paths.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_extensions",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_size",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "workflows"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "workflows",
+ "description": "Workflows that must pass for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "path",
+ "description": "The path to the workflow file
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "ref",
+ "description": "The ref (branch or tag) of the workflow file to use
"
+ },
+ {
+ "type": "integer",
+ "name": "repository_id",
+ "description": "The ID of the repository where the workflow is defined
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "description": "The commit SHA of the workflow file to use
"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of objects",
+ "name": "code_scanning_tools",
+ "description": "Tools that must provide code scanning results for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "alerts_threshold",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "security_alerts_threshold",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "tool",
+ "description": "The name of a code scanning tool
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "review_draft_pull_requests",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review.
"
+ },
+ {
+ "type": "boolean",
+ "name": "review_on_push",
+ "description": "Copilot automatically reviews each new push to the pull request.
"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "oneOfObject": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page .
\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 .
\nFor example, if you want to find labels in the linguist repository that match bug, defect, or enhancement. Your query might look like this:
\nq=bug+defect+enhancement&repository_id=64778136
\nThe labels that best match the query appear first in the search results.
",
+ "descriptionHTML": "Create a ruleset for a repository.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "super cool ruleset",
+ "target": "branch",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "total_count": 2,
- "incomplete_results": false,
- "items": [
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
{
- "id": 418327088,
- "node_id": "MDU6TGFiZWw0MTgzMjcwODg=",
- "url": "https://api.github.com/repos/octocat/linguist/labels/enhancement",
- "name": "enhancement",
- "color": "84b6eb",
- "default": true,
- "description": "New feature or request.",
- "score": 1
- },
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
{
- "id": 418327086,
- "node_id": "MDU6TGFiZWw0MTgzMjcwODY=",
- "url": "https://api.github.com/repos/octocat/linguist/labels/bug",
- "name": "bug",
- "color": "ee0701",
- "default": true,
- "description": "Something isn't working.",
- "score": 1
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
}
- ]
+ ],
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
+ },
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
},
"schema": {
+ "title": "Repository ruleset",
"type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
"required": [
- "total_count",
- "incomplete_results",
- "items"
+ "id",
+ "name",
+ "source",
+ "enforcement"
],
"properties": {
- "total_count": {
- "type": "integer"
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
},
- "incomplete_results": {
- "type": "boolean"
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
},
- "items": {
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
+ },
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
+ },
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
"type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
"items": {
- "title": "Label Search Result Item",
- "description": "Label Search Result Item",
+ "title": "Repository Ruleset Bypass Actor",
"type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
"properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "name": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- },
- "description": {
+ "actor_id": {
"type": [
- "string",
+ "integer",
"null"
- ]
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories."
},
- "score": {
- "type": "number"
+ "actor_type": {
+ "type": "string",
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey"
+ ],
+ "description": "The type of actor that can bypass a ruleset."
},
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
+ "bypass_mode": {
+ "type": "string",
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
+ }
+ },
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
"type": "object",
"properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
},
- "matches": {
+ "exclude": {
"type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
"items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
+ "type": "string"
}
}
}
}
}
},
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "color",
- "default",
- "description",
- "score"
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/repositories",
- "title": "Search repositories",
- "category": "search",
- "subcategory": "search",
- "parameters": [
- {
- "name": "q",
- "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching for repositories \" for a detailed list of qualifiers.
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "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
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "help-wanted-issues",
- "updated"
- ]
- }
- },
- {
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Find repositories via various criteria. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
\nThis query searches for repositories with the word tetris in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 40,
- "incomplete_results": false,
- "items": [
- {
- "id": 3081286,
- "node_id": "MDEwOlJlcG9zaXRvcnkzMDgxMjg2",
- "name": "Tetris",
- "full_name": "dtrupenn/Tetris",
- "owner": {
- "login": "dtrupenn",
- "id": 872147,
- "node_id": "MDQ6VXNlcjg3MjE0Nw==",
- "avatar_url": "https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/dtrupenn",
- "received_events_url": "https://api.github.com/users/dtrupenn/received_events",
- "type": "User",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "site_admin": true
- },
- "private": false,
- "html_url": "https://github.com/dtrupenn/Tetris",
- "description": "A C implementation of Tetris using Pennsim through LC4",
- "fork": false,
- "url": "https://api.github.com/repos/dtrupenn/Tetris",
- "created_at": "2012-01-01T00:31:50Z",
- "updated_at": "2013-01-05T17:58:47Z",
- "pushed_at": "2012-01-01T00:37:02Z",
- "homepage": "https://github.com",
- "size": 524,
- "stargazers_count": 1,
- "watchers_count": 1,
- "language": "Assembly",
- "forks_count": 0,
- "open_issues_count": 0,
- "master_branch": "master",
- "default_branch": "master",
- "score": 1,
- "archive_url": "https://api.github.com/repos/dtrupenn/Tetris/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/dtrupenn/Tetris/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/dtrupenn/Tetris/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/dtrupenn/Tetris/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/dtrupenn/Tetris/comments{/number}",
- "commits_url": "https://api.github.com/repos/dtrupenn/Tetris/commits{/sha}",
- "compare_url": "https://api.github.com/repos/dtrupenn/Tetris/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/dtrupenn/Tetris/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/dtrupenn/Tetris/contributors",
- "deployments_url": "https://api.github.com/repos/dtrupenn/Tetris/deployments",
- "downloads_url": "https://api.github.com/repos/dtrupenn/Tetris/downloads",
- "events_url": "https://api.github.com/repos/dtrupenn/Tetris/events",
- "forks_url": "https://api.github.com/repos/dtrupenn/Tetris/forks",
- "git_commits_url": "https://api.github.com/repos/dtrupenn/Tetris/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/dtrupenn/Tetris/git/tags{/sha}",
- "git_url": "git:github.com/dtrupenn/Tetris.git",
- "issue_comment_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/dtrupenn/Tetris/issues{/number}",
- "keys_url": "https://api.github.com/repos/dtrupenn/Tetris/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/dtrupenn/Tetris/labels{/name}",
- "languages_url": "https://api.github.com/repos/dtrupenn/Tetris/languages",
- "merges_url": "https://api.github.com/repos/dtrupenn/Tetris/merges",
- "milestones_url": "https://api.github.com/repos/dtrupenn/Tetris/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/dtrupenn/Tetris/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/dtrupenn/Tetris/pulls{/number}",
- "releases_url": "https://api.github.com/repos/dtrupenn/Tetris/releases{/id}",
- "ssh_url": "git@github.com:dtrupenn/Tetris.git",
- "stargazers_url": "https://api.github.com/repos/dtrupenn/Tetris/stargazers",
- "statuses_url": "https://api.github.com/repos/dtrupenn/Tetris/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/dtrupenn/Tetris/subscribers",
- "subscription_url": "https://api.github.com/repos/dtrupenn/Tetris/subscription",
- "tags_url": "https://api.github.com/repos/dtrupenn/Tetris/tags",
- "teams_url": "https://api.github.com/repos/dtrupenn/Tetris/teams",
- "trees_url": "https://api.github.com/repos/dtrupenn/Tetris/git/trees{/sha}",
- "clone_url": "https://github.com/dtrupenn/Tetris.git",
- "mirror_url": "git:git.example.com/dtrupenn/Tetris",
- "hooks_url": "https://api.github.com/repos/dtrupenn/Tetris/hooks",
- "svn_url": "https://svn.github.com/dtrupenn/Tetris",
- "forks": 1,
- "open_issues": 1,
- "watchers": 1,
- "has_issues": true,
- "has_projects": true,
- "has_pages": true,
- "has_wiki": true,
- "has_downloads": true,
- "archived": true,
- "disabled": true,
- "visibility": "private",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- }
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
},
- "items": {
+ "rules": {
"type": "array",
"items": {
- "title": "Repo Search Result Item",
- "description": "Repo Search Result Item",
+ "title": "Repository Rule",
"type": "object",
- "properties": {
- "id": {
- "type": "integer"
+ "description": "A repository rule.",
+ "oneOf": [
+ {
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "creation"
+ ]
+ }
+ }
},
- "node_id": {
- "type": "string"
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "update"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
+ ]
+ }
+ }
},
- "name": {
- "type": "string"
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "deletion"
+ ]
+ }
+ }
},
- "full_name": {
- "type": "string"
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ }
},
- "owner": {
- "anyOf": [
- {
- "type": "null"
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "parameters": {
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
},
- "login": {
+ "grouping_strategy": {
"type": "string",
- "examples": [
- "octocat"
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
]
},
- "id": {
+ "max_entries_to_build": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "avatar_url": {
+ "merge_method": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
+ },
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ }
+ },
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
},
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
},
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
},
- "organizations_url": {
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
+ }
+ },
+ "required": [
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "description": "How this rule will appear to users."
},
- "repos_url": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "events_url": {
+ "pattern": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "received_events_url": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "type": {
+ "pattern": {
"type": "string",
- "examples": [
- "User"
- ]
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "site_admin": {
- "type": "boolean"
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
},
- "starred_at": {
+ "operator": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "user_view_type": {
+ "pattern": {
"type": "string",
- "examples": [
- "public"
- ]
+ "description": "The pattern to match with."
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "operator",
+ "pattern"
]
}
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "size": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "default_branch": {
- "type": "string"
- },
- "score": {
- "type": "number"
- },
- "forks_url": {
- "type": "string",
- "format": "uri"
- },
- "keys_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string",
- "format": "uri"
- },
- "hooks_url": {
- "type": "string",
- "format": "uri"
- },
- "issue_events_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string",
- "format": "uri"
- },
- "assignees_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string",
- "format": "uri"
- },
- "blobs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string",
- "format": "uri"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri"
- },
- "contributors_url": {
- "type": "string",
- "format": "uri"
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri"
- },
- "subscription_url": {
- "type": "string",
- "format": "uri"
- },
- "commits_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string",
- "format": "uri"
- },
- "archive_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string",
- "format": "uri"
- },
- "issues_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string",
- "format": "uri"
- },
- "forks": {
- "type": "integer"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
}
},
- "mirror_url": {
- "type": [
- "string",
- "null"
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
],
- "format": "uri"
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string"
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
+ ]
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "parameters": {
"type": "object",
"properties": {
- "key": {
+ "name": {
"type": "string",
- "examples": [
- "mit"
- ]
+ "description": "How this rule will appear to users."
},
- "name": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "examples": [
- "MIT License"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
},
- "node_id": {
+ "operator": {
"type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "html_url": {
+ "pattern": {
"type": "string",
- "format": "uri"
+ "description": "The pattern to match with."
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "operator",
+ "pattern"
]
}
- ]
+ }
},
- "permissions": {
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
+ ]
},
- "pull": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
}
}
- }
+ },
+ "required": [
+ "restricted_file_paths"
+ ]
}
}
},
- "temp_clone_token": {
- "type": "string"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_auto_merge": {
- "type": "boolean"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "allow_forking": {
- "type": "boolean"
- },
- "is_template": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "score"
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/topics",
- "title": "Search topics",
- "category": "search",
- "subcategory": "search",
- "parameters": [
- {
- "name": "q",
- "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query .
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page . See \"Searching topics \" for a detailed list of qualifiers.
\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 .
\nFor example, if you want to search for topics related to Ruby that are featured on https://github.com/topics . Your query might look like this:
\nq=ruby+is:featured
\nThis query searches for topics with the keyword ruby and limits 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.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 6,
- "incomplete_results": false,
- "items": [
- {
- "name": "ruby",
- "display_name": "Ruby",
- "short_description": "Ruby is a scripting language designed for simplified object-oriented programming.",
- "description": "Ruby was developed by Yukihiro \"Matz\" Matsumoto in 1995 with the intent of having an easily readable programming language. It is integrated with the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.",
- "created_by": "Yukihiro Matsumoto",
- "released": "December 21, 1995",
- "created_at": "2016-11-28T22:03:59Z",
- "updated_at": "2017-10-30T18:16:32Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "rails",
- "display_name": "Rails",
- "short_description": "Ruby on Rails (Rails) is a web application framework written in Ruby.",
- "description": "Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.",
- "created_by": "David Heinemeier Hansson",
- "released": "December 13 2005",
- "created_at": "2016-12-09T17:03:50Z",
- "updated_at": "2017-10-30T16:20:19Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "python",
- "display_name": "Python",
- "short_description": "Python is a dynamically typed programming language.",
- "description": "Python is a dynamically typed programming language designed by Guido Van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.",
- "created_by": "Guido van Rossum",
- "released": "February 20, 1991",
- "created_at": "2016-12-07T00:07:02Z",
- "updated_at": "2017-10-27T22:45:43Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "jekyll",
- "display_name": "Jekyll",
- "short_description": "Jekyll is a simple, blog-aware static site generator.",
- "description": "Jekyll is a blog-aware, site generator written in Ruby. It takes raw text files, runs it through a renderer and produces a publishable static website.",
- "created_by": "Tom Preston-Werner",
- "released": "2008",
- "created_at": "2016-12-16T21:53:08Z",
- "updated_at": "2017-10-27T19:00:24Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "sass",
- "display_name": "Sass",
- "short_description": "Sass is a stable extension to classic CSS.",
- "description": "Sass is a stylesheet language with a main implementation in Ruby. It is an extension of CSS that makes improvements to the old stylesheet format, such as being able to declare variables and using a cleaner nesting syntax.",
- "created_by": "Hampton Catlin, Natalie Weizenbaum, Chris Eppstein",
- "released": "November 28, 2006",
- "created_at": "2016-12-16T21:53:45Z",
- "updated_at": "2018-01-16T16:30:40Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "homebrew",
- "display_name": "Homebrew",
- "short_description": "Homebrew is a package manager for macOS.",
- "description": "Homebrew is a package manager for Apple's macOS operating system. It simplifies the installation of software and is popular in the Ruby on Rails community.",
- "created_by": "Max Howell",
- "released": "2009",
- "created_at": "2016-12-17T20:30:44Z",
- "updated_at": "2018-02-06T16:14:56Z",
- "featured": true,
- "curated": true,
- "score": 1
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "Topic Search Result Item",
- "description": "Topic Search Result Item",
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "display_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "short_description": {
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "created_by": {
- "type": [
- "string",
- "null"
- ]
- },
- "released": {
- "type": [
- "string",
- "null"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "featured": {
- "type": "boolean"
- },
- "curated": {
- "type": "boolean"
- },
- "score": {
- "type": "number"
- },
- "repository_count": {
- "type": [
- "integer",
- "null"
- ]
- },
- "logo_url": {
- "type": [
- "string",
- "null"
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
],
- "format": "uri"
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
}
- }
+ },
+ "required": [
+ "max_file_path_length"
+ ]
}
}
},
- "related": {
- "type": [
- "array",
- "null"
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
],
- "items": {
- "type": "object",
- "properties": {
- "topic_relation": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "topic_id": {
- "type": "integer"
- },
- "relation_type": {
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
"type": "string"
}
}
- }
+ },
+ "required": [
+ "restricted_file_extensions"
+ ]
}
}
},
- "aliases": {
- "type": [
- "array",
- "null"
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
],
- "items": {
- "type": "object",
- "properties": {
- "topic_relation": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "topic_id": {
- "type": "integer"
- },
- "relation_type": {
- "type": "string"
- }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
}
- }
+ },
+ "required": [
+ "max_file_size"
+ ]
}
}
- }
- },
- "required": [
- "name",
- "display_name",
- "short_description",
- "description",
- "created_by",
- "released",
- "created_at",
- "updated_at",
- "featured",
- "curated",
- "score"
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/users",
- "title": "Search users",
- "category": "search",
- "subcategory": "search",
- "parameters": [
- {
- "name": "q",
- "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching users \" for a detailed list of qualifiers.
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "description": "Sorts the results of your query by number of followers or repositories, or when the person joined GitHub. Default: best match
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "followers",
- "repositories",
- "joined"
- ]
- }
- },
- {
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page .
\nWhen searching for users, you can get text match metadata for the issue login , public email , and name fields when you pass the text-match media type. For more details about highlighting search results, see Text match metadata . For more details about how to receive highlighted search results, see Text match metadata .
\nFor example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
\nThis query searches for users with the name tom. The results are restricted to users with more than 42 repositories and over 1,000 followers.
\nThis endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 12,
- "incomplete_results": false,
- "items": [
- {
- "login": "mojombo",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/mojombo",
- "html_url": "https://github.com/mojombo",
- "followers_url": "https://api.github.com/users/mojombo/followers",
- "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
- "organizations_url": "https://api.github.com/users/mojombo/orgs",
- "repos_url": "https://api.github.com/users/mojombo/repos",
- "received_events_url": "https://api.github.com/users/mojombo/received_events",
- "type": "User",
- "score": 1,
- "following_url": "https://api.github.com/users/mojombo/following{/other_user}",
- "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
- "events_url": "https://api.github.com/users/mojombo/events{/privacy}",
- "site_admin": true
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "User Search Result Item",
- "description": "User Search Result Item",
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string",
- "format": "uri"
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "followers_url": {
- "type": "string",
- "format": "uri"
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri"
- },
- "organizations_url": {
- "type": "string",
- "format": "uri"
- },
- "repos_url": {
- "type": "string",
- "format": "uri"
- },
- "received_events_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "type": "string"
- },
- "score": {
- "type": "number"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "public_repos": {
- "type": "integer"
- },
- "public_gists": {
- "type": "integer"
- },
- "followers": {
- "type": "integer"
- },
- "following": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
},
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "bio": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
],
- "format": "email"
- },
- "location": {
- "type": [
- "string",
- "null"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "hireable": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
},
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
+ }
+ },
+ "required": [
+ "workflows"
+ ]
+ }
+ }
+ },
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
}
- }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
}
}
- }
+ },
+ "required": [
+ "code_scanning_tools"
+ ]
}
}
},
- "blog": {
- "type": [
- "string",
- "null"
- ]
- },
- "company": {
- "type": [
- "string",
- "null"
- ]
- },
- "suspended_at": {
- "type": [
- "string",
- "null"
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
],
- "format": "date-time"
- },
- "user_view_type": {
- "type": "string"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
+ }
+ }
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url",
- "score"
]
}
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
}
@@ -680621,20 +728214,16 @@
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -680642,26 +728231,24 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
}
- }
- ]
- },
- "secret-scanning": {
- "secret-scanning": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/secret-scanning/alerts",
- "title": "List secret scanning alerts for an organization",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
+ "title": "Get a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -680669,165 +728256,36 @@
}
},
{
- "name": "state",
- "in": "query",
- "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- }
- },
- {
- "name": "secret_type",
- "in": "query",
- "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "resolution",
- "in": "query",
- "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "assignee",
- "in": "query",
- "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
- "required": false,
- "schema": {
- "type": "string"
- },
- "examples": {
- "assigned-to-user": {
- "value": "octocat",
- "summary": "Filter for alerts assigned to the user \"octocat\""
- },
- "all-assigned": {
- "value": "*",
- "summary": "Filter for all assigned alerts"
- },
- "all-unassigned": {
- "value": "none",
- "summary": "Filter for all unassigned alerts"
- }
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "validity",
- "in": "query",
- "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "is_publicly_leaked",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- },
- {
- "name": "is_multi_repo",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
- "required": false,
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "boolean",
- "default": false
+ "type": "integer"
}
},
{
- "name": "hide_secret",
+ "name": "includes_parents",
+ "description": "Include rulesets configured at higher levels that apply to this repository
",
"in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
"required": false,
"schema": {
"type": "boolean",
- "default": false
+ "default": true
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
\nThe authenticated user must be an administrator or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Get a ruleset for a repository.
\nNote: To prevent leaking sensitive information, the bypass_actors property is only returned if the user\nmaking the API request has write access to the ruleset.
",
"codeExamples": [
{
"key": "default",
@@ -680835,4803 +728293,3854 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "number": 2,
- "created_at": "2020-11-06T18:48:51Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
- "state": "resolved",
- "resolution": "false_positive",
- "resolved_at": "2020-11-07T02:47:13Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "example": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
},
- "secret_type": "adafruit_io_key",
- "secret_type_display_name": "Adafruit IO Key",
- "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ "schema": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
},
- "push_protection_bypassed_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
},
- "push_protection_bypassed": true,
- "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
- "push_protection_bypass_request_reviewer": {
- "login": "octocat",
- "id": 3,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/3?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
},
- "push_protection_bypass_request_reviewer_comment": "Example response",
- "push_protection_bypass_request_comment": "Example comment",
- "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
- "resolution_comment": "Example comment",
- "validity": "active",
- "publicly_leaked": false,
- "multi_repo": false,
- "is_base64_encoded": false,
- "first_location_detected": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
},
- "has_more_locations": true,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
- },
- "repository": {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
"type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
"properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
+ "actor_id": {
"type": [
- "string",
+ "integer",
"null"
],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories."
},
- "trees_url": {
+ "actor_type": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey"
+ ],
+ "description": "The type of actor that can bypass a ruleset."
},
- "hooks_url": {
+ "bypass_mode": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
- },
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "enum": [
+ "creation"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "enum": [
+ "update"
]
},
- "type": {
- "type": "string",
- "examples": [
- "User"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ }
+ }
+ },
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "deletion"
]
- },
- "user_view_type": {
+ }
+ }
+ },
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "public"
+ "enum": [
+ "required_linear_history"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment that was optionally added when this alert was closed"
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
- ]
- },
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "path": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
"type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
]
},
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
},
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "blob_sha": {
+ "merge_method": {
"type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
]
},
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_deployments"
]
},
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "parameters": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ }
+ },
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
},
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
},
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
},
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
},
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
]
},
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
}
},
"required": [
- "issue_title_url"
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
]
},
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
]
},
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_comment_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_comment_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
]
},
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_title_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_title_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_comment_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_comment_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
]
},
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull_request_title_url"
+ "restricted_file_paths"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
]
},
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
}
},
"required": [
- "pull_request_body_url"
+ "max_file_path_length"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
]
},
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull_request_comment_url"
+ "restricted_file_extensions"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
]
},
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
}
},
"required": [
- "pull_request_review_url"
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
]
},
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
}
},
"required": [
- "pull_request_review_comment_url"
+ "workflows"
]
}
- ]
- }
- ]
- },
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "enum": [
+ "code_scanning"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
+ }
+ },
+ "required": [
+ "code_scanning_tools"
]
- },
+ }
+ }
+ },
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "copilot_code_review"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
}
+ }
+ }
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
+ "title": "Update a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the ruleset.
"
+ },
+ {
+ "type": "string",
+ "name": "target",
+ "in": "body",
+ "description": "The target of the ruleset
",
+ "enum": [
+ "branch",
+ "tag",
+ "push"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "enforcement",
+ "in": "body",
+ "description": "The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).
",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "bypass_actors",
+ "in": "body",
+ "description": "The actors that can bypass the rules in this ruleset
",
+ "childParamsGroups": [
+ {
+ "type": "integer or null",
+ "name": "actor_id",
+ "description": "The ID of the actor that can bypass a ruleset. Required for Integration, RepositoryRole, and Team actor types. If actor_type is OrganizationAdmin, this should be 1. If actor_type is DeployKey, this should be null. OrganizationAdmin is not applicable for personal repositories.
"
+ },
+ {
+ "type": "string",
+ "name": "actor_type",
+ "description": "The type of actor that can bypass a ruleset.
",
+ "isRequired": true,
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "bypass_mode",
+ "description": "When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. pull_request is not applicable for the DeployKey actor type. Also, pull_request is only applicable to branch rulesets. When bypass_mode is exempt, rules will not be run for that actor and a bypass audit entry will not be created.
",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "conditions",
+ "in": "body",
+ "description": "Parameters for a repository ruleset ref name condition
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "ref_name",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "include",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "exclude",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "rules",
+ "in": "body",
+ "description": "An array of rules within the ruleset.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "creation"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "update",
+ "description": "Only allow users with bypass permission to update matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "update"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "update_allows_fetch_and_merge",
+ "description": "Branch can pull changes from its upstream repository
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "deletion"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "merge_queue",
+ "description": "Merges must be performed via a merge queue.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "check_response_timeout_minutes",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "grouping_strategy",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
",
+ "isRequired": true,
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_build",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_merge",
+ "description": "The maximum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "merge_method",
+ "description": "Method to use when merging changes from queued pull requests.
",
+ "isRequired": true,
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge",
+ "description": "The minimum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge_wait_minutes",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "required_deployment_environments",
+ "description": "The environments that must be successfully deployed to before branches can be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "pull_request"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "allowed_merge_methods",
+ "description": "Array of allowed merge methods. Allowed values include merge, squash, and rebase. At least one option must be enabled.\nSupported values are: merge, squash, rebase
"
+ },
+ {
+ "type": "boolean",
+ "name": "dismiss_stale_reviews_on_push",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_code_owner_review",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_last_push_approval",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "required_approving_review_count",
+ "description": "The number of approving reviews that are required before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "required_review_thread_resolution",
+ "description": "All conversations on code must be resolved before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects",
+ "name": "required_reviewers",
+ "description": " Note
\n
\nrequired_reviewers is in beta and subject to change.
\n
\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "file_patterns",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "minimum_approvals",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
",
+ "isRequired": true
+ },
+ {
+ "type": "object",
+ "name": "reviewer",
+ "description": "A required reviewing team
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "id",
+ "description": "ID of the reviewer which must review changes to matching files.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of the reviewer
",
+ "isRequired": true,
+ "enum": [
+ "Team"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "required_status_checks",
+ "description": "Status checks that are required.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "context",
+ "description": "The status check context name that must be present on the commit.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "integration_id",
+ "description": "The optional integration ID that this status check must originate from.
"
+ }
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "strict_required_status_checks_policy",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_paths",
+ "description": "The file paths that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_path_length",
+ "description": "The maximum amount of characters allowed in file paths.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_extensions",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_size",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "workflows"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "workflows",
+ "description": "Workflows that must pass for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "path",
+ "description": "The path to the workflow file
",
+ "isRequired": true
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
+ {
+ "type": "string",
+ "name": "ref",
+ "description": "The ref (branch or tag) of the workflow file to use
"
+ },
+ {
+ "type": "integer",
+ "name": "repository_id",
+ "description": "The ID of the repository where the workflow is defined
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "description": "The commit SHA of the workflow file to use
"
+ }
+ ]
+ }
+ ]
}
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts",
- "title": "List secret scanning alerts for a repository",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "state",
- "in": "query",
- "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- }
- },
- {
- "name": "secret_type",
- "in": "query",
- "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "resolution",
- "in": "query",
- "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "assignee",
- "in": "query",
- "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
- "required": false,
- "schema": {
- "type": "string"
- },
- "examples": {
- "assigned-to-user": {
- "value": "octocat",
- "summary": "Filter for alerts assigned to the user \"octocat\""
+ ]
},
- "all-assigned": {
- "value": "*",
- "summary": "Filter for all assigned alerts"
+ {
+ "type": "object",
+ "name": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of objects",
+ "name": "code_scanning_tools",
+ "description": "Tools that must provide code scanning results for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "alerts_threshold",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "security_alerts_threshold",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "tool",
+ "description": "The name of a code scanning tool
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
},
- "all-unassigned": {
- "value": "none",
- "summary": "Filter for all unassigned alerts"
+ {
+ "type": "object",
+ "name": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "review_draft_pull_requests",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review.
"
+ },
+ {
+ "type": "boolean",
+ "name": "review_on_push",
+ "description": "Copilot automatically reviews each new push to the pull request.
"
+ }
+ ]
+ }
+ ]
}
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "validity",
- "in": "query",
- "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "is_publicly_leaked",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- },
- {
- "name": "is_multi_repo",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- },
- {
- "name": "hide_secret",
- "in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
+ ],
+ "oneOfObject": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists secret scanning alerts for an eligible repository, from newest to oldest.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Update a ruleset for a repository.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "super cool ruleset",
+ "target": "branch",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ]
+ },
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "number": 2,
- "created_at": "2020-11-06T18:48:51Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
- "state": "resolved",
- "resolution": "false_positive",
- "resolved_at": "2020-11-07T02:47:13Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "example": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
},
- "secret_type": "adafruit_io_key",
- "secret_type_display_name": "Adafruit IO Key",
- "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "push_protection_bypassed_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ "schema": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
},
- "push_protection_bypassed": true,
- "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
- "push_protection_bypass_request_reviewer": {
- "login": "octocat",
- "id": 3,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/3?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
},
- "push_protection_bypass_request_reviewer_comment": "Example response",
- "push_protection_bypass_request_comment": "Example comment",
- "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
- "resolution_comment": "Example comment",
- "validity": "inactive",
- "publicly_leaked": false,
- "multi_repo": false,
- "is_base64_encoded": false,
- "first_location_detected": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
},
- "has_more_locations": true,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
+ },
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
+ "type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
+ "properties": {
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories."
},
- {
+ "actor_type": {
"type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey"
+ ],
+ "description": "The type of actor that can bypass a ruleset."
},
+ "bypass_mode": {
+ "type": "string",
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
+ }
+ },
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "enum": [
+ "creation"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment to resolve an alert."
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "update"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "enum": [
+ "deletion"
]
- },
- "repos_url": {
+ }
+ }
+ },
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "enum": [
+ "required_linear_history"
]
- },
- "events_url": {
+ }
+ }
+ },
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "enum": [
+ "merge_queue"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
+ "type": "string",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
+ },
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
]
- },
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "required_deployments"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
]
- },
- "user_view_type": {
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "public"
+ "enum": [
+ "required_signatures"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
- ]
- },
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
},
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
},
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
},
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
},
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
},
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
},
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
]
},
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "parameters": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
+ "name": {
"type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "description": "How this rule will appear to users."
},
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
},
- "commit_sha": {
+ "operator": {
"type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "commit_url": {
+ "pattern": {
"type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "description": "The pattern to match with."
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
+ "operator",
+ "pattern"
]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
]
},
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
]
},
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_comment_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_comment_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_title_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_title_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
]
},
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "discussion_comment_url"
+ "restricted_file_paths"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
]
},
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
}
},
"required": [
- "pull_request_title_url"
+ "max_file_path_length"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
]
},
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull_request_body_url"
+ "restricted_file_extensions"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
]
},
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
}
},
"required": [
- "pull_request_comment_url"
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
]
},
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
}
},
"required": [
- "pull_request_review_url"
+ "workflows"
+ ]
+ }
+ }
+ },
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code_scanning"
]
},
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
}
},
"required": [
- "pull_request_review_comment_url"
+ "code_scanning_tools"
]
}
- ]
- }
- ]
- },
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "enum": [
+ "copilot_code_review"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Repository is public or secret scanning is disabled for the repository
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
- "title": "Get a secret scanning alert",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "alert_number",
- "in": "path",
- "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
- "required": true,
- "schema": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- }
- },
- {
- "name": "hide_secret",
- "in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a single secret scanning alert detected in an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "alert_number": "ALERT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "number": 42,
- "created_at": "2020-11-06T18:18:30Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
- "state": "open",
- "resolution": null,
- "resolved_at": null,
- "resolved_by": null,
- "secret_type": "mailchimp_api_key",
- "secret_type_display_name": "Mailchimp API Key",
- "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
- "push_protection_bypassed_by": null,
- "push_protection_bypassed": false,
- "push_protection_bypassed_at": null,
- "push_protection_bypass_request_reviewer": null,
- "push_protection_bypass_request_reviewer_comment": null,
- "push_protection_bypass_request_comment": null,
- "push_protection_bypass_request_html_url": null,
- "resolution_comment": null,
- "validity": "unknown",
- "publicly_leaked": false,
- "multi_repo": false
- },
- "schema": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment to resolve an alert."
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
- ]
- },
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
- ]
- },
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
- "type": "object",
- "properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_body_url"
- ]
- },
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
- "type": "object",
- "properties": {
- "issue_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
- ]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
- ]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
- }
- },
- "required": [
- "discussion_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_title_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "pull_request_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
},
- "required": [
- "pull_request_review_comment_url"
- ]
- }
- ]
- }
- ]
- },
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
}
@@ -685643,17 +732152,13 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
{
"httpStatusCode": "404",
- "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -685663,18 +732168,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Administration\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
- "title": "Update a secret scanning alert",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
+ "title": "Delete a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
"name": "owner",
@@ -685695,1332 +732200,191 @@
}
},
{
- "name": "alert_number",
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
"in": "path",
- "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
"required": true,
"schema": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
+ "type": "integer"
}
}
],
- "bodyParameters": [
+ "bodyParameters": [],
+ "descriptionHTML": "Delete a ruleset for a repository.
",
+ "codeExamples": [
{
- "type": "string",
- "name": "state",
- "in": "body",
- "description": "Sets the state of the secret scanning alert. You must provide resolution when you set the state to resolved.
",
- "enum": [
- "open",
- "resolved"
- ]
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "type": "string or null",
- "name": "resolution",
- "in": "body",
- "description": "Required when the state is resolved. The reason for resolving the alert.
",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "type": "string or null",
- "name": "resolution_comment",
- "in": "body",
- "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
+ "title": "Get repository ruleset history",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "string or null",
- "name": "assignee",
- "in": "body",
- "description": "The username of the user to assign to the alert. Set to null to unassign the alert.
"
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
- "descriptionHTML": "Updates the status of a secret scanning alert in an eligible repository.
\nYou can also use this endpoint to assign or unassign an alert to a user who has write access to the repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Get the history of a repository ruleset.
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "state": "resolved",
- "resolution": "false_positive"
- },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "alert_number": "ALERT_NUMBER"
+ "ruleset_id": "RULESET_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "number": 42,
- "created_at": "2020-11-06T18:18:30Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
- "state": "resolved",
- "resolution": "used_in_tests",
- "resolved_at": "2020-11-16T22:42:07Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
- },
- "secret_type": "mailchimp_api_key",
- "secret_type_display_name": "Mailchimp API Key",
- "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
- "push_protection_bypassed": false,
- "push_protection_bypassed_by": null,
- "push_protection_bypassed_at": null,
- "push_protection_bypass_request_reviewer": null,
- "push_protection_bypass_request_reviewer_comment": null,
- "push_protection_bypass_request_comment": null,
- "push_protection_bypass_request_html_url": null,
- "resolution_comment": "Example comment",
- "validity": "unknown",
- "publicly_leaked": false,
- "multi_repo": false,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://alambic.github.com/avatars/u/1?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- },
- "schema": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment to resolve an alert."
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
- ]
- },
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
+ "example": [
+ {
+ "version_id": 3,
+ "actor": {
+ "id": 1,
+ "type": "User"
},
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
- ]
- },
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
- "type": "object",
- "properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_body_url"
- ]
- },
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
- "type": "object",
- "properties": {
- "issue_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
- ]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
- ]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
- }
- },
- "required": [
- "discussion_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_title_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "pull_request_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
- },
- "required": [
- "pull_request_review_comment_url"
- ]
- }
- ]
- }
- ]
+ "updated_at": "2024-010-23T16:29:47Z"
+ },
+ {
+ "version_id": 2,
+ "actor": {
+ "id": 2,
+ "type": "User"
},
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ "updated_at": "2024-09-23T16:29:47Z"
+ },
+ {
+ "version_id": 1,
+ "actor": {
+ "id": 1,
+ "type": "User"
},
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "updated_at": "2024-08-23T16:29:47Z"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Ruleset version",
+ "type": "object",
+ "description": "The historical version of a ruleset",
+ "required": [
+ "version_id",
+ "actor",
+ "updated_at"
+ ],
+ "properties": {
+ "version_id": {
+ "type": "integer",
+ "description": "The ID of the previous version of the ruleset"
+ },
+ "actor": {
+ "type": "object",
+ "description": "The actor who updated the ruleset",
+ "properties": {
+ "id": {
+ "type": "integer"
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ "type": {
+ "type": "string"
+ }
}
- ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
}
}
@@ -687032,21 +732396,13 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "400",
- "description": "Bad request, resolution comment is invalid or the resolution was not changed.
"
- },
{
"httpStatusCode": "404",
- "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "State does not match the resolution or resolution comment, or assignee does not have write access to the repository
"
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -687056,7 +732412,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "write"
+ "\"Administration\" repository permissions": "write"
}
]
}
@@ -687064,10 +732420,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
- "title": "List locations for a secret scanning alert",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}",
+ "title": "Get repository ruleset version",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
"name": "owner",
@@ -687088,37 +732444,26 @@
}
},
{
- "name": "alert_number",
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
"in": "path",
- "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
"required": true,
"schema": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
+ "type": "integer"
}
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "version_id",
+ "description": "The ID of the version
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "integer"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists all locations for a given secret scanning alert for an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Get a version of a repository ruleset.
",
"codeExamples": [
{
"key": "default",
@@ -687128,7 +732473,8 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "alert_number": "ALERT_NUMBER"
+ "ruleset_id": "RULESET_ID",
+ "version_id": "VERSION_ID"
}
},
"response": {
@@ -687137,451 +732483,96 @@
"description": "Response
",
"example": [
{
- "type": "commit",
- "details": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
- }
- },
- {
- "type": "wiki_commit",
- "details": {
- "path": "/example/Home.md",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
- "commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
- "commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- }
- },
- {
- "type": "issue_title",
- "details": {
- "issue_title_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- }
- },
- {
- "type": "issue_body",
- "details": {
- "issue_body_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- }
- },
- {
- "type": "issue_comment",
- "details": {
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- }
- },
- {
- "type": "discussion_title",
- "details": {
- "discussion_title_url": "https://github.com/community/community/discussions/39082"
- }
- },
- {
- "type": "discussion_body",
- "details": {
- "discussion_body_url": "https://github.com/community/community/discussions/39082#discussion-4566270"
- }
- },
- {
- "type": "discussion_comment",
- "details": {
- "discussion_comment_url": "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- }
- },
- {
- "type": "pull_request_title",
- "details": {
- "pull_request_title_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- }
- },
- {
- "type": "pull_request_body",
- "details": {
- "pull_request_body_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- }
- },
- {
- "type": "pull_request_comment",
- "details": {
- "pull_request_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1825855898"
- }
- },
- {
- "type": "pull_request_review",
- "details": {
- "pull_request_review_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- }
- },
- {
- "type": "pull_request_review_comment",
- "details": {
- "pull_request_review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ "version_id": 3,
+ "actor": {
+ "id": 1,
+ "type": "User"
+ },
+ "updated_at": "2024-010-23T16:29:47Z",
+ "state": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ]
}
}
],
"schema": {
- "type": "array",
- "description": "List of locations where the secret was detected",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit",
- "wiki_commit",
- "issue_title",
- "issue_body",
- "issue_comment",
- "discussion_title",
- "discussion_body",
- "discussion_comment",
- "pull_request_title",
- "pull_request_body",
- "pull_request_comment",
- "pull_request_review",
- "pull_request_review_comment"
- ],
- "description": "The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.",
- "examples": [
- "commit"
- ]
- },
- "details": {
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
- ]
- },
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
- "type": "object",
- "properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_body_url"
- ]
- },
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
- "type": "object",
- "properties": {
- "issue_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
- ]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
- ]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
- }
- },
- "required": [
- "discussion_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_title_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "pull_request_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
+ "allOf": [
+ {
+ "title": "Ruleset version",
+ "type": "object",
+ "description": "The historical version of a ruleset",
+ "required": [
+ "version_id",
+ "actor",
+ "updated_at"
+ ],
+ "properties": {
+ "version_id": {
+ "type": "integer",
+ "description": "The ID of the previous version of the ruleset"
+ },
+ "actor": {
+ "type": "object",
+ "description": "The actor who updated the ruleset",
+ "properties": {
+ "id": {
+ "type": "integer"
},
- "required": [
- "pull_request_review_comment_url"
- ]
+ "type": {
+ "type": "string"
+ }
}
- ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "state"
+ ],
+ "properties": {
+ "state": {
+ "type": "object",
+ "description": "The state of the ruleset version"
+ }
}
}
- }
+ ]
}
}
}
@@ -687593,11 +732584,11 @@
},
{
"httpStatusCode": "404",
- "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -687607,7 +732598,131 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "tags": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/tags/protection",
+ "title": "Closing down - List tag protection states for a repository",
+ "category": "repos",
+ "subcategory": "tags",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis returns the tag protection states of a repository.
\nThis information is only available to repository administrators.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 2,
+ "pattern": "v1.*"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Tag protection",
+ "description": "Tag protection",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "enabled": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "examples": [
+ "v1.*"
+ ]
+ }
+ },
+ "required": [
+ "pattern"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "read"
}
]
}
@@ -687615,10 +732730,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "post",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses",
- "title": "Create a push protection bypass",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/tags/protection",
+ "title": "Closing down - Create a tag protection state for a repository",
+ "category": "repos",
+ "subcategory": "tags",
"parameters": [
{
"name": "owner",
@@ -687642,25 +732757,13 @@
"bodyParameters": [
{
"type": "string",
- "name": "reason",
- "in": "body",
- "description": "The reason for bypassing push protection.
",
- "isRequired": true,
- "enum": [
- "false_positive",
- "used_in_tests",
- "will_fix_later"
- ]
- },
- {
- "type": "string",
- "name": "placeholder_id",
+ "name": "pattern",
"in": "body",
- "description": "The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
",
+ "description": "An optional glob pattern to match against when enforcing tag protection.
",
"isRequired": true
}
],
- "descriptionHTML": "Creates a bypass for a previously push protected secret.
\nThe authenticated user must be the original author of the committed secret.
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
",
+ "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis creates a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
"codeExamples": [
{
"key": "default",
@@ -687669,8 +732772,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "reason": "will_fix_later",
- "placeholder_id": "2k4dM4tseyC5lPIsjl5emX9sPNk"
+ "pattern": "v1.*"
},
"parameters": {
"owner": "OWNER",
@@ -687678,84 +732780,172 @@
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "reason": "will_fix_later",
- "expire_at": "2020-11-06T18:18:30Z",
- "token_type": "mailchimp_api_key"
+ "enabled": true
},
"schema": {
+ "title": "Tag protection",
+ "description": "Tag protection",
"type": "object",
"properties": {
- "reason": {
- "description": "The reason for bypassing push protection.",
+ "id": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "created_at": {
"type": "string",
- "enum": [
- "false_positive",
- "used_in_tests",
- "will_fix_later"
+ "examples": [
+ "2011-01-26T19:01:12Z"
]
},
- "expire_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ "updated_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
},
- "token_type": {
+ "enabled": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "pattern": {
"type": "string",
- "description": "The token type this bypass is for."
+ "examples": [
+ "v1.*"
+ ]
}
- }
+ },
+ "required": [
+ "pattern"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "403",
- "description": "User does not have enough permissions to perform this action.
"
+ "description": "Forbidden
"
},
{
"httpStatusCode": "404",
- "description": "Placeholder ID not found, or push protection is disabled on this repository.
"
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/tags/protection/{tag_protection_id}",
+ "title": "Closing down - Delete a tag protection state for a repository",
+ "category": "repos",
+ "subcategory": "tags",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "httpStatusCode": "422",
- "description": "Bad request, input data missing or incorrect.
"
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "name": "tag_protection_id",
+ "description": "The unique identifier of the tag protection.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis deletes a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "tag_protection_id": "TAG_PROTECTION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": false,
+ "serverToServer": true,
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "write"
+ "\"Administration\" repository permissions": "write"
}
]
}
- },
+ }
+ ],
+ "webhooks": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/scan-history",
- "title": "Get secret scanning scan history for a repository",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/hooks",
+ "title": "List repository webhooks",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
"name": "owner",
@@ -687774,10 +732964,28 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
\n\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Lists webhooks for a repository. last response may return null if there have not been any deliveries within 30 days.
",
"codeExamples": [
{
"key": "default",
@@ -687793,230 +733001,556 @@
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "incremental_scans": [
- {
- "type": "git",
- "status": "completed",
- "completed_at": "2024-10-07T02:47:00Z"
- }
- ],
- "backfill_scans": [
- {
- "type": "git",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:50:00Z"
- },
- {
- "type": "issue",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:49:00Z"
- },
- {
- "type": "discussion",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:48:00Z"
- }
- ],
- "pattern_update_scans": [
- {
- "type": "discussion",
- "status": "in_progress",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:51:00Z"
- }
- ],
- "custom_pattern_backfill_scans": [
- {
- "type": "git",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:55:00Z",
- "pattern_slug": "my-custom-pattern",
- "pattern_scope": "enterprise"
+ "example": [
+ {
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
},
- {
- "type": "git",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:55:00Z",
- "pattern_slug": "my-custom-pattern",
- "pattern_scope": "organization"
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
}
- ]
- },
+ }
+ ],
"schema": {
- "type": "object",
- "properties": {
- "incremental_scans": {
- "type": "array",
- "items": {
- "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "array",
+ "items": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
+ "type": "string",
+ "examples": [
+ "web"
+ ]
+ },
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
+ },
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
"type": "object",
"properties": {
- "type": {
+ "url": {
"type": "string",
- "description": "The type of scan"
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
},
- "status": {
+ "content_type": {
"type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
},
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
},
- "started_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
}
}
- }
- },
- "pattern_update_scans": {
- "type": "array",
- "items": {
- "description": "Information on a single scan performed by secret scanning on the repository",
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
+ },
+ "test_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
+ },
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
+ },
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
+ },
+ "last_response": {
+ "title": "Hook Response",
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
- },
- "status": {
- "type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
- },
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
- },
- "started_at": {
+ "code": {
"type": [
- "string",
+ "integer",
"null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
- }
- }
- }
- },
- "backfill_scans": {
- "type": "array",
- "items": {
- "description": "Information on a single scan performed by secret scanning on the repository",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
+ ]
},
"status": {
- "type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
- },
- "completed_at": {
"type": [
"string",
"null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
+ ]
},
- "started_at": {
+ "message": {
"type": [
"string",
"null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
+ ]
}
- }
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
+ ]
}
},
- "custom_pattern_backfill_scans": {
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks",
+ "title": "Create a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
"
+ },
+ {
+ "type": "object",
+ "name": "config",
+ "in": "body",
+ "description": "Key/value pairs to provide settings for this webhook.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "url",
+ "description": "The URL to which the payloads will be delivered.
"
+ },
+ {
+ "type": "string",
+ "name": "content_type",
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
+ },
+ {
+ "type": "string",
+ "name": "secret",
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
+ },
+ {
+ "type": "string or number",
+ "name": "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": "array of strings",
+ "name": "events",
+ "in": "body",
+ "description": "Determines what events the hook is triggered for.
",
+ "default": [
+ "push"
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
+ "default": true
+ }
+ ],
+ "descriptionHTML": "Repositories can have multiple webhooks installed. Each webhook should have a unique config. Multiple webhooks can\nshare the same config as long as those webhooks do not have any events that overlap.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "url": "https://example.com/webhook",
+ "content_type": "json",
+ "insecure_ssl": "0"
+ }
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
+ },
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
+ }
+ },
+ "schema": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
+ "type": "string",
+ "examples": [
+ "web"
+ ]
+ },
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
"type": "array",
"items": {
- "allOf": [
- {
- "description": "Information on a single scan performed by secret scanning on the repository",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
- },
- "status": {
- "type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
- },
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
- },
- "started_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
- }
- }
- },
- {
- "type": "object",
- "properties": {
- "pattern_name": {
- "type": "string",
- "description": "Name of the custom pattern for custom pattern scans"
- },
- "pattern_scope": {
- "type": "string",
- "description": "Level at which the custom pattern is defined, one of \"repository\", \"organization\", or \"enterprise\""
- }
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
+ },
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
}
- }
- ]
+ ]
+ }
}
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
+ },
+ "test_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
+ },
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
+ },
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
+ },
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
+ ]
}
- }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
"httpStatusCode": "404",
- "description": "Repository does not have GitHub Advanced Security or secret scanning enabled
"
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -688026,33 +733560,49 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Webhooks\" repository permissions": "write"
}
]
}
- }
- ],
- "push-protection": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
- "title": "List organization pattern configurations",
- "category": "secret-scanning",
- "subcategory": "push-protection",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
+ "title": "Get a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the read:org scope to use this endpoint.
",
+ "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config properties, see \"Get a webhook configuration for a repository .\"
",
"codeExamples": [
{
"key": "default",
@@ -688060,7 +733610,9 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
}
},
"response": {
@@ -688068,207 +733620,200 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "provider_pattern_overrides": [
- {
- "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
- "slug": "github_personal_access_token_legacy_v2",
- "display_name": "GitHub Personal Access Token (Legacy v2)",
- "alert_total": 15,
- "alert_total_percentage": 36,
- "false_positives": 2,
- "false_positive_rate": 13,
- "bypass_rate": 13,
- "default_setting": "enabled",
- "setting": "enabled",
- "enterprise_setting": "enabled"
- }
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
],
- "custom_pattern_overrides": [
- {
- "token_type": "cp_2",
- "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "slug": "custom-api-key",
- "display_name": "Custom API Key",
- "alert_total": 15,
- "alert_total_percentage": 36,
- "false_positives": 3,
- "false_positive_rate": 20,
- "bypass_rate": 20,
- "default_setting": "disabled",
- "setting": "enabled"
- }
- ]
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
+ },
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
+ }
},
"schema": {
- "title": "Secret scanning pattern configuration",
- "description": "A collection of secret scanning patterns and their settings related to push protection.",
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
"type": "object",
"properties": {
- "pattern_config_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
+ "type": {
+ "type": "string"
},
- "provider_pattern_overrides": {
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
+ "type": "string",
+ "examples": [
+ "web"
+ ]
+ },
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
"type": "array",
- "description": "Overrides for partner patterns.",
"items": {
- "type": "object",
- "properties": {
- "token_type": {
- "type": "string",
- "description": "The ID of the pattern."
- },
- "custom_pattern_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The version of this pattern if it's a custom pattern."
- },
- "slug": {
- "type": "string",
- "description": "The slug of the pattern."
- },
- "display_name": {
- "type": "string",
- "description": "The user-friendly name for the pattern."
- },
- "alert_total": {
- "type": "integer",
- "description": "The total number of alerts generated by this pattern."
- },
- "alert_total_percentage": {
- "type": "integer",
- "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
- },
- "false_positives": {
- "type": "integer",
- "description": "The number of false positive alerts generated by this pattern."
- },
- "false_positive_rate": {
- "type": "integer",
- "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
- },
- "bypass_rate": {
- "type": "integer",
- "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
- },
- "default_setting": {
- "type": "string",
- "description": "The default push protection setting for this pattern.",
- "enum": [
- "disabled",
- "enabled"
- ]
- },
- "enterprise_setting": {
- "type": [
- "string",
- "null"
- ],
- "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
- "enum": [
- "not-set",
- "disabled",
- "enabled",
- null
- ]
- },
- "setting": {
- "type": "string",
- "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
- }
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
+ },
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
}
}
},
- "custom_pattern_overrides": {
- "type": "array",
- "description": "Overrides for custom patterns defined by the organization.",
- "items": {
- "type": "object",
- "properties": {
- "token_type": {
- "type": "string",
- "description": "The ID of the pattern."
- },
- "custom_pattern_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The version of this pattern if it's a custom pattern."
- },
- "slug": {
- "type": "string",
- "description": "The slug of the pattern."
- },
- "display_name": {
- "type": "string",
- "description": "The user-friendly name for the pattern."
- },
- "alert_total": {
- "type": "integer",
- "description": "The total number of alerts generated by this pattern."
- },
- "alert_total_percentage": {
- "type": "integer",
- "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
- },
- "false_positives": {
- "type": "integer",
- "description": "The number of false positive alerts generated by this pattern."
- },
- "false_positive_rate": {
- "type": "integer",
- "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
- },
- "bypass_rate": {
- "type": "integer",
- "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
- },
- "default_setting": {
- "type": "string",
- "description": "The default push protection setting for this pattern.",
- "enum": [
- "disabled",
- "enabled"
- ]
- },
- "enterprise_setting": {
- "type": [
- "string",
- "null"
- ],
- "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
- "enum": [
- "not-set",
- "disabled",
- "enabled",
- null
- ]
- },
- "setting": {
- "type": "string",
- "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
- }
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
+ },
+ "test_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
+ },
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
+ },
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
+ },
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
+ ]
}
- }
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
+ ]
}
- }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
}
}
}
@@ -688278,10 +733823,6 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
{
"httpStatusCode": "404",
"description": "Resource not found
"
@@ -688294,7 +733835,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" organization permissions": "read"
+ "\"Webhooks\" repository permissions": "read"
}
]
}
@@ -688302,80 +733843,98 @@
{
"serverUrl": "https://api.github.com",
"verb": "patch",
- "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
- "title": "Update organization pattern configurations",
- "category": "secret-scanning",
- "subcategory": "push-protection",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
+ "title": "Update a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
"bodyParameters": [
{
- "type": "string or null",
- "name": "pattern_config_version",
- "in": "body",
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
- },
- {
- "type": "array of objects",
- "name": "provider_pattern_settings",
+ "type": "object",
+ "name": "config",
"in": "body",
- "description": "Pattern settings for provider patterns.
",
+ "description": "Configuration object of the webhook
",
"childParamsGroups": [
{
"type": "string",
- "name": "token_type",
- "description": "The ID of the pattern to configure.
"
+ "name": "url",
+ "description": "The URL to which the payloads will be delivered.
"
},
{
"type": "string",
- "name": "push_protection_setting",
- "description": "Push protection setting to set for the pattern.
",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
- }
- ]
- },
- {
- "type": "array of objects",
- "name": "custom_pattern_settings",
- "in": "body",
- "description": "Pattern settings for custom patterns.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "token_type",
- "description": "The ID of the pattern to configure.
"
+ "name": "content_type",
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
},
{
- "type": "string or null",
- "name": "custom_pattern_version",
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ "type": "string",
+ "name": "secret",
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
},
{
- "type": "string",
- "name": "push_protection_setting",
- "description": "Push protection setting to set for the pattern.
",
- "enum": [
- "disabled",
- "enabled"
- ]
+ "type": "string or number",
+ "name": "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": "array of strings",
+ "name": "events",
+ "in": "body",
+ "description": "Determines what events the hook is triggered for. This replaces the entire array of events.
",
+ "default": [
+ "push"
+ ]
+ },
+ {
+ "type": "array of strings",
+ "name": "add_events",
+ "in": "body",
+ "description": "Determines a list of events to be added to the list of events that the Hook triggers for.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "remove_events",
+ "in": "body",
+ "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
"
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
+ "default": true
}
],
- "descriptionHTML": "Updates the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the write:org scope to use this endpoint.
",
+ "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret set, you must provide the same secret or set a new secret or the secret will be removed. If you are only updating individual webhook config properties, use \"Update a webhook configuration for a repository .\"
",
"codeExamples": [
{
"key": "default",
@@ -688384,23 +733943,15 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "provider_pattern_settings": [
- {
- "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
- "push_protection_setting": "enabled"
- }
- ],
- "custom_pattern_settings": [
- {
- "token_type": "cp_2",
- "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "push_protection_setting": "enabled"
- }
+ "active": true,
+ "add_events": [
+ "pull_request"
]
},
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
}
},
"response": {
@@ -688408,16 +733959,200 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
+ },
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
+ }
},
"schema": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
"type": "object",
"properties": {
- "pattern_config_version": {
+ "type": {
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
"type": "string",
- "description": "The updated pattern configuration version."
+ "examples": [
+ "web"
+ ]
+ },
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
+ },
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ }
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
+ },
+ "test_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
+ },
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
+ },
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
+ },
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
+ ]
}
- }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
}
}
}
@@ -688427,22 +734162,10 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
{
"httpStatusCode": "404",
"description": "Resource not found
"
},
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
- },
{
"httpStatusCode": "422",
"description": "Validation failed, or the endpoint has been spammed.
"
@@ -688455,207 +734178,400 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" organization permissions": "write"
+ "\"Webhooks\" repository permissions": "write"
}
]
}
- }
- ]
- },
- "security-advisories": {
- "global-advisories": [
+ },
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/advisories",
- "title": "List global security advisories",
- "category": "security-advisories",
- "subcategory": "global-advisories",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
+ "title": "Delete a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
- "name": "ghsa_id",
- "in": "query",
- "description": "If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "type",
- "in": "query",
- "description": "If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "reviewed",
- "malware",
- "unreviewed"
- ],
- "default": "reviewed"
+ "type": "string"
}
},
{
- "name": "cve_id",
- "description": "If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.
",
- "in": "query",
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string"
+ "type": "integer"
}
- },
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Delete a webhook for an organization.
\nThe authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook.
",
+ "codeExamples": [
{
- "name": "ecosystem",
- "in": "query",
- "description": "If specified, only advisories for these ecosystems will be returned.
",
- "schema": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "name": "severity",
- "in": "query",
- "description": "If specified, only advisories with these severities will be returned.
",
- "schema": {
- "type": "string",
- "enum": [
- "unknown",
- "low",
- "medium",
- "high",
- "critical"
- ]
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
}
- },
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
+ "title": "Get a webhook configuration for a repository",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
{
- "name": "cwes",
- "in": "query",
- "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
\nExample: cwes=79,284,22 or cwes[]=79&cwes[]=284&cwes[]=22
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
+ "type": "string"
}
},
{
- "name": "is_withdrawn",
- "in": "query",
- "description": "Whether to only return advisories that have been withdrawn.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "affects",
- "in": "query",
- "description": "If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified.\nIf the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
\nExample: affects=package1,package2@1.0.0,package3@2.0.0 or affects[]=package1&affects[]=package2@1.0.0
",
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
"schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "maxItems": 1000,
- "items": {
- "type": "string"
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active state and events, use \"Get a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the read:repo_hook or repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "secret": "********",
+ "url": "https://example.com/webhook"
+ },
+ "schema": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
}
}
- ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
}
- },
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
+ "title": "Update a webhook configuration for a repository",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
{
- "name": "published",
- "in": "query",
- "description": "If specified, only return advisories that were published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "updated",
- "in": "query",
- "description": "If specified, only return advisories that were updated on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "modified",
- "description": "If specified, only show advisories that were updated or published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
- "in": "query",
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string"
+ "type": "integer"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "url",
+ "in": "body",
+ "description": "The URL to which the payloads will be delivered.
"
},
{
- "name": "epss_percentage",
- "in": "query",
- "description": "If specified, only return advisories that have an EPSS percentage score that matches the provided value.\nThe EPSS percentage represents the likelihood of a CVE being exploited.
",
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "content_type",
+ "in": "body",
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
},
{
- "name": "epss_percentile",
- "in": "query",
- "description": "If specified, only return advisories that have an EPSS percentile score that matches the provided value.\nThe EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
",
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "secret",
+ "in": "body",
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
},
{
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
+ "type": "string or number",
+ "name": "insecure_ssl",
+ "in": "body",
+ "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.
"
+ }
+ ],
+ "descriptionHTML": "Updates the webhook configuration for a repository. To update more information about the webhook, including the active state and events, use \"Update a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the write:repo_hook or repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of updating content type and URL",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content_type": "json",
+ "url": "https://example.com/webhook"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "secret": "********",
+ "url": "https://example.com/webhook"
+ },
+ "schema": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
+ "title": "List deliveries for a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "type": "integer"
}
},
{
@@ -688664,36 +734580,32 @@
"in": "query",
"schema": {
"type": "integer",
- "minimum": 1,
- "maximum": 100,
"default": 30
}
},
{
- "name": "sort",
- "description": "The property to sort the results by.
",
+ "name": "cursor",
+ "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
",
"in": "query",
"required": false,
"schema": {
- "type": "string",
- "enum": [
- "updated",
- "published",
- "epss_percentage",
- "epss_percentile"
- ],
- "default": "published"
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
\nBy default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type parameter in your request, with the value malware. For more information about the different types of security advisories, see \"About the GitHub Advisory database .\"
",
+ "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in a repository.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
},
"response": {
"statusCode": "200",
@@ -688701,707 +734613,156 @@
"description": "Response
",
"example": [
{
- "id": 1,
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
- "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "summary": "Heartbleed security advisory",
- "description": "This bug allows an attacker to read portions of the affected server’s memory, potentially disclosing sensitive information.",
- "type": "reviewed",
- "severity": "high",
- "source_code_location": "https://github.com/project/a-package",
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "references": [
- "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
- ],
- "published_at": "2023-03-23T02:30:56Z",
- "updated_at": "2023-03-24T02:30:56Z",
- "github_reviewed_at": "2023-03-23T02:30:56Z",
- "nvd_published_at": "2023-03-25T02:30:56Z",
- "withdrawn_at": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "npm",
- "name": "a-package"
- },
- "first_patched_version": "1.0.3",
- "vulnerable_version_range": "<=1.0.2",
- "vulnerable_functions": [
- "a_function"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-400",
- "name": "Uncontrolled Resource Consumption"
- }
- ],
- "epss": [
- {
- "percentage": 0.00045,
- "percentile": "0.16001e0"
- }
- ],
- "credits": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst"
- }
- ]
+ "id": 12345678,
+ "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "delivered_at": "2019-06-03T00:57:16Z",
+ "redelivery": false,
+ "duration": 0.27,
+ "status": "OK",
+ "status_code": 200,
+ "event": "issues",
+ "action": "opened",
+ "installation_id": 123,
+ "repository_id": 456,
+ "throttled_at": "2019-06-03T00:57:16Z"
+ },
+ {
+ "id": 123456789,
+ "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "delivered_at": "2019-06-04T00:57:16Z",
+ "redelivery": true,
+ "duration": 0.28,
+ "status": "OK",
+ "status_code": 200,
+ "event": "issues",
+ "action": "opened",
+ "installation_id": 123,
+ "repository_id": 456,
+ "throttled_at": null
}
],
"schema": {
"type": "array",
"items": {
- "description": "A GitHub Security Advisory.",
+ "title": "Simple webhook delivery",
+ "description": "Delivery made by a webhook, without request and response information.",
"type": "object",
"properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
- "readOnly": true
+ "id": {
+ "description": "Unique identifier of the webhook delivery.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- "url": {
+ "guid": {
+ "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
"type": "string",
- "description": "The API URL for the advisory.",
- "readOnly": true
+ "examples": [
+ "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ ]
},
- "html_url": {
+ "delivered_at": {
+ "description": "Time when the webhook delivery occurred.",
"type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "repository_advisory_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL for the repository advisory.",
- "readOnly": true
+ "format": "date-time",
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
},
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "redelivery": {
+ "description": "Whether the webhook delivery is a redelivery.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "duration": {
+ "description": "Time spent delivering.",
+ "type": "number",
+ "examples": [
+ 0.03
+ ]
},
- "type": {
+ "status": {
+ "description": "Describes the response returned after attempting the delivery.",
"type": "string",
- "description": "The type of advisory.",
- "readOnly": true,
- "enum": [
- "reviewed",
- "unreviewed",
- "malware"
+ "examples": [
+ "failed to connect"
]
},
- "severity": {
+ "status_code": {
+ "description": "Status code received when delivery was made.",
+ "type": "integer",
+ "examples": [
+ 502
+ ]
+ },
+ "event": {
+ "description": "The event that triggered the delivery.",
"type": "string",
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- "unknown"
+ "examples": [
+ "issues"
]
},
- "source_code_location": {
+ "action": {
+ "description": "The type of activity for the event that triggered the delivery.",
"type": [
"string",
"null"
],
- "format": "uri",
- "description": "The URL of the advisory's source code."
- },
- "identifiers": {
- "type": [
- "array",
- "null"
- ],
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- }
- },
- "references": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "string",
- "description": "URLs with more information regarding the advisory."
- }
- },
- "published_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
+ "examples": [
+ "opened"
+ ]
},
- "github_reviewed_at": {
+ "installation_id": {
+ "description": "The id of the GitHub App installation associated with this event.",
"type": [
- "string",
+ "integer",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
- "readOnly": true
+ "format": "int64",
+ "examples": [
+ 123
+ ]
},
- "nvd_published_at": {
+ "repository_id": {
+ "description": "The id of the repository associated with this event.",
"type": [
- "string",
+ "integer",
"null"
],
- "format": "date-time",
- "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
- "readOnly": true
+ "format": "int64",
+ "examples": [
+ 123
+ ]
},
- "withdrawn_at": {
+ "throttled_at": {
+ "description": "Time when the webhook delivery was throttled.",
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "description": "The products and respective version ranges affected by the advisory.",
- "items": {
- "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "first_patched_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version that resolves the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected by the vulnerability.",
- "readOnly": true,
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "first_patched_version",
- "vulnerable_functions"
- ]
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
+ "examples": [
+ "2021-05-12T20:33:44Z"
]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "epss": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
- "properties": {
- "percentage": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- },
- "percentile": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "description": "The users who contributed to the advisory.",
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- },
- "required": [
- "user",
- "type"
- ]
- }
}
},
"required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "repository_advisory_url",
- "summary",
- "description",
- "type",
- "severity",
- "source_code_location",
- "identifiers",
- "references",
- "published_at",
- "updated_at",
- "github_reviewed_at",
- "nvd_published_at",
- "withdrawn_at",
- "vulnerabilities",
- "cvss",
- "cwes",
- "credits"
- ],
- "additionalProperties": false
+ "id",
+ "guid",
+ "delivered_at",
+ "redelivery",
+ "duration",
+ "status",
+ "status_code",
+ "event",
+ "action",
+ "installation_id",
+ "repository_id"
+ ]
}
}
}
@@ -689413,12 +734774,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
},
{
- "httpStatusCode": "429",
- "description": "Too many requests
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -689426,31 +734787,60 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/advisories/{ghsa_id}",
- "title": "Get a global security advisory",
- "category": "security-advisories",
- "subcategory": "global-advisories",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
+ "title": "Get a delivery for a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "description": ""
}
],
"bodyParameters": [],
- "descriptionHTML": "Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
",
+ "descriptionHTML": "Returns a delivery for a webhook configured in a repository.
",
"codeExamples": [
{
"key": "default",
@@ -689458,7 +734848,10 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "ghsa_id": "GHSA_ID"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID",
+ "delivery_id": "DELIVERY_ID"
}
},
"response": {
@@ -689466,697 +734859,1651 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
- "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "type": "reviewed",
- "severity": "high",
- "source_code_location": "https://github.com/project/a-package",
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
+ "id": 12345678,
+ "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "delivered_at": "2019-06-03T00:57:16Z",
+ "redelivery": false,
+ "duration": 0.27,
+ "status": "OK",
+ "status_code": 200,
+ "event": "issues",
+ "action": "opened",
+ "installation_id": 123,
+ "repository_id": 456,
+ "url": "https://www.example.com",
+ "throttled_at": "2019-06-03T00:57:16Z",
+ "request": {
+ "headers": {
+ "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "Accept": "*/*",
+ "X-GitHub-Hook-ID": "42",
+ "User-Agent": "GitHub-Hookshot/b8c71d8",
+ "X-GitHub-Event": "issues",
+ "X-GitHub-Hook-Installation-Target-ID": "123",
+ "X-GitHub-Hook-Installation-Target-Type": "repository",
+ "content-type": "application/json",
+ "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d"
},
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "references": [
- "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
- ],
- "published_at": "2023-03-23T02:30:56Z",
- "updated_at": "2023-03-24T02:30:56Z",
- "github_reviewed_at": "2023-03-23T02:30:56Z",
- "nvd_published_at": "2023-03-25T02:30:56Z",
- "withdrawn_at": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "npm",
- "name": "a-package"
+ "payload": {
+ "action": "opened",
+ "issue": {
+ "body": "foo"
},
- "first_patched_version": "1.0.3",
- "vulnerable_version_range": "<=1.0.2",
- "vulnerable_functions": [
- "a_function"
- ]
+ "repository": {
+ "id": 123
+ }
}
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
},
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
+ "response": {
+ "headers": {
+ "Content-Type": "text/html;charset=utf-8"
},
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-400",
- "name": "Uncontrolled Resource Consumption"
- }
- ],
- "credits": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst"
- }
- ]
+ "payload": "ok"
+ }
},
"schema": {
- "description": "A GitHub Security Advisory.",
+ "title": "Webhook delivery",
+ "description": "Delivery made by a webhook.",
"type": "object",
"properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
- "readOnly": true
+ "id": {
+ "description": "Unique identifier of the delivery.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
},
- "url": {
+ "guid": {
+ "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
"type": "string",
- "description": "The API URL for the advisory.",
- "readOnly": true
+ "examples": [
+ "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ ]
},
- "html_url": {
+ "delivered_at": {
+ "description": "Time when the delivery was delivered.",
"type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "repository_advisory_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL for the repository advisory.",
- "readOnly": true
+ "format": "date-time",
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
},
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "redelivery": {
+ "description": "Whether the delivery is a redelivery.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "duration": {
+ "description": "Time spent delivering.",
+ "type": "number",
+ "examples": [
+ 0.03
+ ]
},
- "type": {
+ "status": {
+ "description": "Description of the status of the attempted delivery",
"type": "string",
- "description": "The type of advisory.",
- "readOnly": true,
- "enum": [
- "reviewed",
- "unreviewed",
- "malware"
+ "examples": [
+ "failed to connect"
]
},
- "severity": {
+ "status_code": {
+ "description": "Status code received when delivery was made.",
+ "type": "integer",
+ "examples": [
+ 502
+ ]
+ },
+ "event": {
+ "description": "The event that triggered the delivery.",
"type": "string",
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- "unknown"
+ "examples": [
+ "issues"
]
},
- "source_code_location": {
+ "action": {
+ "description": "The type of activity for the event that triggered the delivery.",
"type": [
"string",
"null"
],
- "format": "uri",
- "description": "The URL of the advisory's source code."
- },
- "identifiers": {
- "type": [
- "array",
- "null"
- ],
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- }
- },
- "references": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "string",
- "description": "URLs with more information regarding the advisory."
- }
- },
- "published_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
+ "examples": [
+ "opened"
+ ]
},
- "github_reviewed_at": {
+ "installation_id": {
+ "description": "The id of the GitHub App installation associated with this event.",
"type": [
- "string",
+ "integer",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
- "readOnly": true
+ "examples": [
+ 123
+ ]
},
- "nvd_published_at": {
+ "repository_id": {
+ "description": "The id of the repository associated with this event.",
"type": [
- "string",
+ "integer",
"null"
],
- "format": "date-time",
- "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
- "readOnly": true
+ "examples": [
+ 123
+ ]
},
- "withdrawn_at": {
+ "throttled_at": {
+ "description": "Time when the webhook delivery was throttled.",
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
},
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "description": "The products and respective version ranges affected by the advisory.",
- "items": {
- "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "first_patched_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version that resolves the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected by the vulnerability.",
- "readOnly": true,
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "first_patched_version",
- "vulnerable_functions"
- ]
- }
+ "url": {
+ "description": "The URL target of the delivery.",
+ "type": "string",
+ "examples": [
+ "https://www.example.com"
+ ]
},
- "cvss": {
- "type": [
- "object",
- "null"
- ],
+ "request": {
+ "type": "object",
"properties": {
- "vector_string": {
+ "headers": {
+ "description": "The request headers sent with the webhook delivery.",
"type": [
- "string",
+ "object",
"null"
],
- "description": "The CVSS vector."
+ "additionalProperties": true
},
- "score": {
+ "payload": {
+ "description": "The webhook payload.",
"type": [
- "number",
+ "object",
"null"
],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "additionalProperties": true
}
},
"required": [
- "vector_string",
- "score"
+ "headers",
+ "payload"
]
},
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
+ "response": {
+ "type": "object",
"properties": {
- "cvss_v3": {
+ "headers": {
+ "description": "The response headers received when the delivery was made.",
"type": [
"object",
"null"
],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
+ "additionalProperties": true
},
- "cvss_v4": {
+ "payload": {
+ "description": "The response payload received.",
"type": [
- "object",
+ "string",
"null"
],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
+ "additionalProperties": true
}
- }
- },
- "epss": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
- "properties": {
- "percentage": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
+ },
+ "required": [
+ "headers",
+ "payload"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "guid",
+ "delivered_at",
+ "redelivery",
+ "duration",
+ "status",
+ "status_code",
+ "event",
+ "action",
+ "installation_id",
+ "repository_id",
+ "request",
+ "response"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
+ "title": "Redeliver a delivery for a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "description": ""
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a webhook delivery for a webhook configured in a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID",
+ "delivery_id": "DELIVERY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Accepted
",
+ "example": null,
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings",
+ "title": "Ping a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "This will trigger a ping event to be sent to the hook.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/tests",
+ "title": "Test the push repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "This 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 Note
\n
\nPreviously /repos/:owner/:repo/hooks/:hook_id/test
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "search": {
+ "search": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/code",
+ "title": "Search code",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching code \" for a detailed list of qualifiers.
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "deprecated": true,
+ "description": "This field is closing down. Sorts the results of your query. Can only be indexed, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: best match
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "indexed"
+ ]
+ }
+ },
+ {
+ "name": "order",
+ "description": "This field is closing down. 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.
",
+ "in": "query",
+ "deprecated": true,
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to find the definition of the addClass function inside jQuery repository, your query would look something like this:
\nq=addClass+in:file+language:js+repo:jquery/jquery
\nThis query searches for the keyword addClass within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery repository.
\nConsiderations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\n\nOnly the default branch is considered. In most cases, this will be the master branch. \nOnly files smaller than 384 KB are searchable. \nYou must always include at least one search term when searching source code. For example, searching for language:go is not valid, while amazing language:go is. \n \nThis endpoint requires you to authenticate and limits you to 10 requests per minute.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 7,
+ "incomplete_results": false,
+ "items": [
+ {
+ "name": "classes.js",
+ "path": "src/attributes/classes.js",
+ "sha": "d7212f9dee2dcc18f084d7df8f417b80846ded5a",
+ "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=825ac3773694e0cd23ee74895fd5aeb535b27da4",
+ "git_url": "https://api.github.com/repositories/167174/git/blobs/d7212f9dee2dcc18f084d7df8f417b80846ded5a",
+ "html_url": "https://github.com/jquery/jquery/blob/825ac3773694e0cd23ee74895fd5aeb535b27da4/src/attributes/classes.js",
+ "repository": {
+ "id": 167174,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+ "name": "jquery",
+ "full_name": "jquery/jquery",
+ "owner": {
+ "login": "jquery",
+ "id": 70142,
+ "node_id": "MDQ6VXNlcjcwMTQy",
+ "avatar_url": "https://0.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https%3A%2F%2Fidenticons.github.com%2Ff426f04f2f9813718fb806b30e0093de.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jquery",
+ "html_url": "https://github.com/jquery",
+ "followers_url": "https://api.github.com/users/jquery/followers",
+ "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+ "organizations_url": "https://api.github.com/users/jquery/orgs",
+ "repos_url": "https://api.github.com/users/jquery/repos",
+ "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jquery/received_events",
+ "type": "Organization",
+ "site_admin": false
},
- "percentile": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
+ "private": false,
+ "html_url": "https://github.com/jquery/jquery",
+ "description": "jQuery JavaScript Library",
+ "fork": false,
+ "url": "https://api.github.com/repos/jquery/jquery",
+ "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+ "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+ "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+ "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/jquery/jquery/events",
+ "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+ "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+ "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+ "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+ "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+ "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+ "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments/{number}",
+ "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+ "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+ "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+ "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
+ "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ },
+ "score": 1
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
"items": {
+ "title": "Code Search Result Item",
+ "description": "Code Search Result Item",
"type": "object",
"properties": {
- "cwe_id": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
"type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
+ "format": "uri"
},
- "name": {
+ "git_url": {
"type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "description": "The users who contributed to the advisory.",
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "repository": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
"type": "object",
"properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
"name": {
- "type": [
- "string",
- "null"
+ "type": "string",
+ "examples": [
+ "Hello-World"
]
},
- "email": {
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
]
},
- "login": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "archive_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "node_id": {
+ "assignees_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "avatar_url": {
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "followers_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "following_url": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "gists_url": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "starred_url": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "subscriptions_url": {
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "type": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "site_admin": {
- "type": "boolean"
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
},
- "starred_at": {
+ "teams_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "user_view_type": {
+ "trees_url": {
"type": "string",
"examples": [
- "public"
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url"
]
},
- "type": {
+ "score": {
+ "type": "number"
+ },
+ "file_size": {
+ "type": "integer"
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "last_modified_at": {
"type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
+ "format": "date-time"
+ },
+ "line_numbers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "73..77",
+ "77..78"
]
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
+ },
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
},
"required": [
- "user",
- "type"
+ "score",
+ "name",
+ "path",
+ "sha",
+ "git_url",
+ "html_url",
+ "url",
+ "repository"
]
}
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "repository_advisory_url",
- "summary",
- "description",
- "type",
- "severity",
- "source_code_location",
- "identifiers",
- "references",
- "published_at",
- "updated_at",
- "github_reviewed_at",
- "nvd_published_at",
- "withdrawn_at",
- "vulnerabilities",
- "cvss",
- "cwes",
- "credits"
- ],
- "additionalProperties": false
+ }
}
}
}
@@ -690167,8 +736514,20 @@
"description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -690180,243 +736539,149 @@
"allowPermissionlessAccess": true,
"allowsPublicRead": true
}
- }
- ],
- "repository-advisories": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/security-advisories",
- "title": "List repository security advisories for an organization",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "requestPath": "/search/commits",
+ "title": "Search commits",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
+ "name": "q",
+ "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching commits \" for a detailed list of qualifiers.
",
+ "in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
+ "name": "sort",
+ "description": "Sorts the results of your query by author-date or committer-date. Default: best match
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "author-date",
+ "committer-date"
+ ]
}
},
{
- "name": "sort",
- "description": "The property to sort the results by.
",
+ "name": "order",
+ "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.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "created",
- "updated",
- "published"
+ "desc",
+ "asc"
],
- "default": "created"
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
+ "default": "desc"
}
},
{
"name": "per_page",
- "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "required": false,
"schema": {
"type": "integer",
- "minimum": 1,
- "maximum": 100,
"default": 30
}
},
{
- "name": "state",
- "description": "Filter by the state of the repository advisories. Only advisories of this state will be returned.
",
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "required": false,
"schema": {
- "type": "string",
- "enum": [
- "triage",
- "draft",
- "published",
- "closed"
- ]
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists repository security advisories for an organization.
\nThe authenticated user must be an owner or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "descriptionHTML": "Find commits via various criteria on the default branch (usually main). This method returns up to 100 results per page .
\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\nmetadata .
\nFor example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
+ "example": {
+ "total_count": 1,
+ "incomplete_results": false,
+ "items": [
+ {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f/comments",
+ "commit": {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "author": {
+ "date": "2014-02-04T14:38:36-08:00",
+ "name": "The Octocat",
+ "email": "octocat@nowhere.com"
},
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
+ "committer": {
+ "date": "2014-02-12T15:18:55-08:00",
+ "name": "The Octocat",
+ "email": "octocat@nowhere.com"
},
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "message": "Create styles.css and updated README",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa68",
+ "sha": "a639e96f9038797fba6e0469f94a4b0cc459fa68"
+ },
+ "comment_count": 8
},
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
+ "author": {
"login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
+ "id": 583231,
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "committer": {},
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
+ "html_url": "https://github.com/octocat/Spoon-Knife/commit/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
+ "sha": "a30c19e3f13765a3b48829788bc1cb8b4e95cee4"
+ }
+ ],
+ "repository": {
+ "id": 1300192,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMzAwMTky",
+ "name": "Spoon-Knife",
+ "full_name": "octocat/Spoon-Knife",
+ "owner": {
"login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "id": 583231,
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
@@ -690432,1067 +736697,1655 @@
"type": "User",
"site_admin": false
},
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": null
- },
- {
- "ghsa_id": "GHSA-1234-5678-9012",
- "cve_id": "CVE-2051-0000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "low",
- "author": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "monalisa",
- "id": 3,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-1234-5678-9012"
- },
- {
- "type": "CVE",
- "value": "CVE-2051-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-03T00:00:00Z",
- "updated_at": "2020-01-04T00:00:00Z",
- "published_at": "2020-01-04T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": {
- "accepted": true
- },
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 7.1
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-456",
- "name": "A CWE 2.0"
- }
- ],
- "cwe_ids": [
- "CWE-456"
- ],
- "credits": [
- {
- "login": "monauser",
- "type": "reporter"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "reporter",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-1234-5678-9012",
- "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
+ "private": false,
+ "html_url": "https://github.com/octocat/Spoon-Knife",
+ "description": "This repo is for demonstration purposes only.",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife",
+ "forks_url": "https://api.github.com/repos/octocat/Spoon-Knife/forks",
+ "keys_url": "https://api.github.com/repos/octocat/Spoon-Knife/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Spoon-Knife/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/octocat/Spoon-Knife/teams",
+ "hooks_url": "https://api.github.com/repos/octocat/Spoon-Knife/hooks",
+ "issue_events_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/octocat/Spoon-Knife/events",
+ "assignees_url": "https://api.github.com/repos/octocat/Spoon-Knife/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/octocat/Spoon-Knife/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/tags",
+ "blobs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/octocat/Spoon-Knife/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/octocat/Spoon-Knife/languages",
+ "stargazers_url": "https://api.github.com/repos/octocat/Spoon-Knife/stargazers",
+ "contributors_url": "https://api.github.com/repos/octocat/Spoon-Knife/contributors",
+ "subscribers_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscription",
+ "commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/octocat/Spoon-Knife/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/octocat/Spoon-Knife/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/octocat/Spoon-Knife/merges",
+ "archive_url": "https://api.github.com/repos/octocat/Spoon-Knife/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/octocat/Spoon-Knife/downloads",
+ "issues_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/octocat/Spoon-Knife/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/octocat/Spoon-Knife/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Spoon-Knife/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/octocat/Spoon-Knife/labels{/name}",
+ "releases_url": "https://api.github.com/repos/octocat/Spoon-Knife/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/octocat/Spoon-Knife/deployments"
},
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
+ "score": 1,
+ "node_id": "MDQ6VXNlcjU4MzIzMQ=="
}
- }
- ],
+ ]
+ },
"schema": {
- "type": "array",
- "items": {
- "description": "A repository security advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
- },
- "severity": {
- "type": [
- "string",
- "null"
- ],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Commit Search Result Item",
+ "description": "Commit Search Result Item",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "commit": {
+ "type": "object",
+ "properties": {
+ "author": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "date": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "name",
+ "email",
+ "date"
+ ]
+ },
+ "committer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Git User",
+ "description": "Metaproperties for Git author/committer information.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "\"Chris Wanstrath\""
+ ]
+ },
+ "email": {
+ "type": "string",
+ "examples": [
+ "\"chris@ozmm.org\""
+ ]
+ },
+ "date": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "\"2007-10-29T02:42:39.000-07:00\""
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "comment_count": {
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "tree": {
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "sha",
+ "url"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "verification": {
+ "title": "Verification",
+ "type": "object",
+ "properties": {
+ "verified": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "signature": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "verified",
+ "reason",
+ "payload",
+ "signature",
+ "verified_at"
+ ]
+ }
+ },
+ "required": [
+ "author",
+ "committer",
+ "comment_count",
+ "message",
+ "tree",
+ "url"
+ ]
+ },
+ "author": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "committer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Git User",
+ "description": "Metaproperties for Git author/committer information.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "\"Chris Wanstrath\""
+ ]
+ },
+ "email": {
+ "type": "string",
+ "examples": [
+ "\"chris@ozmm.org\""
+ ]
+ },
+ "date": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "\"2007-10-29T02:42:39.000-07:00\""
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "parents": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string"
+ },
+ "html_url": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "repository": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
]
},
- "login": {
+ "node_id": {
"type": "string",
"examples": [
- "octocat"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "name": {
+ "type": "string",
"examples": [
- 1
+ "Hello-World"
]
},
- "node_id": {
+ "full_name": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "octocat/Hello-World"
]
},
- "avatar_url": {
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "description": {
"type": [
"string",
"null"
],
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean"
+ },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "html_url": {
+ "archive_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "followers_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "following_url": {
+ "blobs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "gists_url": {
+ "branches_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "starred_url": {
+ "collaborators_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "subscriptions_url": {
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "organizations_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "repos_url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
"events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "received_events_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "type": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "site_admin": {
- "type": "boolean"
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
},
- "starred_at": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "user_view_type": {
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
"type": "string",
"examples": [
- "public"
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "login": {
+ "keys_url": {
"type": "string",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "labels_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "node_id": {
+ "languages_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "avatar_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "milestones_url": {
+ "type": "string",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "url": {
+ "notifications_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "html_url": {
+ "pulls_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "followers_url": {
+ "releases_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "following_url": {
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "gists_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "starred_url": {
+ "subscribers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "subscriptions_url": {
+ "subscription_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "organizations_url": {
+ "tags_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "repos_url": {
+ "teams_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "events_url": {
+ "trees_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "received_events_url": {
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "type": {
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
"type": "string",
"examples": [
- "User"
+ "admin"
]
},
- "site_admin": {
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
"type": "boolean"
},
- "starred_at": {
- "type": "string",
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 0
]
},
- "user_view_type": {
- "type": "string",
+ "open_issues": {
+ "type": "integer",
"examples": [
- "public"
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url"
]
- }
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
},
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
+ "score": {
+ "type": "number"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
"properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
+ "object_url": {
+ "type": "string"
},
- "name": {
+ "object_type": {
"type": [
"string",
"null"
- ],
- "description": "The unique package name within its ecosystem."
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
}
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
}
}
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
}
},
"required": [
- "vector_string",
+ "sha",
+ "node_id",
+ "url",
+ "html_url",
+ "author",
+ "committer",
+ "parents",
+ "comments_url",
+ "commit",
+ "repository",
"score"
]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/issues",
+ "title": "Search issues and pull requests",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching issues and pull requests \" for a detailed list of qualifiers.
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "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
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "comments",
+ "reactions",
+ "reactions-+1",
+ "reactions--1",
+ "reactions-smile",
+ "reactions-thinking_face",
+ "reactions-heart",
+ "reactions-tada",
+ "interactions",
+ "created",
+ "updated"
+ ]
+ }
+ },
+ {
+ "name": "order",
+ "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.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "advanced_search",
+ "description": "Set to true to use advanced search.\nExample: http://api.github.com/search/issues?q={query}&advanced_search=true
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Find issues by state and keyword. This method returns up to 100 results per page .
\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\nsearch results, see Text match metadata .
\nFor example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
\nThis query searches for the keyword windows, within any open issue that is labeled as bug. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
\n Note
\n
\nFor requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue or is:pull-request qualifier will receive an HTTP 422 Unprocessable Entity response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is qualifier, see \"Searching only issues or pull requests .\"
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 280,
+ "incomplete_results": false,
+ "items": [
+ {
+ "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132",
+ "repository_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit",
+ "labels_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/labels{/name}",
+ "comments_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/comments",
+ "events_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/events",
+ "html_url": "https://github.com/batterseapower/pinyin-toolkit/issues/132",
+ "id": 35802,
+ "node_id": "MDU6SXNzdWUzNTgwMg==",
+ "number": 132,
+ "title": "Line Number Indexes Beyond 20 Not Displayed",
+ "user": {
+ "login": "Nick3C",
+ "id": 90254,
+ "node_id": "MDQ6VXNlcjkwMjU0",
+ "avatar_url": "https://secure.gravatar.com/avatar/934442aadfe3b2f4630510de416c5718?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/Nick3C",
+ "html_url": "https://github.com/Nick3C",
+ "followers_url": "https://api.github.com/users/Nick3C/followers",
+ "following_url": "https://api.github.com/users/Nick3C/following{/other_user}",
+ "gists_url": "https://api.github.com/users/Nick3C/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/Nick3C/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/Nick3C/subscriptions",
+ "organizations_url": "https://api.github.com/users/Nick3C/orgs",
+ "repos_url": "https://api.github.com/users/Nick3C/repos",
+ "events_url": "https://api.github.com/users/Nick3C/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/Nick3C/received_events",
+ "type": "User",
+ "site_admin": true
},
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
+ "labels": [
+ {
+ "id": 4,
+ "node_id": "MDU6TGFiZWw0",
+ "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/labels/bug",
+ "name": "bug",
+ "color": "ff0000"
+ }
+ ],
+ "state": "open",
+ "assignee": null,
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
+ },
+ "comments": 15,
+ "created_at": "2009-07-12T20:10:41Z",
+ "updated_at": "2009-07-19T09:23:43Z",
+ "closed_at": null,
+ "pull_request": {
+ "url": "https://api/github.com/repos/octocat/Hello-World/pull/1347",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ },
+ "body": "...",
+ "score": 1,
+ "locked": true,
+ "author_association": "COLLABORATOR",
+ "state_reason": "completed"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Issue Search Result Item",
+ "description": "Issue Search Result Item",
+ "type": "object",
"properties": {
- "cvss_v3": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "number": {
+ "type": "integer"
+ },
+ "title": {
+ "type": "string"
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
"type": [
- "object",
+ "string",
"null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
]
},
- "cvss_v4": {
+ "assignees": {
"type": [
- "object",
+ "array",
"null"
],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -691659,518 +738512,1127 @@
"type",
"url"
]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
}
},
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
+ "labels": {
+ "type": "array",
+ "items": {
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
+ "id": {
+ "type": "integer",
+ "format": "int64"
},
- "triage": {
- "type": "boolean"
+ "node_id": {
+ "type": "string"
},
- "push": {
- "type": "boolean"
+ "url": {
+ "type": "string"
},
- "maintain": {
- "type": "boolean"
+ "name": {
+ "type": "string"
},
- "admin": {
+ "color": {
+ "type": "string"
+ },
+ "default": {
"type": "boolean"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
}
+ }
+ }
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
},
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
"type": "string",
"examples": [
- "notifications_enabled"
+ "Sample text"
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
+ {
+ "type": "number",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ 42.5
]
},
- "repositories_url": {
- "type": "string",
- "format": "uri",
+ {
+ "type": "integer",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ 1
]
- },
- "slug": {
- "type": "string",
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
"examples": [
- "justice-league"
+ 1
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "name": {
+ "description": "The name of the option",
"type": "string",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "High"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "color": {
+ "description": "The color of the option",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- 42
+ "red"
]
}
},
"required": [
"id",
- "node_id",
- "url",
- "members_url",
"name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "color"
]
}
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
]
}
},
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ "state": {
+ "type": "string"
+ },
+ "state_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
+ },
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
+ },
+ "body": {
+ "type": "string"
+ },
+ "score": {
+ "type": "number"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
"id": {
+ "description": "Unique identifier of the repository",
"type": "integer",
"format": "int64",
- "description": "A unique identifier of the repository.",
"examples": [
- 1296269
+ 42
]
},
"node_id": {
"type": "string",
- "description": "The GraphQL identifier of the repository.",
"examples": [
"MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
"name": {
- "type": "string",
"description": "The name of the repository.",
+ "type": "string",
"examples": [
- "Hello-World"
+ "Team Environment"
]
},
"full_name": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
"examples": [
"octocat/Hello-World"
]
},
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
"owner": {
"title": "Simple User",
"description": "A GitHub user.",
@@ -692340,13 +739802,13 @@
]
},
"private": {
- "type": "boolean",
- "description": "Whether the repository is private."
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
},
"html_url": {
"type": "string",
"format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
"examples": [
"https://github.com/octocat/Hello-World"
]
@@ -692356,2403 +739818,1727 @@
"string",
"null"
],
- "description": "The repository description.",
"examples": [
"This your first repo!"
]
},
"fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
+ "type": "boolean"
},
"url": {
"type": "string",
"format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
"https://api.github.com/repos/octocat/Hello-World"
]
},
"archive_url": {
"type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
"assignees_url": {
"type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
"blobs_url": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
"branches_url": {
"type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
"collaborators_url": {
"type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
"type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
]
},
"commits_url": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
]
},
"compare_url": {
"type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
"contents_url": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
"contributors_url": {
"type": "string",
"format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
"deployments_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
"downloads_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
"events_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
"forks_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
"git_commits_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
"git_refs_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
"git_tags_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
]
},
"issue_comment_url": {
"type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
"issue_events_url": {
"type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
"issues_url": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
"keys_url": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
"labels_url": {
"type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
"languages_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
"merges_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
"milestones_url": {
"type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
"notifications_url": {
"type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
"pulls_url": {
"type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
"releases_url": {
"type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
]
},
"stargazers_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
"statuses_url": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
"subscribers_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
"subscription_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
"tags_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about tags on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
"teams_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the teams on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
"trees_url": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "hooks_url": {
+ "clone_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/security-advisories",
- "title": "List repository security advisories",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "published"
- ],
- "default": "created"
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "maximum": 100,
- "default": 30
- }
- },
- {
- "name": "state",
- "description": "Filter by state of the repository advisories. Only advisories of this state will be returned.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "triage",
- "draft",
- "published",
- "closed"
- ]
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists security advisories in a repository.
\nThe authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": null
- },
- {
- "ghsa_id": "GHSA-1234-5678-9012",
- "cve_id": "CVE-2051-0000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "low",
- "author": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "monalisa",
- "id": 3,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-1234-5678-9012"
- },
- {
- "type": "CVE",
- "value": "CVE-2051-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-03T00:00:00Z",
- "updated_at": "2020-01-04T00:00:00Z",
- "published_at": "2020-01-04T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": {
- "accepted": true
- },
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 7.1
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-456",
- "name": "A CWE 2.0"
- }
- ],
- "cwe_ids": [
- "CWE-456"
- ],
- "credits": [
- {
- "login": "monauser",
- "type": "reporter"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "reporter",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-1234-5678-9012",
- "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "description": "A repository security advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
- },
- "severity": {
- "type": [
- "string",
- "null"
- ],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ "https://github.com/octocat/Hello-World.git"
]
},
- "email": {
+ "mirror_url": {
"type": [
"string",
"null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
+ ],
+ "format": "uri",
"examples": [
- 1
+ "git:git.example.com/octocat/Hello-World"
]
},
- "node_id": {
+ "hooks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "avatar_url": {
+ "svn_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "homepage": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://github.com"
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
+ "language": {
+ "type": [
+ "string",
+ "null"
]
},
- "followers_url": {
- "type": "string",
- "format": "uri",
+ "forks_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ 9
]
},
- "following_url": {
- "type": "string",
+ "stargazers_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ 80
]
},
- "gists_url": {
- "type": "string",
+ "watchers_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ 80
]
},
- "starred_url": {
- "type": "string",
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ 108
]
},
- "subscriptions_url": {
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "master"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
+ "open_issues_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ 0
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ true
]
},
- "events_url": {
- "type": "string",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ true
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ true
]
},
- "type": {
- "type": "string",
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "User"
+ true
]
},
- "site_admin": {
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
- "type": "string",
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
- "type": "string",
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ true
]
},
- "email": {
- "type": [
- "string",
- "null"
- ]
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
},
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
},
- "node_id": {
- "type": "string",
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "MDQ6VXNlcjE="
+ "2011-01-26T19:06:43Z"
]
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "2011-01-26T19:01:12Z"
]
},
- "gravatar_id": {
+ "updated_at": {
"type": [
"string",
"null"
],
+ "format": "date-time",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "2011-01-26T19:14:43Z"
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat"
+ true
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "temp_clone_token": {
+ "type": "string"
},
- "followers_url": {
- "type": "string",
- "format": "uri",
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ true
]
},
- "following_url": {
- "type": "string",
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ false
]
},
- "gists_url": {
- "type": "string",
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ false
]
},
- "starred_url": {
- "type": "string",
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ false
]
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
},
- "organizations_url": {
+ "squash_merge_commit_title": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
- "repos_url": {
+ "squash_merge_commit_message": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
- "events_url": {
+ "merge_commit_title": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
- "received_events_url": {
+ "merge_commit_message": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
- "type": {
- "type": "string",
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "User"
+ true
]
},
- "site_admin": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
"type": "boolean"
},
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
"starred_at": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "\"2020-07-09T00:17:42Z\""
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
- }
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
},
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
- }
+ "body_html": {
+ "type": "string"
},
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
+ "body_text": {
+ "type": "string"
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
"type": [
"object",
"null"
],
"properties": {
- "vector_string": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
"type": [
"string",
"null"
],
- "description": "The CVSS 3 vector string."
+ "description": "The description of the issue type."
},
- "score": {
+ "color": {
"type": [
- "number",
+ "string",
"null"
],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
}
},
"required": [
- "vector_string",
- "score"
+ "id",
+ "node_id",
+ "name",
+ "description"
]
},
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "score": {
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
"type": [
- "number",
+ "object",
"null"
],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
}
},
"required": [
- "vector_string",
- "score"
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
]
}
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
},
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "author_association",
+ "created_at",
+ "updated_at",
+ "score"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/labels",
+ "title": "Search labels",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "repository_id",
+ "description": "The id of the repository.
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "q",
+ "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 .
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "description": "Sorts the results of your query by when the label was created or updated. Default: best match
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated"
+ ]
+ }
+ },
+ {
+ "name": "order",
+ "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.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page .
\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 .
\nFor example, if you want to find labels in the linguist repository that match bug, defect, or enhancement. Your query might look like this:
\nq=bug+defect+enhancement&repository_id=64778136
\nThe labels that best match the query appear first in the search results.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "incomplete_results": false,
+ "items": [
+ {
+ "id": 418327088,
+ "node_id": "MDU6TGFiZWw0MTgzMjcwODg=",
+ "url": "https://api.github.com/repos/octocat/linguist/labels/enhancement",
+ "name": "enhancement",
+ "color": "84b6eb",
+ "default": true,
+ "description": "New feature or request.",
+ "score": 1
+ },
+ {
+ "id": 418327086,
+ "node_id": "MDU6TGFiZWw0MTgzMjcwODY=",
+ "url": "https://api.github.com/repos/octocat/linguist/labels/bug",
+ "name": "bug",
+ "color": "ee0701",
+ "default": true,
+ "description": "Something isn't working.",
+ "score": 1
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Label Search Result Item",
+ "description": "Label Search Result Item",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "score": {
+ "type": "number"
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "object_url": {
+ "type": "string"
},
- "gravatar_id": {
+ "object_type": {
"type": [
"string",
"null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
},
- "maintain": {
- "type": "boolean"
+ "property": {
+ "type": "string"
},
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "fragment": {
+ "type": "string"
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
+ }
}
- ]
+ }
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "color",
+ "default",
+ "description",
+ "score"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/repositories",
+ "title": "Search repositories",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching for repositories \" for a detailed list of qualifiers.
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "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
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "stars",
+ "forks",
+ "help-wanted-issues",
+ "updated"
+ ]
+ }
+ },
+ {
+ "name": "order",
+ "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.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Find repositories via various criteria. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
\nThis query searches for repositories with the word tetris in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 40,
+ "incomplete_results": false,
+ "items": [
+ {
+ "id": 3081286,
+ "node_id": "MDEwOlJlcG9zaXRvcnkzMDgxMjg2",
+ "name": "Tetris",
+ "full_name": "dtrupenn/Tetris",
+ "owner": {
+ "login": "dtrupenn",
+ "id": 872147,
+ "node_id": "MDQ6VXNlcjg3MjE0Nw==",
+ "avatar_url": "https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/dtrupenn",
+ "received_events_url": "https://api.github.com/users/dtrupenn/received_events",
+ "type": "User",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "site_admin": true
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
+ "private": false,
+ "html_url": "https://github.com/dtrupenn/Tetris",
+ "description": "A C implementation of Tetris using Pennsim through LC4",
+ "fork": false,
+ "url": "https://api.github.com/repos/dtrupenn/Tetris",
+ "created_at": "2012-01-01T00:31:50Z",
+ "updated_at": "2013-01-05T17:58:47Z",
+ "pushed_at": "2012-01-01T00:37:02Z",
+ "homepage": "https://github.com",
+ "size": 524,
+ "stargazers_count": 1,
+ "watchers_count": 1,
+ "language": "Assembly",
+ "forks_count": 0,
+ "open_issues_count": 0,
+ "master_branch": "master",
+ "default_branch": "master",
+ "score": 1,
+ "archive_url": "https://api.github.com/repos/dtrupenn/Tetris/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/dtrupenn/Tetris/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/dtrupenn/Tetris/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/dtrupenn/Tetris/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/dtrupenn/Tetris/comments{/number}",
+ "commits_url": "https://api.github.com/repos/dtrupenn/Tetris/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/dtrupenn/Tetris/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/dtrupenn/Tetris/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/dtrupenn/Tetris/contributors",
+ "deployments_url": "https://api.github.com/repos/dtrupenn/Tetris/deployments",
+ "downloads_url": "https://api.github.com/repos/dtrupenn/Tetris/downloads",
+ "events_url": "https://api.github.com/repos/dtrupenn/Tetris/events",
+ "forks_url": "https://api.github.com/repos/dtrupenn/Tetris/forks",
+ "git_commits_url": "https://api.github.com/repos/dtrupenn/Tetris/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/dtrupenn/Tetris/git/tags{/sha}",
+ "git_url": "git:github.com/dtrupenn/Tetris.git",
+ "issue_comment_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/dtrupenn/Tetris/issues{/number}",
+ "keys_url": "https://api.github.com/repos/dtrupenn/Tetris/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/dtrupenn/Tetris/labels{/name}",
+ "languages_url": "https://api.github.com/repos/dtrupenn/Tetris/languages",
+ "merges_url": "https://api.github.com/repos/dtrupenn/Tetris/merges",
+ "milestones_url": "https://api.github.com/repos/dtrupenn/Tetris/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/dtrupenn/Tetris/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/dtrupenn/Tetris/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/dtrupenn/Tetris/releases{/id}",
+ "ssh_url": "git@github.com:dtrupenn/Tetris.git",
+ "stargazers_url": "https://api.github.com/repos/dtrupenn/Tetris/stargazers",
+ "statuses_url": "https://api.github.com/repos/dtrupenn/Tetris/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/dtrupenn/Tetris/subscribers",
+ "subscription_url": "https://api.github.com/repos/dtrupenn/Tetris/subscription",
+ "tags_url": "https://api.github.com/repos/dtrupenn/Tetris/tags",
+ "teams_url": "https://api.github.com/repos/dtrupenn/Tetris/teams",
+ "trees_url": "https://api.github.com/repos/dtrupenn/Tetris/git/trees{/sha}",
+ "clone_url": "https://github.com/dtrupenn/Tetris.git",
+ "mirror_url": "git:git.example.com/dtrupenn/Tetris",
+ "hooks_url": "https://api.github.com/repos/dtrupenn/Tetris/hooks",
+ "svn_url": "https://svn.github.com/dtrupenn/Tetris",
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1,
+ "has_issues": true,
+ "has_projects": true,
+ "has_pages": true,
+ "has_wiki": true,
+ "has_downloads": true,
+ "archived": true,
+ "disabled": true,
+ "visibility": "private",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ }
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Repo Search Result Item",
+ "description": "Repo Search Result Item",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "full_name": {
+ "type": "string"
+ },
+ "owner": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -694905,2919 +741691,1255 @@
"followers_url",
"following_url",
"gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories",
- "title": "Create a repository security advisory",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "summary",
- "in": "body",
- "description": "A short summary of the advisory.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A detailed description of what the advisory impacts.
",
- "isRequired": true
- },
- {
- "type": "string or null",
- "name": "cve_id",
- "in": "body",
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
- },
- {
- "type": "array of objects",
- "name": "vulnerabilities",
- "in": "body",
- "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "object",
- "name": "package",
- "description": "The name of the package affected by the vulnerability.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "ecosystem",
- "description": "The package's language or package management ecosystem.
",
- "isRequired": true,
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- {
- "type": "string or null",
- "name": "name",
- "description": "The unique package name within its ecosystem.
"
- }
- ]
- },
- {
- "type": "string or null",
- "name": "vulnerable_version_range",
- "description": "The range of the package versions affected by the vulnerability.
"
- },
- {
- "type": "string or null",
- "name": "patched_versions",
- "description": "The package version(s) that resolve the vulnerability.
"
- },
- {
- "type": "array of strings or null",
- "name": "vulnerable_functions",
- "description": "The functions in the package that are affected.
"
- }
- ]
- },
- {
- "type": "array of strings or null",
- "name": "cwe_ids",
- "in": "body",
- "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
- },
- {
- "type": "array of objects or null",
- "name": "credits",
- "in": "body",
- "description": "A list of users receiving credit for their participation in the security advisory.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "login",
- "description": "The username of the user credited.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of credit the user is receiving.
",
- "isRequired": true,
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- ]
- },
- {
- "type": "string or null",
- "name": "severity",
- "in": "body",
- "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- {
- "type": "string or null",
- "name": "cvss_vector_string",
- "in": "body",
- "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
- },
- {
- "type": "boolean",
- "name": "start_private_fork",
- "in": "body",
- "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
- "default": false
- }
- ],
- "descriptionHTML": "Creates a new repository security advisory.
\nIn order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "summary": "A new important advisory",
- "description": "A more in-depth description of what the problem is.",
- "severity": "high",
- "cve_id": null,
- "vulnerabilities": [
- {
- "package": {
- "name": "a-package",
- "ecosystem": "npm"
- },
- "vulnerable_version_range": "< 1.0.0",
- "patched_versions": "1.0.0",
- "vulnerable_functions": [
- "important_function"
- ]
- }
- ],
- "cwe_ids": [
- "CWE-1101",
- "CWE-20"
- ],
- "credits": [
- {
- "login": "monalisa",
- "type": "reporter"
- },
- {
- "login": "octocat",
- "type": "analyst"
- }
- ]
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
- },
- "schema": {
- "description": "A repository security advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
- },
- "severity": {
- "type": [
- "string",
- "null"
- ],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
]
},
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
+ "private": {
+ "type": "boolean"
},
- "state": {
+ "html_url": {
"type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
+ "format": "uri"
},
- "email": {
+ "description": {
"type": [
"string",
"null"
]
},
- "login": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
- "examples": [
- "octocat"
- ]
+ "format": "uri"
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
},
- "node_id": {
+ "updated_at": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "format": "date-time"
},
- "avatar_url": {
+ "pushed_at": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "format": "date-time"
},
- "gravatar_id": {
+ "homepage": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "format": "uri"
},
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
+ "size": {
+ "type": "integer"
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
]
},
- "followers_url": {
+ "forks_count": {
+ "type": "integer"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "score": {
+ "type": "number"
+ },
+ "forks_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
+ "format": "uri"
},
- "following_url": {
+ "keys_url": {
+ "type": "string"
+ },
+ "collaborators_url": {
+ "type": "string"
+ },
+ "teams_url": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
+ "format": "uri"
},
- "gists_url": {
+ "hooks_url": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
+ "format": "uri"
},
- "starred_url": {
+ "issue_events_url": {
+ "type": "string"
+ },
+ "events_url": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "format": "uri"
},
- "subscriptions_url": {
+ "assignees_url": {
+ "type": "string"
+ },
+ "branches_url": {
+ "type": "string"
+ },
+ "tags_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "format": "uri"
},
- "organizations_url": {
+ "blobs_url": {
+ "type": "string"
+ },
+ "git_tags_url": {
+ "type": "string"
+ },
+ "git_refs_url": {
+ "type": "string"
+ },
+ "trees_url": {
+ "type": "string"
+ },
+ "statuses_url": {
+ "type": "string"
+ },
+ "languages_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "format": "uri"
},
- "repos_url": {
+ "stargazers_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "format": "uri"
},
- "events_url": {
+ "contributors_url": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "format": "uri"
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "format": "uri"
},
- "type": {
+ "subscription_url": {
"type": "string",
- "examples": [
- "User"
- ]
+ "format": "uri"
},
- "site_admin": {
- "type": "boolean"
+ "commits_url": {
+ "type": "string"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "git_commits_url": {
+ "type": "string"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
+ "comments_url": {
+ "type": "string"
},
- "node_id": {
+ "issue_comment_url": {
"type": "string"
},
- "name": {
+ "contents_url": {
"type": "string"
},
- "slug": {
+ "compare_url": {
"type": "string"
},
- "description": {
- "type": [
- "string",
- "null"
- ]
+ "merges_url": {
+ "type": "string",
+ "format": "uri"
},
- "privacy": {
+ "archive_url": {
"type": "string"
},
- "notification_setting": {
+ "downloads_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "issues_url": {
"type": "string"
},
- "permission": {
+ "pulls_url": {
"type": "string"
},
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
+ "milestones_url": {
+ "type": "string"
},
- "url": {
+ "notifications_url": {
+ "type": "string"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "releases_url": {
+ "type": "string"
+ },
+ "deployments_url": {
"type": "string",
"format": "uri"
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
+ "git_url": {
+ "type": "string"
},
- "members_url": {
+ "ssh_url": {
"type": "string"
},
- "repositories_url": {
+ "clone_url": {
+ "type": "string"
+ },
+ "svn_url": {
"type": "string",
"format": "uri"
},
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
+ "forks": {
+ "type": "integer"
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
+ "open_issues": {
+ "type": "integer"
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "watchers": {
+ "type": "integer"
},
- "parent": {
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "has_issues": {
+ "type": "boolean"
+ },
+ "has_projects": {
+ "type": "boolean"
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_wiki": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string"
+ },
+ "license": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
+ "key": {
"type": "string",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "mit"
]
},
"name": {
- "description": "Name of the team",
"type": "string",
"examples": [
- "Justice League"
+ "MIT License"
]
},
- "description": {
- "description": "Description of the team",
+ "url": {
"type": [
"string",
"null"
],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/licenses/mit"
]
},
- "slug": {
- "type": "string",
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "justice-league"
+ "MIT"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "node_id": {
"type": "string",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "MDc6TGljZW5zZW1pdA=="
]
},
- "type": {
- "description": "The ownership type of the team",
+ "html_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "format": "uri"
}
},
"required": [
- "id",
- "node_id",
- "url",
- "members_url",
+ "key",
"name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "url",
+ "spdx_id",
+ "node_id"
]
}
]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
+ },
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_merge_commit": {
+ "type": "boolean"
+ },
+ "allow_squash_merge": {
+ "type": "boolean"
+ },
+ "allow_rebase_merge": {
+ "type": "boolean"
+ },
+ "allow_auto_merge": {
+ "type": "boolean"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
}
},
"required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "score"
]
}
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/topics",
+ "title": "Search topics",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query .
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page . See \"Searching topics \" for a detailed list of qualifiers.
\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 .
\nFor example, if you want to search for topics related to Ruby that are featured on https://github.com/topics . Your query might look like this:
\nq=ruby+is:featured
\nThis query searches for topics with the keyword ruby and limits 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.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 6,
+ "incomplete_results": false,
+ "items": [
+ {
+ "name": "ruby",
+ "display_name": "Ruby",
+ "short_description": "Ruby is a scripting language designed for simplified object-oriented programming.",
+ "description": "Ruby was developed by Yukihiro \"Matz\" Matsumoto in 1995 with the intent of having an easily readable programming language. It is integrated with the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.",
+ "created_by": "Yukihiro Matsumoto",
+ "released": "December 21, 1995",
+ "created_at": "2016-11-28T22:03:59Z",
+ "updated_at": "2017-10-30T18:16:32Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ {
+ "name": "rails",
+ "display_name": "Rails",
+ "short_description": "Ruby on Rails (Rails) is a web application framework written in Ruby.",
+ "description": "Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.",
+ "created_by": "David Heinemeier Hansson",
+ "released": "December 13 2005",
+ "created_at": "2016-12-09T17:03:50Z",
+ "updated_at": "2017-10-30T16:20:19Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "python",
+ "display_name": "Python",
+ "short_description": "Python is a dynamically typed programming language.",
+ "description": "Python is a dynamically typed programming language designed by Guido Van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.",
+ "created_by": "Guido van Rossum",
+ "released": "February 20, 1991",
+ "created_at": "2016-12-07T00:07:02Z",
+ "updated_at": "2017-10-27T22:45:43Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "jekyll",
+ "display_name": "Jekyll",
+ "short_description": "Jekyll is a simple, blog-aware static site generator.",
+ "description": "Jekyll is a blog-aware, site generator written in Ruby. It takes raw text files, runs it through a renderer and produces a publishable static website.",
+ "created_by": "Tom Preston-Werner",
+ "released": "2008",
+ "created_at": "2016-12-16T21:53:08Z",
+ "updated_at": "2017-10-27T19:00:24Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "sass",
+ "display_name": "Sass",
+ "short_description": "Sass is a stable extension to classic CSS.",
+ "description": "Sass is a stylesheet language with a main implementation in Ruby. It is an extension of CSS that makes improvements to the old stylesheet format, such as being able to declare variables and using a cleaner nesting syntax.",
+ "created_by": "Hampton Catlin, Natalie Weizenbaum, Chris Eppstein",
+ "released": "November 28, 2006",
+ "created_at": "2016-12-16T21:53:45Z",
+ "updated_at": "2018-01-16T16:30:40Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "homebrew",
+ "display_name": "Homebrew",
+ "short_description": "Homebrew is a package manager for macOS.",
+ "description": "Homebrew is a package manager for Apple's macOS operating system. It simplifies the installation of software and is popular in the Ruby on Rails community.",
+ "created_by": "Max Howell",
+ "released": "2009",
+ "created_at": "2016-12-17T20:30:44Z",
+ "updated_at": "2018-02-06T16:14:56Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Topic Search Result Item",
+ "description": "Topic Search Result Item",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "display_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "short_description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_by": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "released": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "featured": {
+ "type": "boolean"
+ },
+ "curated": {
+ "type": "boolean"
+ },
+ "score": {
+ "type": "number"
+ },
+ "repository_count": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "logo_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
+ "object_url": {
+ "type": "string"
},
- "email": {
+ "object_type": {
"type": [
"string",
"null"
]
},
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "property": {
+ "type": "string"
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "fragment": {
+ "type": "string"
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "related": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "topic_relation": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "topic_id": {
+ "type": "integer"
+ },
+ "relation_type": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "aliases": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "topic_relation": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "topic_id": {
+ "type": "integer"
+ },
+ "relation_type": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "name",
+ "display_name",
+ "short_description",
+ "description",
+ "created_by",
+ "released",
+ "created_at",
+ "updated_at",
+ "featured",
+ "curated",
+ "score"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/users",
+ "title": "Search users",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "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 the web interface for GitHub. To learn more about the format of the query, see Constructing a search query . See \"Searching users \" for a detailed list of qualifiers.
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "description": "Sorts the results of your query by number of followers or repositories, or when the person joined GitHub. Default: best match
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "followers",
+ "repositories",
+ "joined"
+ ]
+ }
+ },
+ {
+ "name": "order",
+ "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.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page .
\nWhen searching for users, you can get text match metadata for the issue login , public email , and name fields when you pass the text-match media type. For more details about highlighting search results, see Text match metadata . For more details about how to receive highlighted search results, see Text match metadata .
\nFor example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
\nThis query searches for users with the name tom. The results are restricted to users with more than 42 repositories and over 1,000 followers.
\nThis endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 12,
+ "incomplete_results": false,
+ "items": [
+ {
+ "login": "mojombo",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/mojombo",
+ "html_url": "https://github.com/mojombo",
+ "followers_url": "https://api.github.com/users/mojombo/followers",
+ "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
+ "organizations_url": "https://api.github.com/users/mojombo/orgs",
+ "repos_url": "https://api.github.com/users/mojombo/repos",
+ "received_events_url": "https://api.github.com/users/mojombo/received_events",
+ "type": "User",
+ "score": 1,
+ "following_url": "https://api.github.com/users/mojombo/following{/other_user}",
+ "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
+ "events_url": "https://api.github.com/users/mojombo/events{/privacy}",
+ "site_admin": true
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "User Search Result Item",
+ "description": "User Search Result Item",
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "type": "string"
+ },
+ "score": {
+ "type": "number"
+ },
+ "following_url": {
+ "type": "string"
+ },
+ "gists_url": {
+ "type": "string"
+ },
+ "starred_url": {
+ "type": "string"
+ },
+ "events_url": {
+ "type": "string"
+ },
+ "public_repos": {
+ "type": "integer"
+ },
+ "public_gists": {
+ "type": "integer"
+ },
+ "followers": {
+ "type": "integer"
+ },
+ "following": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bio": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email"
+ },
+ "location": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "hireable": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
},
- "gravatar_id": {
+ "object_type": {
"type": [
"string",
"null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
]
},
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
+ "property": {
+ "type": "string"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "fragment": {
+ "type": "string"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
+ }
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
+ "blog": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "company": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "suspended_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "user_view_type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url",
+ "score"
+ ]
+ }
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "422",
"description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -697825,24 +742947,26 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "write"
- }
- ]
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
- },
+ }
+ ]
+ },
+ "secret-scanning": {
+ "secret-scanning": [
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/reports",
- "title": "Privately report a security vulnerability",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/secret-scanning/alerts",
+ "title": "List secret scanning alerts for an organization",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -697850,242 +742974,218 @@
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "state",
+ "in": "query",
+ "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
}
- }
- ],
- "bodyParameters": [
+ },
{
- "type": "string",
- "name": "summary",
- "in": "body",
- "description": "A short summary of the advisory.
",
- "isRequired": true
+ "name": "secret_type",
+ "in": "query",
+ "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A detailed description of what the advisory impacts.
",
- "isRequired": true
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "array of objects or null",
- "name": "vulnerabilities",
- "in": "body",
- "description": "An array of products affected by the vulnerability detailed in a repository security advisory.
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "package",
- "description": "The name of the package affected by the vulnerability.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "ecosystem",
- "description": "The package's language or package management ecosystem.
",
- "isRequired": true,
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- {
- "type": "string or null",
- "name": "name",
- "description": "The unique package name within its ecosystem.
"
- }
- ]
- },
- {
- "type": "string or null",
- "name": "vulnerable_version_range",
- "description": "The range of the package versions affected by the vulnerability.
"
+ "name": "assignee",
+ "in": "query",
+ "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "assigned-to-user": {
+ "value": "octocat",
+ "summary": "Filter for alerts assigned to the user \"octocat\""
},
- {
- "type": "string or null",
- "name": "patched_versions",
- "description": "The package version(s) that resolve the vulnerability.
"
+ "all-assigned": {
+ "value": "*",
+ "summary": "Filter for all assigned alerts"
},
- {
- "type": "array of strings or null",
- "name": "vulnerable_functions",
- "description": "The functions in the package that are affected.
"
+ "all-unassigned": {
+ "value": "none",
+ "summary": "Filter for all unassigned alerts"
}
- ]
+ }
},
{
- "type": "array of strings or null",
- "name": "cwe_ids",
- "in": "body",
- "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ "name": "sort",
+ "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated"
+ ],
+ "default": "created"
+ }
},
{
- "type": "string or null",
- "name": "severity",
- "in": "body",
- "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
},
{
- "type": "string or null",
- "name": "cvss_vector_string",
- "in": "body",
- "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
},
{
- "type": "boolean",
- "name": "start_private_fork",
- "in": "body",
- "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
- "default": false
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "validity",
+ "in": "query",
+ "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "is_publicly_leaked",
+ "in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "is_multi_repo",
+ "in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
}
],
- "descriptionHTML": "Report a security vulnerability to the maintainers of the repository.\nSee \"Privately reporting a security vulnerability \" for more information about private vulnerability reporting.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
\nThe authenticated user must be an administrator or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "summary": "A newly discovered vulnerability",
- "description": "A more in-depth description of what the problem is.",
- "severity": "high",
- "vulnerabilities": [
- {
- "package": {
- "name": "a-package",
- "ecosystem": "npm"
- },
- "vulnerable_version_range": "< 1.0.0",
- "patched_versions": "1.0.0",
- "vulnerable_functions": [
- "important_function"
- ]
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ]
- },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO"
+ "org": "ORG"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A newly discovered vulnerability",
- "description": "A more in-depth description of what the problem is.",
- "severity": "high",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": null,
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
+ "example": [
+ {
+ "number": 2,
+ "created_at": "2020-11-06T18:48:51Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
+ "state": "resolved",
+ "resolution": "false_positive",
+ "resolved_at": "2020-11-07T02:47:13Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
},
- {
- "type": "CVE",
- "value": null
- }
- ],
- "state": "triage",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": null,
- "closed_at": null,
- "withdrawn_at": null,
- "submission": {
- "accepted": false
- },
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "npm",
- "name": "a-package"
- },
- "vulnerable_version_range": "< 1.0.0",
- "patched_versions": "1.0.0",
- "vulnerable_functions": [
- "important_function"
- ]
- }
- ],
- "cvss": null,
- "cvss_severities": {
- "cvss_v3": null,
- "cvss_v4": null
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "finder"
- }
- ],
- "credits_detailed": [
- {
- "user": {
+ "secret_type": "adafruit_io_key",
+ "secret_type_display_name": "Adafruit IO Key",
+ "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
+ "repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -698105,12 +743205,111 @@
"type": "User",
"site_admin": false
},
- "type": "finder",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks"
+ },
+ "push_protection_bypassed_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "push_protection_bypassed": true,
+ "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
+ "push_protection_bypass_request_reviewer": {
+ "login": "octocat",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/3?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "push_protection_bypass_request_reviewer_comment": "Example response",
+ "push_protection_bypass_request_comment": "Example comment",
+ "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
+ "resolution_comment": "Example comment",
+ "validity": "active",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "is_base64_encoded": false,
+ "first_location_detected": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ },
+ "has_more_locations": true,
+ "assigned_to": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -698130,786 +743329,306 @@
"type": "User",
"site_admin": false
}
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": null
- },
+ }
+ ],
"schema": {
- "description": "A repository security advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
- },
- "severity": {
- "type": [
- "string",
- "null"
- ],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "value": {
+ {
"type": "string",
- "description": "The identifier value."
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
}
- },
- "required": [
- "type",
- "value"
]
},
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
+ "url": {
+ "type": "string",
+ "description": "The REST API URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
},
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
+ "html_url": {
+ "type": "string",
+ "description": "The GitHub URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "locations_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
+ },
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
+ },
+ "resolved_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "ecosystem": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
+ "examples": [
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "description": "The unique package name within its ecosystem."
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "ecosystem",
- "name"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
}
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
+ ]
},
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "repository": {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
"type": "object",
"properties": {
- "cwe_id": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
"type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
},
"name": {
"type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
},
- "type": {
+ "full_name": {
"type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
+ },
+ "owner": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -699077,2168 +743796,1719 @@
"url"
]
},
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
},
- "state": {
+ "html_url": {
"type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
+ },
+ "description": {
"type": [
"string",
"null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "login": {
+ "archive_url": {
"type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "node_id": {
+ "blobs_url": {
"type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "MDQ6VXNlcjE="
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "avatar_url": {
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "followers_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "following_url": {
+ "git_commits_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "gists_url": {
+ "git_refs_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "starred_url": {
+ "git_tags_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "subscriptions_url": {
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "received_events_url": {
+ "subscription_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "type": {
+ "tags_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "site_admin": {
- "type": "boolean"
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
},
- "starred_at": {
+ "trees_url": {
"type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "user_view_type": {
+ "hooks_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
]
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url"
]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
+ },
+ "push_protection_bypassed": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
+ },
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "description": {
- "type": [
- "string",
- "null"
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
+ }
+ ]
+ },
+ "push_protection_bypassed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "triage": {
- "type": "boolean"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "push": {
- "type": "boolean"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "maintain": {
- "type": "boolean"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "admin": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
"type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
+ }
+ ]
+ },
+ "push_protection_bypass_request_reviewer_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when reviewing a push protection bypass."
+ },
+ "push_protection_bypass_request_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when requesting a push protection bypass."
+ },
+ "push_protection_bypass_request_html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment that was optionally added when this alert was closed"
+ },
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the secret was publicly leaked."
+ },
+ "multi_repo": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
+ },
+ "is_base64_encoded": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
"examples": [
- 1
+ "/example/secrets.txt"
]
},
- "node_id": {
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "MDQ6VGVhbTE="
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "url": {
- "description": "URL for the team",
+ "blob_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
+ "description": "The API URL to get the associated blob resource"
},
- "members_url": {
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "name": {
- "description": "Name of the team",
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
"type": "string",
+ "description": "The file path of the wiki page",
"examples": [
- "Justice League"
+ "/example/Home.md"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "A great team."
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "page_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
"examples": [
- "admin"
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "closed"
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "commit_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
"examples": [
- "notifications_enabled"
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
- },
- "html_url": {
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "repositories_url": {
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "slug": {
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://github.com/community/community/discussions/39082"
]
- },
- "type": {
- "description": "The ownership type of the team",
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- 37
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
"examples": [
- 42
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
]
}
},
"required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "discussion_comment_url"
]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
},
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
},
- "site_admin": {
- "type": "boolean"
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "required": [
+ "pull_request_review_url"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
- "title": "Get a repository security advisory",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nAnyone can access any published security advisory on a public repository.
\nThe authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a\ncollaborator on the security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ghsa_id": "GHSA_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
- },
- "schema": {
- "description": "A repository security advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
- },
- "severity": {
- "type": [
- "string",
- "null"
- ],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
+ }
]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
}
- },
- "required": [
- "type",
- "value"
]
},
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
},
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "ecosystem": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
+ "examples": [
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "description": "The unique package name within its ecosystem."
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "ecosystem",
- "name"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
}
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
+ ]
}
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts",
+ "title": "List secret scanning alerts for a repository",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "state",
+ "in": "query",
+ "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ }
+ },
+ {
+ "name": "secret_type",
+ "in": "query",
+ "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "assignee",
+ "in": "query",
+ "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "assigned-to-user": {
+ "value": "octocat",
+ "summary": "Filter for alerts assigned to the user \"octocat\""
+ },
+ "all-assigned": {
+ "value": "*",
+ "summary": "Filter for all assigned alerts"
+ },
+ "all-unassigned": {
+ "value": "none",
+ "summary": "Filter for all unassigned alerts"
+ }
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated"
+ ],
+ "default": "created"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "validity",
+ "in": "query",
+ "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "is_publicly_leaked",
+ "in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "is_multi_repo",
+ "in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists secret scanning alerts for an eligible repository, from newest to oldest.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "number": 2,
+ "created_at": "2020-11-06T18:48:51Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
+ "state": "resolved",
+ "resolution": "false_positive",
+ "resolved_at": "2020-11-07T02:47:13Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
},
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
+ "secret_type": "adafruit_io_key",
+ "secret_type_display_name": "Adafruit IO Key",
+ "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
+ "push_protection_bypassed_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
},
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
+ "push_protection_bypassed": true,
+ "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
+ "push_protection_bypass_request_reviewer": {
+ "login": "octocat",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/3?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": true
},
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
+ "push_protection_bypass_request_reviewer_comment": "Example response",
+ "push_protection_bypass_request_comment": "Example comment",
+ "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
+ "resolution_comment": "Example comment",
+ "validity": "inactive",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "is_base64_encoded": false,
+ "first_location_detected": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ },
+ "has_more_locations": true,
+ "assigned_to": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "name": {
+ {
"type": "string",
- "description": "The name of the CWE.",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
"readOnly": true
}
- },
- "required": [
- "cwe_id",
- "name"
]
},
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
+ "url": {
+ "type": "string",
+ "description": "The REST API URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The GitHub URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "locations_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
+ },
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
+ },
+ "resolved_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -701405,1070 +745675,2270 @@
"type",
"url"
]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
}
- },
- "required": [
- "user",
- "type",
- "state"
+ ]
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
],
- "additionalProperties": false
+ "description": "An optional comment to resolve an alert."
},
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "push_protection_bypassed": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
+ },
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
+ },
+ "push_protection_bypassed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "permissions": {
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "triage": {
- "type": "boolean"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "push": {
- "type": "boolean"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "maintain": {
- "type": "boolean"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "admin": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
"type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
+ }
+ ]
+ },
+ "push_protection_bypass_request_reviewer_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when reviewing a push protection bypass."
+ },
+ "push_protection_bypass_request_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when requesting a push protection bypass."
+ },
+ "push_protection_bypass_request_html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
+ },
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was publicly leaked."
+ },
+ "multi_repo": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
+ },
+ "is_base64_encoded": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
"examples": [
- 1
+ "/example/secrets.txt"
]
},
- "node_id": {
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "MDQ6VGVhbTE="
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "url": {
- "description": "URL for the team",
+ "blob_url": {
"type": "string",
- "format": "uri",
+ "description": "The API URL to get the associated blob resource"
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "members_url": {
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
"type": "string",
+ "description": "The file path of the wiki page",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "/example/Home.md"
]
},
- "name": {
- "description": "Name of the team",
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "Justice League"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "page_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
"examples": [
- "A great team."
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "admin"
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "commit_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
"examples": [
- "closed"
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "html_url": {
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "repositories_url": {
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "slug": {
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "justice-league"
+ "https://github.com/community/community/discussions/39082"
]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
]
- },
- "type": {
- "description": "The ownership type of the team",
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
}
},
"required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
]
}
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository is public or secret scanning is disabled for the repository
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
+ "title": "Get a secret scanning alert",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "alert_number",
+ "in": "path",
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ }
+ },
+ {
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a single secret scanning alert detected in an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "alert_number": "ALERT_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "number": 42,
+ "created_at": "2020-11-06T18:18:30Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
+ "state": "open",
+ "resolution": null,
+ "resolved_at": null,
+ "resolved_by": null,
+ "secret_type": "mailchimp_api_key",
+ "secret_type_display_name": "Mailchimp API Key",
+ "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
+ "push_protection_bypassed_by": null,
+ "push_protection_bypassed": false,
+ "push_protection_bypassed_at": null,
+ "push_protection_bypass_request_reviewer": null,
+ "push_protection_bypass_request_reviewer_comment": null,
+ "push_protection_bypass_request_comment": null,
+ "push_protection_bypass_request_html_url": null,
+ "resolution_comment": null,
+ "validity": "unknown",
+ "publicly_leaked": false,
+ "multi_repo": false
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
+ "created_at": {
+ "type": "string",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "updated_at": {
+ "anyOf": [
{
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ }
+ ]
+ },
+ "url": {
+ "type": "string",
+ "description": "The REST API URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The GitHub URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "locations_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
+ },
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
+ },
+ "resolved_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
"type": "integer",
"format": "int64",
- "description": "A unique identifier of the repository.",
"examples": [
- 1296269
+ 1
]
},
"node_id": {
"type": "string",
- "description": "The GraphQL identifier of the repository.",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "MDQ6VXNlcjE="
]
},
- "name": {
+ "avatar_url": {
"type": "string",
- "description": "The name of the repository.",
+ "format": "uri",
"examples": [
- "Hello-World"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "full_name": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
+ "format": "uri",
"examples": [
- "octocat/Hello-World"
+ "https://api.github.com/users/octocat"
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
]
},
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
},
- "html_url": {
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "description": {
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment to resolve an alert."
+ },
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "push_protection_bypassed": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
+ },
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The repository description.",
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
"examples": [
- "This your first repo!"
+ "octocat"
]
},
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
"url": {
"type": "string",
"format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "https://api.github.com/users/octocat"
]
},
- "archive_url": {
+ "html_url": {
"type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "https://github.com/octocat"
]
},
- "assignees_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "blobs_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "branches_url": {
+ "gists_url": {
"type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "collaborators_url": {
+ "starred_url": {
"type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "comments_url": {
+ "subscriptions_url": {
"type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "commits_url": {
+ "organizations_url": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "compare_url": {
+ "repos_url": {
"type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "contents_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "contributors_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "deployments_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "User"
]
},
- "downloads_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypassed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "events_url": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat"
]
},
- "forks_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
+ "https://github.com/octocat"
]
},
- "git_commits_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "git_refs_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "git_tags_url": {
+ "gists_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "issue_comment_url": {
+ "starred_url": {
"type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "issue_events_url": {
+ "subscriptions_url": {
"type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "issues_url": {
+ "organizations_url": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "keys_url": {
+ "repos_url": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "labels_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "languages_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "merges_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
+ "User"
]
},
- "milestones_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "notifications_url": {
+ "user_view_type": {
"type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypass_request_reviewer_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when reviewing a push protection bypass."
+ },
+ "push_protection_bypass_request_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when requesting a push protection bypass."
+ },
+ "push_protection_bypass_request_html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
+ },
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was publicly leaked."
+ },
+ "multi_repo": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
+ },
+ "is_base64_encoded": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
]
},
- "pulls_url": {
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
+ "examples": [
+ "/example/Home.md"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "page_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082"
+ ]
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
+ ]
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ ]
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "octocat"
]
},
- "releases_url": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "MDQ6VXNlcjE="
]
},
- "stargazers_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "statuses_url": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat"
]
},
- "subscribers_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://github.com/octocat"
]
},
- "subscription_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/followers"
]
},
- "tags_url": {
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about tags on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "teams_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the teams on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "trees_url": {
+ "repos_url": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "hooks_url": {
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the hooks on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
"url"
]
}
- ],
- "type": [
- "null"
]
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
}
}
}
@@ -702479,12 +747949,16 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "404",
- "description": "Resource not found
"
+ "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -702494,7 +747968,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "read"
+ "\"Secret scanning alerts\" repository permissions": "read"
}
]
}
@@ -702502,10 +747976,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
- "title": "Update a repository security advisory",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
+ "title": "Update a secret scanning alert",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
"parameters": [
{
"name": "owner",
@@ -702526,188 +748000,70 @@
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "name": "alert_number",
"in": "path",
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
"required": true,
"schema": {
- "type": "string"
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
}
}
],
"bodyParameters": [
{
"type": "string",
- "name": "summary",
- "in": "body",
- "description": "A short summary of the advisory.
"
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A detailed description of what the advisory impacts.
"
- },
- {
- "type": "string or null",
- "name": "cve_id",
- "in": "body",
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
- },
- {
- "type": "array of objects",
- "name": "vulnerabilities",
- "in": "body",
- "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "package",
- "description": "The name of the package affected by the vulnerability.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "ecosystem",
- "description": "The package's language or package management ecosystem.
",
- "isRequired": true,
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- {
- "type": "string or null",
- "name": "name",
- "description": "The unique package name within its ecosystem.
"
- }
- ]
- },
- {
- "type": "string or null",
- "name": "vulnerable_version_range",
- "description": "The range of the package versions affected by the vulnerability.
"
- },
- {
- "type": "string or null",
- "name": "patched_versions",
- "description": "The package version(s) that resolve the vulnerability.
"
- },
- {
- "type": "array of strings or null",
- "name": "vulnerable_functions",
- "description": "The functions in the package that are affected.
"
- }
- ]
- },
- {
- "type": "array of strings or null",
- "name": "cwe_ids",
- "in": "body",
- "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
- },
- {
- "type": "array of objects or null",
- "name": "credits",
+ "name": "state",
"in": "body",
- "description": "A list of users receiving credit for their participation in the security advisory.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "login",
- "description": "The username of the user credited.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of credit the user is receiving.
",
- "isRequired": true,
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
+ "description": "Sets the state of the secret scanning alert. You must provide resolution when you set the state to resolved.
",
+ "enum": [
+ "open",
+ "resolved"
]
},
{
"type": "string or null",
- "name": "severity",
+ "name": "resolution",
"in": "body",
- "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "description": "Required when the state is resolved. The reason for resolving the alert.
",
"enum": [
- "critical",
- "high",
- "medium",
- "low",
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
null
]
},
{
"type": "string or null",
- "name": "cvss_vector_string",
- "in": "body",
- "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
- },
- {
- "type": "string",
- "name": "state",
- "in": "body",
- "description": "The state of the advisory.
",
- "enum": [
- "published",
- "closed",
- "draft"
- ]
- },
- {
- "type": "array of strings or null",
- "name": "collaborating_users",
+ "name": "resolution_comment",
"in": "body",
- "description": "A list of usernames who have been granted write access to the advisory.
"
+ "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.
"
},
{
- "type": "array of strings or null",
- "name": "collaborating_teams",
+ "type": "string or null",
+ "name": "assignee",
"in": "body",
- "description": "A list of team slugs which have been granted write access to the advisory.
"
+ "description": "The username of the user to assign to the alert. Set to null to unassign the alert.
"
}
],
- "descriptionHTML": "Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nIn order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,\nor a collaborator on the repository security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "descriptionHTML": "Updates the status of a secret scanning alert in an eligible repository.
\nYou can also use this endpoint to assign or unassign an alert to a user who has write access to the repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Updating the severity and state.",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "severity": "critical",
- "state": "published"
+ "state": "resolved",
+ "resolution": "false_positive"
},
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "ghsa_id": "GHSA_ID"
+ "alert_number": "ALERT_NUMBER"
}
},
"response": {
@@ -702715,315 +748071,148 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "number": 42,
+ "created_at": "2020-11-06T18:18:30Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
+ "state": "resolved",
+ "resolution": "used_in_tests",
+ "resolved_at": "2020-11-16T22:42:07Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
"gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "secret_type": "mailchimp_api_key",
+ "secret_type_display_name": "Mailchimp API Key",
+ "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
+ "push_protection_bypassed": false,
+ "push_protection_bypassed_by": null,
+ "push_protection_bypassed_at": null,
+ "push_protection_bypass_request_reviewer": null,
+ "push_protection_bypass_request_reviewer_comment": null,
+ "push_protection_bypass_request_comment": null,
+ "push_protection_bypass_request_html_url": null,
+ "resolution_comment": "Example comment",
+ "validity": "unknown",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "assigned_to": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://alambic.github.com/avatars/u/1?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
}
},
"schema": {
- "description": "A repository security advisory.",
"type": "object",
"properties": {
- "ghsa_id": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
"type": "string",
- "description": "The GitHub Security Advisory ID.",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
"readOnly": true
},
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ }
+ ]
},
"url": {
"type": "string",
+ "description": "The REST API URL of the alert resource.",
"format": "uri",
- "description": "The API URL for the advisory.",
"readOnly": true
},
"html_url": {
"type": "string",
+ "description": "The GitHub URL of the alert resource.",
"format": "uri",
- "description": "The URL for the advisory.",
"readOnly": true
},
- "summary": {
+ "locations_url": {
"type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
},
- "description": {
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
"type": [
"string",
"null"
],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
},
- "severity": {
+ "resolved_at": {
"type": [
"string",
"null"
],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -703192,15 +748381,39 @@
"url"
]
}
+ ]
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
],
+ "description": "An optional comment to resolve an alert."
+ },
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "push_protection_bypassed": {
"type": [
+ "boolean",
"null"
- ]
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
},
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -703369,1612 +748582,3187 @@
"url"
]
}
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
]
},
- "created_at": {
+ "push_protection_bypassed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "updated_at": {
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypass_request_reviewer_comment": {
"type": [
"string",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
+ "description": "An optional comment when reviewing a push protection bypass."
},
- "published_at": {
+ "push_protection_bypass_request_comment": {
"type": [
"string",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
+ "description": "An optional comment when requesting a push protection bypass."
},
- "closed_at": {
+ "push_protection_bypass_request_html_url": {
"type": [
"string",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
},
- "withdrawn_at": {
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
"type": [
- "string",
+ "boolean",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
+ "description": "Whether the detected secret was publicly leaked."
},
- "submission": {
+ "multi_repo": {
"type": [
- "object",
+ "boolean",
"null"
],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
+ "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
},
- "vulnerabilities": {
+ "is_base64_encoded": {
"type": [
- "array",
+ "boolean",
"null"
],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
},
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
},
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
+ "examples": [
+ "/example/Home.md"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "page_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082"
+ ]
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
+ ]
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ ]
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
}
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ ]
}
- },
- "required": [
- "vector_string",
- "score"
]
},
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "vector_string": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 3 vector string."
+ ]
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
+ "email": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 4 vector string."
+ ]
},
- "score": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
- "number",
+ "string",
"null"
],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "vector_string",
- "score"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad request, resolution comment is invalid or the resolution was not changed.
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "State does not match the resolution or resolution comment, or assignee does not have write access to the repository
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
+ "title": "List locations for a secret scanning alert",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "alert_number",
+ "in": "path",
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all locations for a given secret scanning alert for an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "alert_number": "ALERT_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "type": "commit",
+ "details": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ }
+ },
+ {
+ "type": "wiki_commit",
+ "details": {
+ "path": "/example/Home.md",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
+ "commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
+ "commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ }
+ },
+ {
+ "type": "issue_title",
+ "details": {
+ "issue_title_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ }
+ },
+ {
+ "type": "issue_body",
+ "details": {
+ "issue_body_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ }
+ },
+ {
+ "type": "issue_comment",
+ "details": {
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ }
+ },
+ {
+ "type": "discussion_title",
+ "details": {
+ "discussion_title_url": "https://github.com/community/community/discussions/39082"
+ }
+ },
+ {
+ "type": "discussion_body",
+ "details": {
+ "discussion_body_url": "https://github.com/community/community/discussions/39082#discussion-4566270"
+ }
+ },
+ {
+ "type": "discussion_comment",
+ "details": {
+ "discussion_comment_url": "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ }
+ },
+ {
+ "type": "pull_request_title",
+ "details": {
+ "pull_request_title_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ }
+ },
+ {
+ "type": "pull_request_body",
+ "details": {
+ "pull_request_body_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ }
+ },
+ {
+ "type": "pull_request_comment",
+ "details": {
+ "pull_request_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1825855898"
+ }
+ },
+ {
+ "type": "pull_request_review",
+ "details": {
+ "pull_request_review_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ }
+ },
+ {
+ "type": "pull_request_review_comment",
+ "details": {
+ "pull_request_review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "description": "List of locations where the secret was detected",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit",
+ "wiki_commit",
+ "issue_title",
+ "issue_body",
+ "issue_comment",
+ "discussion_title",
+ "discussion_body",
+ "discussion_comment",
+ "pull_request_title",
+ "pull_request_body",
+ "pull_request_comment",
+ "pull_request_review",
+ "pull_request_review_comment"
+ ],
+ "description": "The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.",
+ "examples": [
+ "commit"
]
},
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "details": {
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
+ "path": {
"type": "string",
+ "description": "The file path in the repository",
"examples": [
- "octocat"
+ "/example/secrets.txt"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "node_id": {
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "MDQ6VXNlcjE="
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "avatar_url": {
+ "blob_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "description": "The API URL to get the associated blob resource"
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "url": {
+ "commit_url": {
"type": "string",
- "format": "uri",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
"examples": [
- "https://api.github.com/users/octocat"
+ "/example/Home.md"
]
},
- "html_url": {
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "https://github.com/octocat"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "followers_url": {
+ "page_url": {
"type": "string",
- "format": "uri",
+ "description": "The GitHub URL to get the associated wiki page",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "following_url": {
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "gists_url": {
+ "commit_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
- },
- "starred_url": {
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "subscriptions_url": {
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "organizations_url": {
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "repos_url": {
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
"type": "string",
"format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://github.com/community/community/discussions/39082"
]
- },
- "events_url": {
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
]
- },
- "received_events_url": {
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
]
- },
- "type": {
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "user_view_type": {
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "pull_request_comment_url"
]
},
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
]
},
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
]
}
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses",
+ "title": "Create a push protection bypass",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "reason",
+ "in": "body",
+ "description": "The reason for bypassing push protection.
",
+ "isRequired": true,
+ "enum": [
+ "false_positive",
+ "used_in_tests",
+ "will_fix_later"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "placeholder_id",
+ "in": "body",
+ "description": "The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": "Creates a bypass for a previously push protected secret.
\nThe authenticated user must be the original author of the committed secret.
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "reason": "will_fix_later",
+ "placeholder_id": "2k4dM4tseyC5lPIsjl5emX9sPNk"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "reason": "will_fix_later",
+ "expire_at": "2020-11-06T18:18:30Z",
+ "token_type": "mailchimp_api_key"
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "reason": {
+ "description": "The reason for bypassing push protection.",
+ "type": "string",
+ "enum": [
+ "false_positive",
+ "used_in_tests",
+ "will_fix_later"
+ ]
},
- "collaborating_users": {
+ "expire_at": {
"type": [
- "array",
+ "string",
"null"
],
- "description": "A list of users that collaborate on the advisory.",
+ "format": "date-time",
+ "description": "The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "token_type": {
+ "type": "string",
+ "description": "The token type this bypass is for."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "User does not have enough permissions to perform this action.
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Placeholder ID not found, or push protection is disabled on this repository.
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Bad request, input data missing or incorrect.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": false,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/scan-history",
+ "title": "Get secret scanning scan history for a repository",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
\n\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "incremental_scans": [
+ {
+ "type": "git",
+ "status": "completed",
+ "completed_at": "2024-10-07T02:47:00Z"
+ }
+ ],
+ "backfill_scans": [
+ {
+ "type": "git",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:50:00Z"
+ },
+ {
+ "type": "issue",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:49:00Z"
+ },
+ {
+ "type": "discussion",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:48:00Z"
+ }
+ ],
+ "pattern_update_scans": [
+ {
+ "type": "discussion",
+ "status": "in_progress",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:51:00Z"
+ }
+ ],
+ "custom_pattern_backfill_scans": [
+ {
+ "type": "git",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:55:00Z",
+ "pattern_slug": "my-custom-pattern",
+ "pattern_scope": "enterprise"
+ },
+ {
+ "type": "git",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:55:00Z",
+ "pattern_slug": "my-custom-pattern",
+ "pattern_scope": "organization"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "incremental_scans": {
+ "type": "array",
+ "items": {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
+ },
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ }
+ },
+ "pattern_update_scans": {
+ "type": "array",
"items": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "description": "Information on a single scan performed by secret scanning on the repository",
"type": "object",
"properties": {
- "name": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
},
- "email": {
+ "started_at": {
"type": [
"string",
"null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ }
+ },
+ "backfill_scans": {
+ "type": "array",
+ "items": {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "description": "The type of scan"
},
- "avatar_url": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
},
- "gravatar_id": {
+ "completed_at": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ }
+ },
+ "custom_pattern_backfill_scans": {
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
+ },
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
},
- "followers_url": {
+ {
+ "type": "object",
+ "properties": {
+ "pattern_name": {
+ "type": "string",
+ "description": "Name of the custom pattern for custom pattern scans"
+ },
+ "pattern_scope": {
+ "type": "string",
+ "description": "Level at which the custom pattern is defined, one of \"repository\", \"organization\", or \"enterprise\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository does not have GitHub Advanced Security or secret scanning enabled
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ }
+ ],
+ "push-protection": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
+ "title": "List organization pattern configurations",
+ "category": "secret-scanning",
+ "subcategory": "push-protection",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the read:org scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "provider_pattern_overrides": [
+ {
+ "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
+ "slug": "github_personal_access_token_legacy_v2",
+ "display_name": "GitHub Personal Access Token (Legacy v2)",
+ "alert_total": 15,
+ "alert_total_percentage": 36,
+ "false_positives": 2,
+ "false_positive_rate": 13,
+ "bypass_rate": 13,
+ "default_setting": "enabled",
+ "setting": "enabled",
+ "enterprise_setting": "enabled"
+ }
+ ],
+ "custom_pattern_overrides": [
+ {
+ "token_type": "cp_2",
+ "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "slug": "custom-api-key",
+ "display_name": "Custom API Key",
+ "alert_total": 15,
+ "alert_total_percentage": 36,
+ "false_positives": 3,
+ "false_positive_rate": 20,
+ "bypass_rate": 20,
+ "default_setting": "disabled",
+ "setting": "enabled"
+ }
+ ]
+ },
+ "schema": {
+ "title": "Secret scanning pattern configuration",
+ "description": "A collection of secret scanning patterns and their settings related to push protection.",
+ "type": "object",
+ "properties": {
+ "pattern_config_version": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
+ },
+ "provider_pattern_overrides": {
+ "type": "array",
+ "description": "Overrides for partner patterns.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "token_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
+ "description": "The ID of the pattern."
},
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
+ "custom_pattern_version": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The version of this pattern if it's a custom pattern."
},
- "gists_url": {
+ "slug": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
+ "description": "The slug of the pattern."
},
- "starred_url": {
+ "display_name": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "description": "The user-friendly name for the pattern."
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "alert_total": {
+ "type": "integer",
+ "description": "The total number of alerts generated by this pattern."
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "alert_total_percentage": {
+ "type": "integer",
+ "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "false_positives": {
+ "type": "integer",
+ "description": "The number of false positive alerts generated by this pattern."
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "false_positive_rate": {
+ "type": "integer",
+ "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "bypass_rate": {
+ "type": "integer",
+ "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
},
- "type": {
+ "default_setting": {
"type": "string",
- "examples": [
- "User"
+ "description": "The default push protection setting for this pattern.",
+ "enum": [
+ "disabled",
+ "enabled"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enterprise_setting": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled",
+ null
]
},
- "user_view_type": {
+ "setting": {
"type": "string",
- "examples": [
- "public"
+ "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
}
},
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
+ "custom_pattern_overrides": {
+ "type": "array",
+ "description": "Overrides for custom patterns defined by the organization.",
"items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
+ "token_type": {
+ "type": "string",
+ "description": "The ID of the pattern."
},
- "description": {
+ "custom_pattern_version": {
"type": [
"string",
"null"
- ]
- },
- "privacy": {
- "type": "string"
+ ],
+ "description": "The version of this pattern if it's a custom pattern."
},
- "notification_setting": {
- "type": "string"
+ "slug": {
+ "type": "string",
+ "description": "The slug of the pattern."
},
- "permission": {
- "type": "string"
+ "display_name": {
+ "type": "string",
+ "description": "The user-friendly name for the pattern."
},
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
+ "alert_total": {
+ "type": "integer",
+ "description": "The total number of alerts generated by this pattern."
},
- "url": {
- "type": "string",
- "format": "uri"
+ "alert_total_percentage": {
+ "type": "integer",
+ "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
+ "false_positives": {
+ "type": "integer",
+ "description": "The number of false positive alerts generated by this pattern."
},
- "members_url": {
- "type": "string"
+ "false_positive_rate": {
+ "type": "integer",
+ "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
},
- "repositories_url": {
- "type": "string",
- "format": "uri"
+ "bypass_rate": {
+ "type": "integer",
+ "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
},
- "type": {
- "description": "The ownership type of the team",
+ "default_setting": {
"type": "string",
+ "description": "The default push protection setting for this pattern.",
"enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
+ "disabled",
+ "enabled"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "enterprise_setting": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled",
+ null
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
+ "setting": {
+ "type": "string",
+ "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
]
}
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
+ "title": "Update organization pattern configurations",
+ "category": "secret-scanning",
+ "subcategory": "push-protection",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string or null",
+ "name": "pattern_config_version",
+ "in": "body",
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "provider_pattern_settings",
+ "in": "body",
+ "description": "Pattern settings for provider patterns.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "token_type",
+ "description": "The ID of the pattern to configure.
"
+ },
+ {
+ "type": "string",
+ "name": "push_protection_setting",
+ "description": "Push protection setting to set for the pattern.
",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "custom_pattern_settings",
+ "in": "body",
+ "description": "Pattern settings for custom patterns.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "token_type",
+ "description": "The ID of the pattern to configure.
"
+ },
+ {
+ "type": "string or null",
+ "name": "custom_pattern_version",
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ },
+ {
+ "type": "string",
+ "name": "push_protection_setting",
+ "description": "Push protection setting to set for the pattern.
",
+ "enum": [
+ "disabled",
+ "enabled"
+ ]
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Updates the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the write:org scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "provider_pattern_settings": [
+ {
+ "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
+ "push_protection_setting": "enabled"
+ }
+ ],
+ "custom_pattern_settings": [
+ {
+ "token_type": "cp_2",
+ "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "push_protection_setting": "enabled"
+ }
+ ]
+ },
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "pattern_config_version": {
+ "type": "string",
+ "description": "The updated pattern configuration version."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" organization permissions": "write"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "security-advisories": {
+ "global-advisories": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/advisories",
+ "title": "List global security advisories",
+ "category": "security-advisories",
+ "subcategory": "global-advisories",
+ "parameters": [
+ {
+ "name": "ghsa_id",
+ "in": "query",
+ "description": "If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "reviewed",
+ "malware",
+ "unreviewed"
+ ],
+ "default": "reviewed"
+ }
+ },
+ {
+ "name": "cve_id",
+ "description": "If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ecosystem",
+ "in": "query",
+ "description": "If specified, only advisories for these ecosystems will be returned.
",
+ "schema": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ }
+ },
+ {
+ "name": "severity",
+ "in": "query",
+ "description": "If specified, only advisories with these severities will be returned.
",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "unknown",
+ "low",
+ "medium",
+ "high",
+ "critical"
+ ]
+ }
+ },
+ {
+ "name": "cwes",
+ "in": "query",
+ "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
\nExample: cwes=79,284,22 or cwes[]=79&cwes[]=284&cwes[]=22
",
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "is_withdrawn",
+ "in": "query",
+ "description": "Whether to only return advisories that have been withdrawn.
",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "affects",
+ "in": "query",
+ "description": "If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified.\nIf the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
\nExample: affects=package1,package2@1.0.0,package3@2.0.0 or affects[]=package1&affects[]=package2@1.0.0
",
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 1000,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "published",
+ "in": "query",
+ "description": "If specified, only return advisories that were published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "updated",
+ "in": "query",
+ "description": "If specified, only return advisories that were updated on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "modified",
+ "description": "If specified, only show advisories that were updated or published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "epss_percentage",
+ "in": "query",
+ "description": "If specified, only return advisories that have an EPSS percentage score that matches the provided value.\nThe EPSS percentage represents the likelihood of a CVE being exploited.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "epss_percentile",
+ "in": "query",
+ "description": "If specified, only return advisories that have an EPSS percentile score that matches the provided value.\nThe EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 30
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "updated",
+ "published",
+ "epss_percentage",
+ "epss_percentile"
+ ],
+ "default": "published"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
\nBy default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type parameter in your request, with the value malware. For more information about the different types of security advisories, see \"About the GitHub Advisory database .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
+ "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "summary": "Heartbleed security advisory",
+ "description": "This bug allows an attacker to read portions of the affected server’s memory, potentially disclosing sensitive information.",
+ "type": "reviewed",
+ "severity": "high",
+ "source_code_location": "https://github.com/project/a-package",
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "references": [
+ "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
+ ],
+ "published_at": "2023-03-23T02:30:56Z",
+ "updated_at": "2023-03-24T02:30:56Z",
+ "github_reviewed_at": "2023-03-23T02:30:56Z",
+ "nvd_published_at": "2023-03-25T02:30:56Z",
+ "withdrawn_at": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "npm",
+ "name": "a-package"
},
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
+ "first_patched_version": "1.0.3",
+ "vulnerable_version_range": "<=1.0.2",
+ "vulnerable_functions": [
+ "a_function"
]
}
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-400",
+ "name": "Uncontrolled Resource Consumption"
+ }
+ ],
+ "epss": [
+ {
+ "percentage": 0.00045,
+ "percentile": "0.16001e0"
+ }
+ ],
+ "credits": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst"
+ }
+ ]
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "description": "A GitHub Security Advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
+ "readOnly": true
+ },
+ "url": {
+ "type": "string",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "repository_advisory_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL for the repository advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of advisory.",
+ "readOnly": true,
+ "enum": [
+ "reviewed",
+ "unreviewed",
+ "malware"
+ ]
+ },
+ "severity": {
+ "type": "string",
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ "unknown"
+ ]
+ },
+ "source_code_location": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL of the advisory's source code."
+ },
+ "identifiers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "readOnly": true,
+ "items": {
"type": "object",
"properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
+ "type": {
"type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
]
},
- "full_name": {
+ "value": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ }
+ },
+ "references": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string",
+ "description": "URLs with more information regarding the advisory."
+ }
+ },
+ "published_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "github_reviewed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "nvd_published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The products and respective version ranges affected by the advisory.",
+ "items": {
+ "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
+ "ecosystem": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
]
},
- "gravatar_id": {
+ "name": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "description": "The unique package name within its ecosystem."
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
+ "ecosystem",
+ "name"
]
},
- "description": {
+ "vulnerable_version_range": {
"type": [
"string",
"null"
],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
+ "description": "The range of the package versions affected by the vulnerability."
},
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
+ "first_patched_version": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version that resolves the vulnerability."
},
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected by the vulnerability.",
+ "readOnly": true,
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "first_patched_version",
+ "vulnerable_functions"
+ ]
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "teams_url": {
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "epss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
+ "properties": {
+ "percentage": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "percentile": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ "description": "The Common Weakness Enumeration (CWE) identifier."
},
- "trees_url": {
+ "name": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The users who contributed to the advisory.",
+ "readOnly": true,
+ "items": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "hooks_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
+ "user",
+ "type"
]
}
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "repository_advisory_url",
+ "summary",
+ "description",
+ "type",
+ "severity",
+ "source_code_location",
+ "identifiers",
+ "references",
+ "published_at",
+ "updated_at",
+ "github_reviewed_at",
+ "nvd_published_at",
+ "withdrawn_at",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "credits"
+ ],
+ "additionalProperties": false
+ }
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "key": "add_credit",
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "429",
+ "description": "Too many requests
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/advisories/{ghsa_id}",
+ "title": "Get a global security advisory",
+ "category": "security-advisories",
+ "subcategory": "global-advisories",
+ "parameters": [
+ {
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
",
+ "codeExamples": [
+ {
+ "key": "default",
"request": {
- "contentType": "application/json",
- "description": "To add a credit to an advisory, send the whole array of values.",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "credits": [
- {
- "login": "monauser",
- "type": "remediation_developer"
- }
- ]
- },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
"ghsa_id": "GHSA_ID"
}
},
@@ -704985,51 +751773,14 @@
"example": {
"ghsa_id": "GHSA-abcd-1234-efgh",
"cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
+ "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
"summary": "A short summary of the advisory.",
"description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
+ "type": "reviewed",
+ "severity": "high",
+ "source_code_location": "https://github.com/project/a-package",
"identifiers": [
{
"type": "GHSA",
@@ -705040,45 +751791,35 @@
"value": "CVE-2050-00000"
}
],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
+ "references": [
+ "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
+ ],
+ "published_at": "2023-03-23T02:30:56Z",
+ "updated_at": "2023-03-24T02:30:56Z",
+ "github_reviewed_at": "2023-03-23T02:30:56Z",
+ "nvd_published_at": "2023-03-25T02:30:56Z",
"withdrawn_at": null,
- "submission": null,
"vulnerabilities": [
{
"package": {
- "ecosystem": "pip",
+ "ecosystem": "npm",
"name": "a-package"
},
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
+ "first_patched_version": "1.0.3",
+ "vulnerable_version_range": "<=1.0.2",
"vulnerable_functions": [
- "function2"
+ "a_function"
]
}
],
"cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
},
"cvss_severities": {
"cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
},
"cvss_v4": {
"vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
@@ -705087,20 +751828,11 @@
},
"cwes": [
{
- "cwe_id": "CWE-123",
- "name": "A CWE"
+ "cwe_id": "CWE-400",
+ "name": "Uncontrolled Resource Consumption"
}
],
- "cwe_ids": [
- "CWE-123"
- ],
"credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
{
"user": {
"login": "octocat",
@@ -705122,119 +751854,12 @@
"type": "User",
"site_admin": false
},
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
+ "type": "analyst"
}
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
+ ]
},
"schema": {
- "description": "A repository security advisory.",
+ "description": "A GitHub Security Advisory.",
"type": "object",
"properties": {
"ghsa_id": {
@@ -705247,11 +751872,11 @@
"string",
"null"
],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
+ "readOnly": true
},
"url": {
"type": "string",
- "format": "uri",
"description": "The API URL for the advisory.",
"readOnly": true
},
@@ -705261,6 +751886,15 @@
"description": "The URL for the advisory.",
"readOnly": true
},
+ "repository_advisory_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL for the repository advisory.",
+ "readOnly": true
+ },
"summary": {
"type": "string",
"description": "A short summary of the advisory.",
@@ -705274,376 +751908,41 @@
"description": "A detailed description of what the advisory entails.",
"maxLength": 65535
},
+ "type": {
+ "type": "string",
+ "description": "The type of advisory.",
+ "readOnly": true,
+ "enum": [
+ "reviewed",
+ "unreviewed",
+ "malware"
+ ]
+ },
"severity": {
- "type": [
- "string",
- "null"
- ],
+ "type": "string",
"description": "The severity of the advisory.",
"enum": [
"critical",
"high",
"medium",
"low",
- null
+ "unknown"
]
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
+ "source_code_location": {
"type": [
+ "string",
"null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
],
- "type": [
- "null"
- ]
+ "format": "uri",
+ "description": "The URL of the advisory's source code."
},
"identifiers": {
- "type": "array",
+ "type": [
+ "array",
+ "null"
+ ],
+ "readOnly": true,
"items": {
"type": "object",
"properties": {
@@ -705664,54 +751963,46 @@
"type",
"value"
]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
+ }
},
- "created_at": {
+ "references": {
"type": [
- "string",
+ "array",
"null"
],
+ "items": {
+ "type": "string",
+ "description": "URLs with more information regarding the advisory."
+ }
+ },
+ "published_at": {
+ "type": "string",
"format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
"readOnly": true
},
"updated_at": {
- "type": [
- "string",
- "null"
- ],
+ "type": "string",
"format": "date-time",
"description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
"readOnly": true
},
- "published_at": {
+ "github_reviewed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
"readOnly": true
},
- "closed_at": {
+ "nvd_published_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
"readOnly": true
},
"withdrawn_at": {
@@ -705723,30 +752014,14 @@
"description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
"readOnly": true
},
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
"vulnerabilities": {
"type": [
"array",
"null"
],
+ "description": "The products and respective version ranges affected by the advisory.",
"items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
"type": "object",
"properties": {
"package": {
@@ -705795,19 +752070,20 @@
],
"description": "The range of the package versions affected by the vulnerability."
},
- "patched_versions": {
+ "first_patched_version": {
"type": [
"string",
"null"
],
- "description": "The package version(s) that resolve the vulnerability."
+ "description": "The package version that resolves the vulnerability."
},
"vulnerable_functions": {
"type": [
"array",
"null"
],
- "description": "The functions in the package that are affected.",
+ "description": "The functions in the package that are affected by the vulnerability.",
+ "readOnly": true,
"items": {
"type": "string"
}
@@ -705816,10 +752092,9 @@
"required": [
"package",
"vulnerable_version_range",
- "patched_versions",
+ "first_patched_version",
"vulnerable_functions"
- ],
- "additionalProperties": false
+ ]
}
},
"cvss": {
@@ -705899,100 +752174,1107 @@
],
"description": "The CVSS 4 vector string."
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "epss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
+ "properties": {
+ "percentage": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "percentile": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The users who contributed to the advisory.",
+ "readOnly": true,
+ "items": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type"
+ ]
+ }
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "repository_advisory_url",
+ "summary",
+ "description",
+ "type",
+ "severity",
+ "source_code_location",
+ "identifiers",
+ "references",
+ "published_at",
+ "updated_at",
+ "github_reviewed_at",
+ "nvd_published_at",
+ "withdrawn_at",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "credits"
+ ],
+ "additionalProperties": false
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ }
+ ],
+ "repository-advisories": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/security-advisories",
+ "title": "List repository security advisories for an organization",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "published"
+ ],
+ "default": "created"
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 30
+ }
+ },
+ {
+ "name": "state",
+ "description": "Filter by the state of the repository advisories. Only advisories of this state will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "triage",
+ "draft",
+ "published",
+ "closed"
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists repository security advisories for an organization.
\nThe authenticated user must be an owner or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": null
+ },
+ {
+ "ghsa_id": "GHSA-1234-5678-9012",
+ "cve_id": "CVE-2051-0000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "low",
+ "author": {
+ "login": "monauser",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "monalisa",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-1234-5678-9012"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2051-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-03T00:00:00Z",
+ "updated_at": "2020-01-04T00:00:00Z",
+ "published_at": "2020-01-04T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": {
+ "accepted": true
+ },
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 7.1
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-456",
+ "name": "A CWE 2.0"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-456"
+ ],
+ "credits": [
+ {
+ "login": "monauser",
+ "type": "reporter"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "monauser",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "reporter",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-1234-5678-9012",
+ "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- },
- "required": [
- "cwe_id",
- "name"
+ ],
+ "type": [
+ "null"
]
},
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -706159,519 +753441,363 @@
"type",
"url"
]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
},
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
}
},
"required": [
- "user",
- "type",
- "state"
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
],
- "additionalProperties": false
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
},
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
+ "vector_string": {
"type": [
"string",
"null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ ],
+ "description": "The CVSS vector."
},
- "gravatar_id": {
+ "score": {
"type": [
- "string",
+ "number",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "vector_string",
+ "score"
]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
+ "cvss_v3": {
"type": [
- "string",
+ "object",
"null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
+ ],
"properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
},
- "admin": {
- "type": "boolean"
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "vector_string",
+ "score"
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
}
+ },
+ "required": [
+ "vector_string",
+ "score"
]
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
"type": "object",
"properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
+ "cwe_id": {
"type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "description": "The Common Weakness Enumeration (CWE) identifier."
},
"name": {
"type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ },
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
},
- "full_name": {
+ "type": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
- },
- "owner": {
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -706839,390 +753965,1070 @@
"url"
]
},
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
},
- "description": {
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
]
},
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "archive_url": {
+ "login": {
"type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "octocat"
]
},
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ 1
]
},
- "blobs_url": {
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "MDQ6VXNlcjE="
]
},
- "branches_url": {
+ "avatar_url": {
"type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "comments_url": {
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat"
]
},
- "commits_url": {
+ "html_url": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://github.com/octocat"
]
},
- "compare_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "contents_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "contributors_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "deployments_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "downloads_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "events_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "forks_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "git_refs_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "git_tags_url": {
+ "received_events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "issue_comment_url": {
+ "type": {
"type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "User"
]
},
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "issues_url": {
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "keys_url": {
+ "user_view_type": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
},
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
+ "node_id": {
+ "type": "string"
},
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
+ "name": {
+ "type": "string"
},
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
+ "slug": {
+ "type": "string"
},
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "description": {
+ "type": [
+ "string",
+ "null"
]
},
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
+ "privacy": {
+ "type": "string"
},
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
+ "notification_setting": {
+ "type": "string"
},
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
+ "permission": {
+ "type": "string"
},
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
]
},
- "statuses_url": {
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
+ "format": "uri"
},
- "subscribers_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "subscription_url": {
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
+ "format": "uri"
},
- "tags_url": {
+ "type": {
+ "description": "The ownership type of the team",
"type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
+ 37
]
},
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ 42
]
},
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
+ "url",
+ "members_url",
"name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
]
}
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
+ }
}
}
}
@@ -707233,16 +755039,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -707259,9 +755061,9 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve",
- "title": "Request a CVE for a repository security advisory",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories",
+ "title": "List repository security advisories",
"category": "security-advisories",
"subcategory": "repository-advisories",
"parameters": [
@@ -707284,112 +755086,82 @@
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
- "in": "path",
- "required": true,
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see \"Requesting a CVE identification number .\"
\nYou may request a CVE for public repositories, but cannot do so for private repositories.
\nIn order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ghsa_id": "GHSA_ID"
- }
- },
- "response": {
- "statusCode": "202",
- "contentType": "application/json",
- "description": "Accepted
",
- "example": null,
- "schema": {
- "type": "object"
- }
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "published"
+ ],
+ "default": "created"
+ }
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "write"
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
}
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks",
- "title": "Create a temporary private fork",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
- "parameters": [
+ },
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
"schema": {
"type": "string"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "per_page",
+ "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 30
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
- "in": "path",
- "required": true,
+ "name": "state",
+ "description": "Filter by state of the repository advisories. Only advisories of this state will be returned.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "triage",
+ "draft",
+ "published",
+ "closed"
+ ]
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Create a temporary private fork to collaborate on fixing a security vulnerability in your repository.
\n Note
\n
\nForking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
\n
",
+ "descriptionHTML": "Lists security advisories in a repository.
\nThe authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
"codeExamples": [
{
"key": "default",
@@ -707398,134 +755170,23 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "ghsa_id": "GHSA_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "202",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "language": null,
- "forks_count": 9,
- "forks": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "open_issues": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "pull": true,
- "push": false,
- "admin": false
- },
- "allow_rebase_merge": true,
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
+ "example": [
+ {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -707545,138 +755206,7 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "web_commit_signoff_required": false,
- "subscribers_count": 42,
- "network_count": 0,
- "organization": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "publisher": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -707696,1015 +755226,1159 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": null
},
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
+ {
+ "ghsa_id": "GHSA-1234-5678-9012",
+ "cve_id": "CVE-2051-0000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "low",
+ "author": {
+ "login": "monauser",
+ "id": 2,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
+ "publisher": {
+ "login": "monalisa",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": false
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-1234-5678-9012"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2051-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-03T00:00:00Z",
+ "updated_at": "2020-01-04T00:00:00Z",
+ "published_at": "2020-01-04T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": {
+ "accepted": true
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
},
- "is_template": {
- "type": "boolean",
- "examples": [
- true
- ]
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 7.1
+ }
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ "cwes": [
+ {
+ "cwe_id": "CWE-456",
+ "name": "A CWE 2.0"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-456"
+ ],
+ "credits": [
+ {
+ "login": "monauser",
+ "type": "reporter"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "monauser",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "reporter",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-1234-5678-9012",
+ "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
},
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
},
- "pull": {
- "type": "boolean"
- }
+ "readOnly": true
},
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "template_repository": {
- "anyOf": [
- {
- "type": "null"
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
]
},
- "node_id": {
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
"type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "description": "The Common Weakness Enumeration (CWE) identifier."
},
"name": {
- "description": "The name of the repository.",
"type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ },
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
"type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
+ "description": "The username of the user credited."
},
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
- },
- "owner": {
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -708872,846 +756546,1809 @@
"url"
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
},
"html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
]
},
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
"description": {
"type": [
"string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories",
+ "title": "Create a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "summary",
+ "in": "body",
+ "description": "A short summary of the advisory.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A detailed description of what the advisory impacts.
",
+ "isRequired": true
+ },
+ {
+ "type": "string or null",
+ "name": "cve_id",
+ "in": "body",
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "vulnerabilities",
+ "in": "body",
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "package",
+ "description": "The name of the package affected by the vulnerability.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "ecosystem",
+ "description": "The package's language or package management ecosystem.
",
+ "isRequired": true,
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "name",
+ "description": "The unique package name within its ecosystem.
"
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "vulnerable_version_range",
+ "description": "The range of the package versions affected by the vulnerability.
"
+ },
+ {
+ "type": "string or null",
+ "name": "patched_versions",
+ "description": "The package version(s) that resolve the vulnerability.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "vulnerable_functions",
+ "description": "The functions in the package that are affected.
"
+ }
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "cwe_ids",
+ "in": "body",
+ "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ },
+ {
+ "type": "array of objects or null",
+ "name": "credits",
+ "in": "body",
+ "description": "A list of users receiving credit for their participation in the security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "login",
+ "description": "The username of the user credited.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of credit the user is receiving.
",
+ "isRequired": true,
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "severity",
+ "in": "body",
+ "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "cvss_vector_string",
+ "in": "body",
+ "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ },
+ {
+ "type": "boolean",
+ "name": "start_private_fork",
+ "in": "body",
+ "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
+ "default": false
+ }
+ ],
+ "descriptionHTML": "Creates a new repository security advisory.
\nIn order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "summary": "A new important advisory",
+ "description": "A more in-depth description of what the problem is.",
+ "severity": "high",
+ "cve_id": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "name": "a-package",
+ "ecosystem": "npm"
+ },
+ "vulnerable_version_range": "< 1.0.0",
+ "patched_versions": "1.0.0",
+ "vulnerable_functions": [
+ "important_function"
+ ]
+ }
+ ],
+ "cwe_ids": [
+ "CWE-1101",
+ "CWE-20"
+ ],
+ "credits": [
+ {
+ "login": "monalisa",
+ "type": "reporter"
+ },
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
+ }
+ },
+ "schema": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "deployments_url": {
+ "login": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "octocat"
]
},
- "downloads_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ 1
]
},
- "events_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "MDQ6VXNlcjE="
]
},
- "forks_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "labels_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "languages_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat"
]
},
- "merges_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://github.com/octocat"
]
},
- "stargazers_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/followers"
]
},
- "statuses_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "subscribers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "subscription_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "tags_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "teams_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "clone_url": {
+ "repos_url": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
"format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/repos"
]
},
- "hooks_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "svn_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ "https://api.github.com/users/octocat/received_events"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "type": {
"type": "string",
"examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "User"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
+ "site_admin": {
"type": "boolean"
},
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
+ "starred_at": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
"examples": [
- true
+ "\"2020-07-09T00:17:55Z\""
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
+ "user_view_type": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "public"
]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- ]
- },
- "temp_clone_token": {
+ ],
"type": [
- "string",
"null"
]
},
- "allow_squash_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_update_branch": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "subscribers_count": {
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "network_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "organization": {
- "anyOf": [
- {
- "type": "null"
- },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -709880,2155 +758517,1600 @@
"url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
},
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
]
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
},
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ },
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "key": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "mit"
+ "https://github.com/octocat"
]
},
- "name": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MIT License"
+ "https://api.github.com/users/octocat/followers"
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "MIT"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "node_id": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat/repos"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
},
- "push": {
- "type": "boolean"
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
},
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
]
},
- "email": {
+ "description": {
"type": [
"string",
"null"
- ]
- },
- "login": {
- "type": "string",
+ ],
+ "description": "The repository description.",
"examples": [
- "octocat"
+ "This your first repo!"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "node_id": {
+ "archive_url": {
"type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "MDQ6VXNlcjE="
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "avatar_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "url": {
+ "branches_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about branches in the repository.",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "html_url": {
+ "collaborators_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "followers_url": {
+ "comments_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about comments on the repository.",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
]
},
- "following_url": {
+ "commits_url": {
"type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
]
},
- "gists_url": {
+ "compare_url": {
"type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "starred_url": {
+ "contents_url": {
"type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "subscriptions_url": {
+ "contributors_url": {
"type": "string",
"format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "organizations_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "repos_url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
"events_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "received_events_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "type": {
+ "git_commits_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "git_refs_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "user_view_type": {
+ "git_tags_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "login": {
+ "issue_comment_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "node_id": {
+ "issues_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "MDQ6VXNlcjE="
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "avatar_url": {
+ "keys_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "url": {
+ "languages_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "html_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "followers_url": {
+ "milestones_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "following_url": {
+ "notifications_url": {
"type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "gists_url": {
+ "pulls_url": {
"type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "starred_url": {
+ "releases_url": {
"type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "subscriptions_url": {
+ "stargazers_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "organizations_url": {
+ "statuses_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "repos_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "events_url": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "received_events_url": {
+ "tags_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "type": {
+ "teams_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "trees_url": {
"type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "user_view_type": {
+ "hooks_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "forks": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
- ]
- },
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
- }
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ ],
+ "type": [
+ "null"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
+ "ghsa_id",
+ "cve_id",
"url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
"created_at",
"updated_at",
- "network_count",
- "subscribers_count"
- ]
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "403",
@@ -712050,27 +760132,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "read",
- "\"Administration\" repository permissions": "write"
+ "\"Repository security advisories\" repository permissions": "write"
}
]
}
- }
- ]
- },
- "teams": {
- "teams": [
+ },
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams",
- "title": "List teams",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/reports",
+ "title": "Privately report a security vulnerability",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -712078,171 +760155,1091 @@
}
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "summary",
+ "in": "body",
+ "description": "A short summary of the advisory.
",
+ "isRequired": true
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A detailed description of what the advisory impacts.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects or null",
+ "name": "vulnerabilities",
+ "in": "body",
+ "description": "An array of products affected by the vulnerability detailed in a repository security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "package",
+ "description": "The name of the package affected by the vulnerability.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "ecosystem",
+ "description": "The package's language or package management ecosystem.
",
+ "isRequired": true,
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "name",
+ "description": "The unique package name within its ecosystem.
"
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "vulnerable_version_range",
+ "description": "The range of the package versions affected by the vulnerability.
"
+ },
+ {
+ "type": "string or null",
+ "name": "patched_versions",
+ "description": "The package version(s) that resolve the vulnerability.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "vulnerable_functions",
+ "description": "The functions in the package that are affected.
"
+ }
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "cwe_ids",
+ "in": "body",
+ "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ },
+ {
+ "type": "string or null",
+ "name": "severity",
+ "in": "body",
+ "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "cvss_vector_string",
+ "in": "body",
+ "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ },
+ {
+ "type": "boolean",
+ "name": "start_private_fork",
+ "in": "body",
+ "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
+ "default": false
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists all teams in an organization that are visible to the authenticated user.
",
+ "descriptionHTML": "Report a security vulnerability to the maintainers of the repository.\nSee \"Privately reporting a security vulnerability \" for more information about private vulnerability reporting.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "summary": "A newly discovered vulnerability",
+ "description": "A more in-depth description of what the problem is.",
+ "severity": "high",
+ "vulnerabilities": [
+ {
+ "package": {
+ "name": "a-package",
+ "ecosystem": "npm"
+ },
+ "vulnerable_version_range": "< 1.0.0",
+ "patched_versions": "1.0.0",
+ "vulnerable_functions": [
+ "important_function"
+ ]
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ]
+ },
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
+ "example": {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A newly discovered vulnerability",
+ "description": "A more in-depth description of what the problem is.",
+ "severity": "high",
+ "author": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": null,
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": null
+ }
+ ],
+ "state": "triage",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": null,
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": {
+ "accepted": false
+ },
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "npm",
+ "name": "a-package"
},
- "slug": {
- "type": "string"
+ "vulnerable_version_range": "< 1.0.0",
+ "patched_versions": "1.0.0",
+ "vulnerable_functions": [
+ "important_function"
+ ]
+ }
+ ],
+ "cvss": null,
+ "cvss_severities": {
+ "cvss_v3": null,
+ "cvss_v4": null
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "finder"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "description": {
- "type": [
- "string",
- "null"
+ "type": "finder",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": null
+ },
+ "schema": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
]
},
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- "permissions": {
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
},
- "push": {
- "type": "boolean"
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
},
- "maintain": {
- "type": "boolean"
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
},
- "admin": {
- "type": "boolean"
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "members_url": {
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
"type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -712250,2879 +761247,1628 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
]
}
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/orgs/{org}/teams",
- "title": "Create a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the team.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "The description of the team.
"
- },
- {
- "type": "array of strings",
- "name": "maintainers",
- "in": "body",
- "description": "List GitHub usernames for organization members who will become team maintainers.
"
- },
- {
- "type": "array of strings",
- "name": "repo_names",
- "in": "body",
- "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
"
- },
- {
- "type": "string",
- "name": "privacy",
- "in": "body",
- "description": "The level of privacy this team should have. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nDefault: secret \nFor a parent or child team: \nclosed - visible to all members of this organization. \nDefault for child team: closed \n ",
- "enum": [
- "secret",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "notification_setting",
- "in": "body",
- "description": "The notification setting the team has chosen. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \nDefault: notifications_enabled \n ",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ]
- },
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
- "enum": [
- "pull",
- "push"
- ],
- "default": "pull"
- },
- {
- "type": "integer",
- "name": "parent_team_id",
- "in": "body",
- "description": "The ID of a team to set as the parent team.
"
- }
- ],
- "descriptionHTML": "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 .\"
\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of maintainers. For more information, see \"About teams \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "Justice League",
- "description": "A great team",
- "permission": "push",
- "notification_setting": "notifications_enabled",
- "privacy": "closed"
- },
- "parameters": {
- "org": "ORG"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
},
- "description": {
+ "collaborating_users": {
"type": [
- "string",
+ "array",
"null"
],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
},
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
"examples": [
- 1
+ 1296269
]
},
"node_id": {
"type": "string",
+ "description": "The GraphQL identifier of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "url": {
- "description": "URL for the team",
+ "name": {
"type": "string",
- "format": "uri",
+ "description": "The name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "Hello-World"
]
},
- "members_url": {
+ "full_name": {
"type": "string",
+ "description": "The full, globally unique, name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "octocat/Hello-World"
]
},
- "name": {
- "description": "Name of the team",
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "Justice League"
+ "https://github.com/octocat/Hello-World"
]
},
"description": {
- "description": "Description of the team",
"type": [
"string",
"null"
],
+ "description": "The repository description.",
"examples": [
- "A great team."
+ "This your first repo!"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "archive_url": {
"type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "html_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "repositories_url": {
+ "blobs_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "slug": {
+ "branches_url": {
"type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "collaborators_url": {
"type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "comments_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "description": "A template for the API URL to get information about comments on the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}",
- "title": "Get a team by name",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a team using the team's slug. To create the slug, GitHub replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator. For example, \"My TEam Näme\" would become my-team-name.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "node_id": {
+ "contents_url": {
"type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "url": {
- "description": "URL for the team",
+ "contributors_url": {
"type": "string",
"format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "members_url": {
+ "deployments_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "name": {
- "description": "Name of the team",
+ "downloads_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "events_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "forks_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "git_commits_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "html_url": {
+ "git_refs_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "repositories_url": {
+ "git_tags_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "slug": {
+ "issue_comment_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "issue_events_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "issues_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/teams/{team_slug}",
- "title": "Update a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the team.
"
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "The description of the team.
"
- },
- {
- "type": "string",
- "name": "privacy",
- "in": "body",
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. When a team is nested, the privacy for parent teams cannot be secret. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
- "enum": [
- "secret",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "notification_setting",
- "in": "body",
- "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ]
- },
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- {
- "type": "integer or null",
- "name": "parent_team_id",
- "in": "body",
- "description": "The ID of a team to set as the parent team.
"
- }
- ],
- "descriptionHTML": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response when the updated information already exists
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "node_id": {
+ "languages_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "https://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "url": {
- "description": "URL for the team",
+ "merges_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "members_url": {
+ "milestones_url": {
"type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "name": {
- "description": "Name of the team",
+ "notifications_url": {
"type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "Justice League"
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "A great team."
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "releases_url": {
"type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "stargazers_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "statuses_url": {
"type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "html_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "repositories_url": {
+ "subscription_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "slug": {
+ "tags_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "teams_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "trees_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
]
}
},
"required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
"description",
- "permission",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
- },
- "seats": {
- "type": "integer"
- }
- },
- "required": [
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
}
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ ],
+ "type": [
+ "null"
]
}
},
"required": [
- "id",
- "node_id",
+ "ghsa_id",
+ "cve_id",
"url",
- "members_url",
- "name",
- "description",
- "permission",
"html_url",
- "repositories_url",
- "slug",
- "type",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
"created_at",
"updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
+ "title": "Get a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
+ {
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nAnyone can access any published security advisory on a public repository.
\nThe authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a\ncollaborator on the security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
+ "codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
- },
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
}
},
"schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "description": "A repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
+ "ghsa_id": {
"type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
+ "description": "The API URL for the advisory.",
+ "readOnly": true
},
"html_url": {
"type": "string",
"format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
+ "description": "The URL for the advisory.",
+ "readOnly": true
},
- "slug": {
+ "summary": {
"type": "string",
- "examples": [
- "justice-league"
- ]
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
},
"description": {
"type": [
"string",
"null"
],
- "examples": [
- "A great team."
- ]
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
},
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
+ "severity": {
+ "type": [
+ "string",
+ "null"
],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
+ "description": "The severity of the advisory.",
"enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -715130,897 +762876,883 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
"name": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
- "space": {
- "type": "integer"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response when the updated information already exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}",
- "title": "Delete a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "To delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos",
- "title": "List team repositories",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists a team's repositories visible to the authenticated user.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
},
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
},
- "secret_scanning_push_protection": {
- "status": "disabled"
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- "secret_scanning_non_provider_patterns": {
- "status": "disabled"
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
}
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
},
- "owner": {
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -716187,663 +763919,861 @@
"type",
"url"
]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "id": {
+ "type": "integer"
},
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
+ "node_id": {
+ "type": "string"
},
"name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
+ "type": "string"
},
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
+ "slug": {
+ "type": "string"
},
- "html_url": {
+ "description": {
"type": [
"string",
"null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
+ ]
},
- "name": {
+ "privacy": {
"type": "string"
},
- "spdx_id": {
+ "notification_setting": {
"type": "string"
},
- "url": {
+ "permission": {
"type": "string"
},
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "permissions": {
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
}
- }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
},
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
},
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "members_url": {
+ "type": "string"
},
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
},
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
},
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
- }
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
}
@@ -716852,6 +764782,14 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -716861,22 +764799,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Repository security advisories\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "title": "Check team permissions for a repository",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
+ "title": "Update a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -716884,8 +764822,8 @@
}
},
{
- "name": "team_slug",
- "description": "The slug of the team name.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -716893,49 +764831,203 @@
}
},
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "summary",
+ "in": "body",
+ "description": "A short summary of the advisory.
"
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A detailed description of what the advisory impacts.
"
+ },
+ {
+ "type": "string or null",
+ "name": "cve_id",
+ "in": "body",
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "vulnerabilities",
+ "in": "body",
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "package",
+ "description": "The name of the package affected by the vulnerability.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "ecosystem",
+ "description": "The package's language or package management ecosystem.
",
+ "isRequired": true,
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "name",
+ "description": "The unique package name within its ecosystem.
"
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "vulnerable_version_range",
+ "description": "The range of the package versions affected by the vulnerability.
"
+ },
+ {
+ "type": "string or null",
+ "name": "patched_versions",
+ "description": "The package version(s) that resolve the vulnerability.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "vulnerable_functions",
+ "description": "The functions in the package that are affected.
"
+ }
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "cwe_ids",
+ "in": "body",
+ "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ },
+ {
+ "type": "array of objects or null",
+ "name": "credits",
+ "in": "body",
+ "description": "A list of users receiving credit for their participation in the security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "login",
+ "description": "The username of the user credited.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of credit the user is receiving.
",
+ "isRequired": true,
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "severity",
+ "in": "body",
+ "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "cvss_vector_string",
+ "in": "body",
+ "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ },
+ {
+ "type": "string",
+ "name": "state",
+ "in": "body",
+ "description": "The state of the advisory.
",
+ "enum": [
+ "published",
+ "closed",
+ "draft"
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "collaborating_users",
+ "in": "body",
+ "description": "A list of usernames who have been granted write access to the advisory.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "collaborating_teams",
+ "in": "body",
+ "description": "A list of team slugs which have been granted write access to the advisory.
"
}
],
- "bodyParameters": [],
- "descriptionHTML": "Checks whether a team has admin, push, maintain, triage, or pull permission for a repository. Repositories inherited through a parent team will also be checked.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the application/vnd.github.v3.repository+json accept header.
\nIf a team doesn't have permission for the repository, you will receive a 404 Not Found response status.
\nIf the repository is private, you must have at least read permission for that repository, and your token must have the repo or admin:org scope. Otherwise, you will receive a 404 Not Found response status.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
+ "descriptionHTML": "Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nIn order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,\nor a collaborator on the repository security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
"codeExamples": [
{
- "key": "alternative-response-with-repository-permissions",
+ "key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Updating the severity and state.",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "severity": "critical",
+ "state": "published"
+ },
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Alternative response with repository permissions
",
+ "description": "Response
",
"example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -716955,238 +765047,465 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "maintain": false,
- "push": false,
- "triage": false,
- "pull": true
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
},
- "role_name": "read",
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
+ }
},
"schema": {
- "title": "Team Repository",
- "description": "A team's access to a repository.",
+ "description": "A repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "examples": [
- 42
- ]
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
},
- "node_id": {
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
"type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
},
- "name": {
- "description": "The name of the repository.",
+ "html_url": {
"type": "string",
- "examples": [
- "Team Environment"
- ]
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
},
- "full_name": {
+ "summary": {
"type": "string",
- "examples": [
- "octocat/Hello-World"
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
]
},
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
{
- "title": "License Simple",
- "description": "License Simple",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "key": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "mit"
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "MIT License"
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "avatar_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "spdx_id": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "MIT"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat"
]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "owner": {
- "anyOf": [
- {
- "type": "null"
- },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -717355,1019 +765674,387 @@
"url"
]
}
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
+ ],
"type": [
- "string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "readOnly": true
},
- "clone_url": {
+ "state": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
]
},
- "mirror_url": {
+ "created_at": {
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
},
- "homepage": {
+ "updated_at": {
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
},
- "language": {
+ "published_at": {
"type": [
"string",
"null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
},
- "pushed_at": {
+ "closed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
},
- "created_at": {
+ "withdrawn_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
},
- "updated_at": {
+ "submission": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "accepted"
]
},
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Alternative response with repository permissions
"
- },
- {
- "httpStatusCode": "204",
- "description": "Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header.
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if team does not have permission for the repository
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "title": "Add or update team repository permissions",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "The permission to grant the team on this repository. We accept the following permissions to be set: pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
"
- }
- ],
- "descriptionHTML": "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. 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 method .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
\nFor more information about the permission levels, see \"Repository permission levels for an organization \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Adding a team to an organization repository with the write role",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "permission": "push"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "title": "Remove a repository from a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "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. This does not delete the repository, it just removes it from the team.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/teams",
- "title": "List child teams",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists the child teams of the team specified by {team_slug}.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/teams.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "if child teams exist
",
- "example": [
- {
- "id": 2,
- "node_id": "MDQ6VGVhbTI=",
- "url": "https://api.github.com/teams/2",
- "name": "Original Roster",
- "slug": "original-roster",
- "description": "Started it all.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/2/members{/member}",
- "repositories_url": "https://api.github.com/teams/2/repos",
- "parent": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- },
- "html_url": "https://github.com/orgs/rails/teams/core"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
},
- "push": {
- "type": "boolean"
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
},
- "maintain": {
- "type": "boolean"
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
},
- "admin": {
- "type": "boolean"
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "members_url": {
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
"type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -718375,1980 +766062,1567 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
]
}
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "if child teams exist
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}",
- "title": "Get a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the Get a team by name endpoint.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
},
- "description": {
+ "collaborating_users": {
"type": [
- "string",
+ "array",
"null"
],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
},
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
"examples": [
- 1
+ 1296269
]
},
"node_id": {
"type": "string",
+ "description": "The GraphQL identifier of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "url": {
- "description": "URL for the team",
+ "name": {
"type": "string",
- "format": "uri",
+ "description": "The name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "Hello-World"
]
},
- "members_url": {
+ "full_name": {
"type": "string",
+ "description": "The full, globally unique, name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "octocat/Hello-World"
]
},
- "name": {
- "description": "Name of the team",
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "Justice League"
+ "https://github.com/octocat/Hello-World"
]
},
"description": {
- "description": "Description of the team",
"type": [
"string",
"null"
],
+ "description": "The repository description.",
"examples": [
- "A great team."
+ "This your first repo!"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "archive_url": {
"type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "assignees_url": {
"type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "html_url": {
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "repositories_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "slug": {
+ "downloads_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "events_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "forks_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
},
- "space": {
- "type": "integer"
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/teams/{team_id}",
- "title": "Update a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the team.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "The description of the team.
"
- },
- {
- "type": "string",
- "name": "privacy",
- "in": "body",
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
- "enum": [
- "secret",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "notification_setting",
- "in": "body",
- "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ]
- },
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- {
- "type": "integer or null",
- "name": "parent_team_id",
- "in": "body",
- "description": "The ID of a team to set as the parent team.
"
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a team endpoint.
\n
\nTo edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nWith nested teams, the privacy for parent teams cannot be secret.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
- },
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response when the updated information already exists
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "node_id": {
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
"type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "https://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "url": {
- "description": "URL for the team",
+ "merges_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "members_url": {
+ "milestones_url": {
"type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "name": {
- "description": "Name of the team",
+ "notifications_url": {
"type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "Justice League"
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "A great team."
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "releases_url": {
"type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "stargazers_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "statuses_url": {
"type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "html_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "repositories_url": {
+ "subscription_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "slug": {
+ "tags_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "teams_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "trees_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
]
}
},
"required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
"description",
- "permission",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
- },
- "seats": {
- "type": "integer"
- }
- },
- "required": [
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
}
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ ],
+ "type": [
+ "null"
]
}
},
"required": [
- "id",
- "node_id",
+ "ghsa_id",
+ "cve_id",
"url",
- "members_url",
- "name",
- "description",
- "permission",
"html_url",
- "repositories_url",
- "slug",
- "type",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
"created_at",
"updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
},
{
- "key": "default",
+ "key": "add_credit",
"request": {
"contentType": "application/json",
- "description": "Example 2: Status Code 201",
+ "description": "To add a credit to an advisory, send the whole array of values.",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
+ "credits": [
+ {
+ "login": "monauser",
+ "type": "remediation_developer"
+ }
+ ]
},
"parameters": {
- "team_id": "TEAM_ID"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
}
},
"schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "description": "A repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
+ "ghsa_id": {
"type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
+ "description": "The API URL for the advisory.",
+ "readOnly": true
},
"html_url": {
"type": "string",
"format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
+ "description": "The URL for the advisory.",
+ "readOnly": true
},
- "slug": {
+ "summary": {
"type": "string",
- "examples": [
- "justice-league"
- ]
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
},
"description": {
"type": [
"string",
"null"
],
- "examples": [
- "A great team."
- ]
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
},
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
+ "severity": {
+ "type": [
+ "string",
+ "null"
],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
+ "description": "The severity of the advisory.",
"enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -720356,885 +767630,883 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
"name": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
- "space": {
- "type": "integer"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "seats": {
- "type": "integer"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
}
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response when the updated information already exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/teams/{team_id}",
- "title": "Delete a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a team endpoint.
\n
\nTo delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/repos",
- "title": "List team repositories (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List team repositories endpoint.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ ],
+ "type": [
+ "null"
+ ]
},
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
},
- "secret_scanning_push_protection": {
- "status": "disabled"
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- "secret_scanning_non_provider_patterns": {
- "status": "disabled"
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
}
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
},
- "owner": {
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -721401,663 +768673,861 @@
"type",
"url"
]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "id": {
+ "type": "integer"
},
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
+ "node_id": {
+ "type": "string"
},
"name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
+ "type": "string"
},
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
+ "slug": {
+ "type": "string"
},
- "html_url": {
+ "description": {
"type": [
"string",
"null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
+ ]
},
- "name": {
+ "privacy": {
"type": "string"
},
- "spdx_id": {
+ "notification_setting": {
"type": "string"
},
- "url": {
+ "permission": {
"type": "string"
},
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "permissions": {
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
}
- }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
},
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
},
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "members_url": {
+ "type": "string"
},
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
},
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
},
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
- }
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
}
@@ -722067,9 +769537,17 @@
"httpStatusCode": "200",
"description": "OK
"
},
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -722079,28 +769557,114 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Repository security advisories\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "title": "Check team permissions for a repository (Legacy)",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve",
+ "title": "Request a CVE for a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see \"Requesting a CVE identification number .\"
\nYou may request a CVE for public repositories, but cannot do so for private repositories.
\nIn order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Accepted
",
+ "example": null,
+ "schema": {
+ "type": "object"
+ }
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks",
+ "title": "Create a temporary private fork",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
{
"name": "owner",
"description": "The account owner of the repository. The name is not case sensitive.
",
@@ -722118,26 +769682,35 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\n
\n Note
\n
\nRepositories inherited through a parent team will also 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 via the Accept header:
",
+ "descriptionHTML": "Create a temporary private fork to collaborate on fixing a security vulnerability in your repository.
\n Note
\n
\nForking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
\n
",
"codeExamples": [
{
- "key": "alternative-response-with-extra-repository-information",
+ "key": "default",
"request": {
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "team_id": "TEAM_ID",
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "202",
"contentType": "application/json",
- "description": "Alternative response with extra repository information
",
+ "description": "Response
",
"example": {
"id": 1296269,
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
@@ -722210,13 +769783,24 @@
"hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
"svn_url": "https://svn.github.com/octocat/Hello-World",
"homepage": "https://github.com",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
"language": null,
"forks_count": 9,
+ "forks": 9,
"stargazers_count": 80,
"watchers_count": 80,
+ "watchers": 80,
"size": 108,
"default_branch": "master",
"open_issues_count": 0,
+ "open_issues": 0,
"is_template": false,
"topics": [
"octocat",
@@ -722236,62 +769820,2134 @@
"created_at": "2011-01-26T19:01:12Z",
"updated_at": "2011-01-26T19:14:43Z",
"permissions": {
- "admin": false,
- "maintain": false,
+ "pull": true,
"push": false,
- "triage": false,
- "pull": true
+ "admin": false
},
- "role_name": "read",
"allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
"temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
"allow_squash_merge": true,
"allow_auto_merge": false,
"delete_branch_on_merge": true,
"allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
"subscribers_count": 42,
"network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
},
"schema": {
- "title": "Team Repository",
- "description": "A team's access to a repository.",
+ "title": "Full Repository",
+ "description": "Full Repository",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the repository",
"type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
+ ]
+ },
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "allow_squash_merge": {
+ "type": "boolean",
"examples": [
- 42
+ true
]
},
- "node_id": {
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
"type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "PR_TITLE"
]
},
- "name": {
- "description": "The name of the repository.",
+ "squash_merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
"examples": [
- "Team Environment"
+ "PR_BODY"
]
},
- "full_name": {
+ "merge_commit_title": {
"type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
"examples": [
- "octocat/Hello-World"
+ "PR_TITLE"
+ ]
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
},
"license": {
@@ -722356,46 +772012,1253 @@
}
]
},
- "forks": {
- "type": "integer"
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "permissions": {
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "admin": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
"type": "boolean"
},
- "pull": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
"type": "boolean"
},
- "triage": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "push": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
"type": "boolean"
},
- "maintain": {
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
"type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "owner": {
- "anyOf": [
- {
- "type": "null"
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -722562,1978 +773425,915 @@
"type",
"url"
]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "forks": {
+ "type": "integer"
},
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "master_branch": {
+ "type": "string"
},
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "open_issues": {
+ "type": "integer"
},
- "has_pages": {
- "type": "boolean"
+ "watchers": {
+ "type": "integer"
},
- "has_downloads": {
- "description": "Whether downloads are enabled.",
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
"default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
"type": "boolean"
},
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
]
},
- "updated_at": {
+ "security_and_analysis": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Alternative response with extra repository information
"
- },
- {
- "httpStatusCode": "204",
- "description": "Response if repository is managed by this team
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if repository is not managed by this team
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "title": "Add or update team repository permissions (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin"
- ]
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions \" endpoint.
\n
\nTo 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.
\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 method .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example of setting permission to pull",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "permission": "push"
- },
- "parameters": {
- "team_id": "TEAM_ID",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "title": "Remove a repository from a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\n
\nIf 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.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/teams",
- "title": "List child teams (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List child teams endpoint.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "if child teams exist
",
- "example": [
- {
- "id": 2,
- "node_id": "MDQ6VGVhbTI=",
- "url": "https://api.github.com/teams/2",
- "name": "Original Roster",
- "slug": "original-roster",
- "description": "Started it all.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/2/members{/member}",
- "repositories_url": "https://api.github.com/teams/2/repos",
- "parent": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- },
- "html_url": "https://github.com/orgs/rails/teams/core"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
},
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "if child teams exist
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/user/teams",
- "title": "List teams for the authenticated user",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List all of the teams across all of the organizations to which the authenticated\nuser belongs.
\nOAuth app tokens and personal access tokens (classic) need the user, repo, or read:org scope to use this endpoint.
\nWhen using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
- },
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
},
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
}
},
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "202",
+ "description": "Accepted
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
},
{
"httpStatusCode": "403",
@@ -724542,26 +774342,36 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": false,
+ "serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "read",
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
}
}
- ],
- "discussion-comments": [
+ ]
+ },
+ "teams": {
+ "teams": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
- "title": "List discussion comments",
+ "requestPath": "/orgs/{org}/teams",
+ "title": "List teams",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -724572,38 +774382,6 @@
"type": "string"
}
},
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
{
"name": "per_page",
"description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
@@ -724624,7 +774402,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "List all comments on a team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Lists all teams in an organization that are visible to the authenticated user.
",
"codeExamples": [
{
"key": "default",
@@ -724632,9 +774410,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "org": "ORG"
}
},
"response": {
@@ -724643,89 +774419,135 @@
"description": "Response
",
"example": [
{
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -724733,281 +774555,141 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
- },
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Do you like apples?
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
- "updated_at",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
]
}
}
@@ -725018,6 +774700,10 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
}
],
"previews": [],
@@ -725027,7 +774713,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
@@ -725035,10 +774721,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "post",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
- "title": "Create a discussion comment",
+ "requestPath": "/orgs/{org}/teams",
+ "title": "Create a team",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -725048,36 +774734,73 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [
{
"type": "string",
- "name": "body",
+ "name": "name",
"in": "body",
- "description": "The discussion comment's body text.
",
+ "description": "The name of the team.
",
"isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "The description of the team.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "maintainers",
+ "in": "body",
+ "description": "List GitHub usernames for organization members who will become team maintainers.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "repo_names",
+ "in": "body",
+ "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
"
+ },
+ {
+ "type": "string",
+ "name": "privacy",
+ "in": "body",
+ "description": "The level of privacy this team should have. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nDefault: secret \nFor a parent or child team: \nclosed - visible to all members of this organization. \nDefault for child team: closed \n ",
+ "enum": [
+ "secret",
+ "closed"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "notification_setting",
+ "in": "body",
+ "description": "The notification setting the team has chosen. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \nDefault: notifications_enabled \n ",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
+ "enum": [
+ "pull",
+ "push"
+ ],
+ "default": "pull"
+ },
+ {
+ "type": "integer",
+ "name": "parent_team_id",
+ "in": "body",
+ "description": "The ID of a team to set as the parent team.
"
}
],
- "descriptionHTML": "Creates a new comment on a team discussion.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "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 .\"
\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of maintainers. For more information, see \"About teams \".
",
"codeExamples": [
{
"key": "default",
@@ -725086,12 +774809,14 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "body": "Do you like apples?"
+ "name": "Justice League",
+ "description": "A great team",
+ "permission": "push",
+ "notification_setting": "notifications_enabled",
+ "privacy": "closed"
},
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "org": "ORG"
}
},
"response": {
@@ -725099,536 +774824,164 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "body": {
- "description": "The main text of the comment.",
+ "node_id": {
"type": "string",
"examples": [
- "I agree with this suggestion."
+ "MDQ6VGVhbTE="
]
},
- "body_html": {
+ "url": {
+ "description": "URL for the team",
"type": "string",
+ "format": "uri",
"examples": [
- "Do you like apples?
"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "created_at": {
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "justice-league"
]
},
- "last_edited_at": {
+ "description": {
"type": [
"string",
"null"
],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
+ "A great team."
]
},
- "html_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
- "format": "uri",
+ "enum": [
+ "closed",
+ "secret"
+ ],
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
+ "closed"
]
},
- "node_id": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
"examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
+ "notifications_enabled"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
"examples": [
- 42
+ "push"
]
},
- "updated_at": {
+ "members_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
- "node_id",
- "number",
- "updated_at",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Get a discussion comment",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a specific comment on a team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
- "type": "object",
- "properties": {
- "author": {
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -725636,281 +774989,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -725918,8 +775569,16 @@
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -725929,18 +775588,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Update a discussion comment",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/teams/{team_slug}",
+ "title": "Get a team by name",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -725959,51 +775618,19 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion comment's body text.
",
- "isRequired": true
}
],
- "descriptionHTML": "Edits the body text of a discussion comment.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a team using the team's slug. To create the slug, GitHub replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator. For example, \"My TEam Näme\" would become my-team-name.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Do you like pineapples?"
- },
"parameters": {
"org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
@@ -726011,86 +775638,164 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like pineapples?",
- "body_html": "Do you like pineapples?
",
- "body_version": "e6907b24d9c93cc0c5024a7af5888116",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -726098,281 +775803,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -726382,6 +776385,10 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -726391,18 +776398,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Delete a discussion comment",
+ "verb": "patch",
+ "requestPath": "/orgs/{org}/teams/{team_slug}",
+ "title": "Update a team",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -726421,669 +776428,242 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Deletes a comment on a team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
}
],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments",
- "title": "List discussion comments (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
+ "bodyParameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the team.
"
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "The description of the team.
"
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
+ "type": "string",
+ "name": "privacy",
+ "in": "body",
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. When a team is nested, the privacy for parent teams cannot be secret. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
+ "enum": [
+ "secret",
+ "closed"
+ ]
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "string",
+ "name": "notification_setting",
+ "in": "body",
+ "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ]
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List discussion comments endpoint.
\n
\nList all comments on a team discussion.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Do you like apples?
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
- "node_id",
- "number",
- "updated_at",
- "url"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments",
- "title": "Create a discussion comment (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
+ "enum": [
+ "pull",
+ "push",
+ "admin"
+ ],
+ "default": "pull"
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
+ "type": "integer or null",
+ "name": "parent_team_id",
"in": "body",
- "description": "The discussion comment's body text.
",
- "isRequired": true
+ "description": "The ID of a team to set as the parent team.
"
}
],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Create a discussion comment endpoint.
\n
\nCreates a new comment on a team discussion.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example 1: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "body": "Do you like apples?"
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
},
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Response when the updated information already exists
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -727091,891 +776671,763 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Get a discussion comment (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
},
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Get a discussion comment endpoint.
\n
\nGet a specific comment on a team discussion.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
{
"key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
+ },
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "body": {
- "description": "The main text of the comment.",
+ "node_id": {
"type": "string",
"examples": [
- "I agree with this suggestion."
+ "MDQ6VGVhbTE="
]
},
- "body_html": {
+ "url": {
+ "description": "URL for the team",
"type": "string",
+ "format": "uri",
"examples": [
- "Do you like apples?
"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "created_at": {
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "justice-league"
]
},
- "last_edited_at": {
+ "description": {
"type": [
"string",
"null"
],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
+ "A great team."
]
},
- "html_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
- "format": "uri",
+ "enum": [
+ "closed",
+ "secret"
+ ],
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
+ "closed"
]
},
- "node_id": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
"examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
+ "notifications_enabled"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
"examples": [
- 42
+ "push"
]
},
- "updated_at": {
+ "members_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
- "node_id",
- "number",
- "updated_at",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Update a discussion comment (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion comment's body text.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a discussion comment endpoint.
\n
\nEdits the body text of a discussion comment.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Do you like pineapples?"
- },
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like pineapples?",
- "body_html": "Do you like pineapples?
",
- "body_version": "e6907b24d9c93cc0c5024a7af5888116",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
- "type": "object",
- "properties": {
- "author": {
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -727983,281 +777435,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -728266,7 +778016,23 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Response when the updated information already exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -728276,7 +778042,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "write"
}
]
}
@@ -728284,41 +778050,32 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Delete a discussion comment (Legacy)",
+ "requestPath": "/orgs/{org}/teams/{team_slug}",
+ "title": "Delete a team",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
+ "name": "team_slug",
+ "description": "The slug of the team name.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a discussion comment endpoint.
\n
\nDeletes a comment on a team discussion.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "To delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}.
\n
",
"codeExamples": [
{
"key": "default",
@@ -728326,9 +778083,8 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
@@ -728350,20 +778106,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "write"
}
]
}
- }
- ],
- "discussions": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions",
- "title": "List discussions",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos",
+ "title": "List team repositories",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -728383,20 +778137,6 @@
"type": "string"
}
},
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
{
"name": "per_page",
"description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
@@ -728414,19 +778154,10 @@
"type": "integer",
"default": 1
}
- },
- {
- "name": "pinned",
- "in": "query",
- "required": false,
- "description": "Pinned discussions only filter
",
- "schema": {
- "type": "string"
- }
}
],
"bodyParameters": [],
- "descriptionHTML": "List all discussions on a team's page.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Lists a team's repositories visible to the authenticated user.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos.
\n
",
"codeExamples": [
{
"key": "default",
@@ -728444,7 +778175,11 @@
"description": "Response
",
"example": [
{
- "author": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -728464,394 +778199,956 @@
"type": "User",
"site_admin": false
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
"private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
+ },
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_non_provider_patterns": {
+ "status": "disabled"
+ }
}
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
"type": "object",
"properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "https://github.com/octocat/Hello-World"
]
},
- "body_html": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "archive_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "comments_count": {
- "type": "integer",
+ "assignees_url": {
+ "type": "string",
"examples": [
- 0
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "created_at": {
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
"type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
]
},
- "last_edited_at": {
+ "license": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time"
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
+ "forks": {
+ "type": "integer",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ 0
]
},
- "node_id": {
- "type": "string",
+ "open_issues": {
+ "type": "integer",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ 0
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
+ "watchers": {
"type": "integer",
"examples": [
- 42
+ 0
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
+ "allow_forking": {
+ "type": "boolean"
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
+ "web_commit_signoff_required": {
"type": "boolean",
"examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ false
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "laugh": {
- "type": "integer"
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "confused": {
- "type": "integer"
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "heart": {
- "type": "integer"
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "hooray": {
- "type": "integer"
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "eyes": {
- "type": "integer"
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "rocket": {
- "type": "integer"
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
}
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
"comments_url",
- "created_at",
- "last_edited_at",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url"
]
}
@@ -728872,18 +779169,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions",
- "title": "Create a discussion",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
+ "title": "Check team permissions for a repository",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -728902,54 +779199,51 @@
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
",
- "isRequired": true
},
{
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion post's body text.
",
- "isRequired": true
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "boolean",
- "name": "private",
- "in": "body",
- "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.
",
- "default": false
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
- "descriptionHTML": "Creates a new discussion post on a team's page.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route POST /organizations/{org_id}/team/{team_id}/discussions.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Checks whether a team has admin, push, maintain, triage, or pull permission for a repository. Repositories inherited through a parent team will also be checked.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the application/vnd.github.v3.repository+json accept header.
\nIf a team doesn't have permission for the repository, you will receive a 404 Not Found response status.
\nIf the repository is private, you must have at least read permission for that repository, and your token must have the repo or admin:org scope. Otherwise, you will receive a 404 Not Found response status.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
"codeExamples": [
{
- "key": "default",
+ "key": "alternative-response-with-repository-permissions",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Our first team post",
- "body": "Hi! This is an area for us to collaborate as a team."
- },
"parameters": {
"org": "ORG",
- "team_slug": "TEAM_SLUG"
+ "team_slug": "TEAM_SLUG",
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Alternative response with repository permissions
",
"example": {
- "author": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -728969,41 +779263,234 @@
"type": "User",
"site_admin": false
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
"private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "maintain": false,
+ "push": false,
+ "triage": false,
+ "pull": true
+ },
+ "role_name": "read",
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Team Repository",
+ "description": "A team's access to a repository.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "owner": {
"anyOf": [
{
"type": "null"
@@ -729178,667 +779665,596 @@
}
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "body_html": {
+ "archive_url": {
"type": "string",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "assignees_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "comments_count": {
- "type": "integer",
+ "blobs_url": {
+ "type": "string",
"examples": [
- 0
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "created_at": {
+ "deployments_url": {
"type": "string",
- "format": "date-time",
+ "format": "uri",
"examples": [
- "2018-01-25T18:56:31Z"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "node_id": {
+ "forks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
+ "git_commits_url": {
+ "type": "string",
"examples": [
- 42
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
+ "git_refs_url": {
+ "type": "string",
"examples": [
- true
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
+ "git_tags_url": {
+ "type": "string",
"examples": [
- true
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "team_url": {
+ "git_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ "git:github.com/octocat/Hello-World.git"
]
},
- "title": {
- "description": "The title of the discussion.",
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
"type": "string",
"examples": [
- "How can we improve our workflow?"
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "updated_at": {
+ "issues_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "url": {
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
- "node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "title": "Get a discussion",
- "category": "teams",
- "subcategory": "discussions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a specific discussion on a team's page.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "notifications_url": {
"type": "string",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "body_html": {
+ "pulls_url": {
"type": "string",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "releases_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "comments_count": {
- "type": "integer",
+ "ssh_url": {
+ "type": "string",
"examples": [
- 0
+ "git@github.com:octocat/Hello-World.git"
]
},
- "comments_url": {
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "created_at": {
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "https://github.com/octocat/Hello-World.git"
]
},
- "last_edited_at": {
+ "mirror_url": {
"type": [
"string",
"null"
],
- "format": "date-time"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "html_url": {
+ "hooks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "node_id": {
+ "svn_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer",
"examples": [
- 42
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
"type": "boolean",
"examples": [
true
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
"type": "boolean",
"examples": [
true
]
},
- "team_url": {
- "type": "string",
- "format": "uri",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ true
]
},
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "How can we improve our workflow?"
+ "2011-01-26T19:01:12Z"
]
},
"updated_at": {
- "type": "string",
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2011-01-26T19:14:43Z"
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ true
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
"comments_url",
- "created_at",
- "last_edited_at",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
}
}
@@ -729847,7 +780263,15 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Alternative response with repository permissions
"
+ },
+ {
+ "httpStatusCode": "204",
+ "description": "Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header.
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if team does not have permission for the repository
"
}
],
"previews": [],
@@ -729857,18 +780281,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "title": "Update a discussion",
+ "verb": "put",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
+ "title": "Add or update team repository permissions",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -729889,466 +780314,60 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
}
],
"bodyParameters": [
{
"type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
"
- },
- {
- "type": "string",
- "name": "body",
+ "name": "permission",
"in": "body",
- "description": "The discussion post's body text.
"
+ "description": "The permission to grant the team on this repository. We accept the following permissions to be set: pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
"
}
],
- "descriptionHTML": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "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. 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 method .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
\nFor more information about the permission levels, see \"Repository permission levels for an organization \".
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Adding a team to an organization repository with the write role",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "title": "Welcome to our first team post"
+ "permission": "push"
},
"parameters": {
"org": "ORG",
"team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 1,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Welcome to our first team post",
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The main text of the discussion.",
- "type": "string",
- "examples": [
- "Please suggest improvements to our workflow in comments."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Hi! This is an area for us to collaborate as a team
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "comments_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
- "node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
- ]
- }
+ "statusCode": "204",
+ "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "204",
+ "description": "No Content
"
}
],
"previews": [],
@@ -730358,7 +780377,9 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
@@ -730366,10 +780387,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "title": "Delete a discussion",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
+ "title": "Remove a repository from a team",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -730390,17 +780411,26 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Delete a discussion from a team's page.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "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. This does not delete the repository, it just removes it from the team.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
"codeExamples": [
{
"key": "default",
@@ -730410,7 +780440,8 @@
"parameters": {
"org": "ORG",
"team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
@@ -730432,7 +780463,9 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
@@ -730440,32 +780473,27 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/teams/{team_id}/discussions",
- "title": "List discussions (Legacy)",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/teams",
+ "title": "List child teams",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
+ "name": "team_slug",
+ "description": "The slug of the team name.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "type": "string"
}
},
{
@@ -730488,7 +780516,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List discussions endpoint.
\n
\nList all discussions on a team's page.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Lists the child teams of the team specified by {team_slug}.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/teams.
\n
",
"codeExamples": [
{
"key": "default",
@@ -730496,103 +780524,158 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "team_id": "TEAM_ID"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "if child teams exist
",
"example": [
{
- "author": {
- "login": "octocat",
+ "id": 2,
+ "node_id": "MDQ6VGVhbTI=",
+ "url": "https://api.github.com/teams/2",
+ "name": "Original Roster",
+ "slug": "original-roster",
+ "description": "Started it all.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/2/members{/member}",
+ "repositories_url": "https://api.github.com/teams/2/repos",
+ "parent": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos"
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "html_url": "https://github.com/orgs/rails/teams/core"
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -730600,320 +780683,141 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
- },
- "body": {
- "description": "The main text of the discussion.",
- "type": "string",
- "examples": [
- "Please suggest improvements to our workflow in comments."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Hi! This is an area for us to collaborate as a team
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "comments_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
]
}
}
@@ -730923,7 +780827,7 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "if child teams exist
"
}
],
"previews": [],
@@ -730933,18 +780837,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/teams/{team_id}/discussions",
- "title": "Create a discussion (Legacy)",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}",
+ "title": "Get a team (Legacy)",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "team_id",
@@ -730956,135 +780860,181 @@
}
}
],
- "bodyParameters": [
- {
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion post's body text.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "private",
- "in": "body",
- "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.
",
- "default": false
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Create a discussion endpoint.
\n
\nCreates a new discussion post on a team's page.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the Get a team by name endpoint.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Our first team post",
- "body": "Hi! This is an area for us to collaborate as a team."
- },
"parameters": {
"team_id": "TEAM_ID"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -731092,473 +781042,1621 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "members_count": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "repos_count": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "created_at": {
"type": "string",
+ "format": "date-time",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "2017-07-14T16:53:42Z"
]
},
- "body_html": {
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-08-17T12:37:15Z"
+ ]
+ },
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
+ },
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "login",
+ "url",
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
"type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "type": {
+ "description": "The ownership type of the team",
"type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 37
]
},
- "comments_count": {
+ "enterprise_id": {
"type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- 0
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
+ "updated_at",
+ "members_count",
+ "repos_count",
+ "organization"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/teams/{team_id}",
+ "title": "Update a team (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the team.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "The description of the team.
"
+ },
+ {
+ "type": "string",
+ "name": "privacy",
+ "in": "body",
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
+ "enum": [
+ "secret",
+ "closed"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "notification_setting",
+ "in": "body",
+ "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
+ "enum": [
+ "pull",
+ "push",
+ "admin"
+ ],
+ "default": "pull"
+ },
+ {
+ "type": "integer or null",
+ "name": "parent_team_id",
+ "in": "body",
+ "description": "The ID of a team to set as the parent team.
"
+ }
+ ],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a team endpoint.
\n
\nTo edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nWith nested teams, the privacy for parent teams cannot be secret.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
+ },
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response when the updated information already exists
",
+ "example": {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
+ "id": 1,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
+ "html_url": "https://github.com/octocat",
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
+ }
+ },
+ "schema": {
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "comments_url": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "created_at": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "justice-league"
]
},
- "last_edited_at": {
+ "description": {
"type": [
"string",
"null"
],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "A great team."
]
},
- "node_id": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "closed"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
"examples": [
- 42
+ "notifications_enabled"
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
"examples": [
- true
+ "push"
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
+ "members_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "team_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ },
+ "members_count": {
+ "type": "integer",
"examples": [
- "How can we improve our workflow?"
+ 3
]
},
- "updated_at": {
+ "repos_count": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2017-07-14T16:53:42Z"
]
},
- "url": {
+ "updated_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "title": "Get a discussion (Legacy)",
- "category": "teams",
- "subcategory": "discussions",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
},
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Get a discussion endpoint.
\n
\nGet a specific discussion on a team's page.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
{
"key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
+ },
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "team_id": "TEAM_ID"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -731566,320 +782664,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the discussion.",
- "type": "string",
- "examples": [
- "Please suggest improvements to our workflow in comments."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Hi! This is an area for us to collaborate as a team
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "comments_count": {
+ "members_count": {
"type": "integer",
"examples": [
- 0
+ 3
]
},
- "comments_url": {
- "type": "string",
- "format": "uri",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -731888,7 +783245,23 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Response when the updated information already exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -731898,18 +783271,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "title": "Update a discussion (Legacy)",
+ "verb": "delete",
+ "requestPath": "/teams/{team_id}",
+ "title": "Delete a team (Legacy)",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "team_id",
@@ -731919,53 +783292,1169 @@
"schema": {
"type": "integer"
}
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a team endpoint.
\n
\nTo delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}/repos",
+ "title": "List team repositories (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
- }
- ],
- "bodyParameters": [
+ },
{
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
"
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
},
{
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion post's body text.
"
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
}
],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a discussion endpoint.
\n
\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List team repositories endpoint.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
"contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
+ },
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_non_provider_patterns": {
+ "status": "disabled"
+ }
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
+ "title": "Check team permissions for a repository (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\n
\n Note
\n
\nRepositories inherited through a parent team will also 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 via the Accept header:
",
+ "codeExamples": [
+ {
+ "key": "alternative-response-with-extra-repository-information",
+ "request": {
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Welcome to our first team post"
- },
"parameters": {
"team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Alternative response with extra repository information
",
"example": {
- "author": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -731985,41 +784474,234 @@
"type": "User",
"site_admin": false
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 1,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Welcome to our first team post",
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "maintain": false,
+ "push": false,
+ "triage": false,
+ "pull": true
+ },
+ "role_name": "read",
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Team Repository",
+ "description": "A team's access to a repository.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "owner": {
"anyOf": [
{
"type": "null"
@@ -732194,183 +784876,596 @@
}
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "https://github.com/octocat/Hello-World"
]
},
- "body_html": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
"type": "string",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "assignees_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "comments_count": {
- "type": "integer",
+ "blobs_url": {
+ "type": "string",
"examples": [
- 0
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "created_at": {
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "https://github.com/octocat/Hello-World.git"
]
},
- "last_edited_at": {
+ "mirror_url": {
"type": [
"string",
"null"
],
- "format": "date-time"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "html_url": {
+ "hooks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "node_id": {
+ "svn_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer",
"examples": [
- 42
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
"type": "boolean",
"examples": [
true
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
"type": "boolean",
"examples": [
true
]
},
- "team_url": {
- "type": "string",
- "format": "uri",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ true
]
},
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "How can we improve our workflow?"
+ "2011-01-26T19:01:12Z"
]
},
"updated_at": {
- "type": "string",
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2011-01-26T19:14:43Z"
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ true
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
]
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
"comments_url",
- "created_at",
- "last_edited_at",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
}
}
@@ -732379,7 +785474,15 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Alternative response with extra repository information
"
+ },
+ {
+ "httpStatusCode": "204",
+ "description": "Response if repository is managed by this team
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if repository is not managed by this team
"
}
],
"previews": [],
@@ -732389,18 +785492,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "title": "Delete a discussion (Legacy)",
+ "verb": "put",
+ "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
+ "title": "Add or update team repository permissions (Legacy)",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "team_id",
@@ -732412,17 +785516,126 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
+ "enum": [
+ "pull",
+ "push",
+ "admin"
+ ]
+ }
+ ],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions \" endpoint.
\n
\nTo 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.
\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 method .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of setting permission to pull",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "permission": "push"
+ },
+ "parameters": {
+ "team_id": "TEAM_ID",
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
+ "title": "Remove a repository from a team (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
+ },
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a discussion endpoint.
\n
\nDelete a discussion from a team's page.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\n
\nIf 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.
",
"codeExamples": [
{
"key": "default",
@@ -732431,7 +785644,8 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
@@ -732453,10 +785667,1202 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}/teams",
+ "title": "List child teams (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List child teams endpoint.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "if child teams exist
",
+ "example": [
+ {
+ "id": 2,
+ "node_id": "MDQ6VGVhbTI=",
+ "url": "https://api.github.com/teams/2",
+ "name": "Original Roster",
+ "slug": "original-roster",
+ "description": "Started it all.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/2/members{/member}",
+ "repositories_url": "https://api.github.com/teams/2/repos",
+ "parent": {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos"
+ },
+ "html_url": "https://github.com/orgs/rails/teams/core"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "if child teams exist
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
}
]
}
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/user/teams",
+ "title": "List teams for the authenticated user",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List all of the teams across all of the organizations to which the authenticated\nuser belongs.
\nOAuth app tokens and personal access tokens (classic) need the user, repo, or read:org scope to use this endpoint.
\nWhen using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
+ "id": 1,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
+ "html_url": "https://github.com/octocat",
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ },
+ "members_count": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "repos_count": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-14T16:53:42Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-08-17T12:37:15Z"
+ ]
+ },
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
+ },
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "login",
+ "url",
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
+ "updated_at",
+ "members_count",
+ "repos_count",
+ "organization"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": false,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true
+ }
}
],
"members": [
diff --git a/src/rest/data/ghec-2022-11-28/schema.json b/src/rest/data/ghec-2022-11-28/schema.json
index a674f1eca918..b7c3d397b063 100644
--- a/src/rest/data/ghec-2022-11-28/schema.json
+++ b/src/rest/data/ghec-2022-11-28/schema.json
@@ -1039,12 +1039,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -1116,12 +1117,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -1196,12 +1198,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -1273,12 +1276,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -2146,7 +2150,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "read"
+ "\"Actions\" repository permissions": "read"
}
]
}
@@ -17319,7 +17323,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -22969,7 +22976,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -36461,7 +36471,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -41775,7 +41788,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -42641,7 +42657,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -44639,7 +44658,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -45505,7 +45527,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -48048,7 +48073,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -48914,7 +48942,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -53474,7 +53505,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -54340,7 +54374,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -154978,7 +155015,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -156147,7 +156187,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -157744,7 +157787,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -165117,7 +165163,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -166192,7 +166241,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -191090,7 +191142,7 @@
},
"enterprise": {
"type": "string",
- "description": "The unique identifier of the enterprise."
+ "description": "The name of the enterprise for the usage report."
},
"user": {
"type": "string",
@@ -191574,7 +191626,7 @@
},
"enterprise": {
"type": "string",
- "description": "The unique identifier of the enterprise."
+ "description": "The name of the enterprise for the usage report."
},
"organization": {
"type": "string",
@@ -232300,7 +232352,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -234240,7 +234295,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -235621,7 +235679,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -237474,7 +237535,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -239486,7 +239550,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -249484,8 +249551,8 @@
},
"response": {
"statusCode": "200",
- "contentType": "application/json+sarif",
- "description": "application/json+sarif response
",
+ "contentType": "application/sarif+json",
+ "description": "application/sarif+json response
",
"example": {
"runs": [
{
@@ -260843,6 +260910,19 @@
}
]
},
+ {
+ "type": "object or null",
+ "name": "code_scanning_options",
+ "in": "body",
+ "description": "Security Configuration feature options for code scanning
",
+ "childParamsGroups": [
+ {
+ "type": "boolean or null",
+ "name": "allow_advanced",
+ "description": "Whether to allow repos which use advanced setup
"
+ }
+ ]
+ },
{
"type": "string",
"name": "code_scanning_delegated_alert_dismissal",
@@ -264937,6 +265017,19 @@
}
]
},
+ {
+ "type": "object or null",
+ "name": "code_scanning_options",
+ "in": "body",
+ "description": "Security Configuration feature options for code scanning
",
+ "childParamsGroups": [
+ {
+ "type": "boolean or null",
+ "name": "allow_advanced",
+ "description": "Whether to allow repos which use advanced setup
"
+ }
+ ]
+ },
{
"type": "string",
"name": "code_scanning_delegated_alert_dismissal",
@@ -268892,7 +268985,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -270789,7 +270885,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -272545,7 +272644,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -275050,7 +275152,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -276807,7 +276912,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -278930,7 +279038,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -280838,7 +280949,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -282591,7 +282705,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -284401,7 +284518,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -286234,7 +286354,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -293922,7 +294045,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -295744,7 +295870,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -298153,7 +298282,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -300182,7 +300314,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -302603,7 +302738,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -304537,7 +304675,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -307159,7 +307300,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -308935,7 +309079,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -310843,7 +310990,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -312341,7 +312491,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -313880,7 +314033,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -327415,7 +327571,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -330851,12 +331010,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise Copilot metrics\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -330956,12 +331116,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise Copilot metrics\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -331067,12 +331228,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise Copilot metrics\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -331172,12 +331334,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise Copilot metrics\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -347587,7 +347750,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -362262,12 +362428,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -365652,12 +365819,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -365962,12 +366130,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "admin"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -366158,12 +366327,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -366419,12 +366589,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "admin"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -366495,12 +366666,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "admin"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -366661,12 +366833,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "read"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -366777,12 +366950,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise custom properties for organizations\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
}
],
@@ -367102,7 +367276,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Removes all assigned enterprise roles from a team in an enterprise.
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "descriptionHTML": "Removes all assigned enterprise roles from a team in an enterprise.
\n Warning
\n
\nThis API is not available for Copilot Business for non-GHE.
\n
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -367188,7 +367362,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Assigns an enterprise role to a team in an enterprise.
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "descriptionHTML": "Assigns an enterprise role to a team in an enterprise.
\n Warning
\n
\nThis API is not available for Copilot Business for non-GHE.
\n
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -367275,7 +367449,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Removes an enterprise role from a team in an enterprise.
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "descriptionHTML": "Removes an enterprise role from a team in an enterprise.
\n Warning
\n
\nThis API is not available for Copilot Business for non-GHE.
\n
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -367877,7 +368051,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists the teams that are assigned to an enterprise role.
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission read_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) require the read:enterprise scope to access this endpoint.
",
+ "descriptionHTML": "Lists the teams that are assigned to an enterprise role.
\n Warning
\n
\nThis API is not available for Copilot Business for non-GHE.
\n
\nTo use this endpoint, the authenticated user must be one of:
\n\nAn administrator for the enterprise. \nA user, or a user on a team, with the fine-grained permission read_enterprise_custom_enterprise_role in the enterprise. \n \nOAuth app tokens and personal access tokens (classic) require the read:enterprise scope to access this endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -369227,12 +369401,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
}
],
@@ -369364,6 +369539,23 @@
"123ABC456DEF789"
]
},
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
"created_on": {
"description": "The time at which the network configuration was created, in ISO 8601 format.",
"type": [
@@ -369517,6 +369709,23 @@
"123ABC456DEF789"
]
},
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
"created_on": {
"description": "The time at which the network configuration was created, in ISO 8601 format.",
"type": [
@@ -369644,156 +369853,8 @@
"123ABC456DEF789"
]
},
- "created_on": {
- "description": "The time at which the network configuration was created, in ISO 8601 format.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2024-04-26T11:31:07Z"
- ]
- }
- },
- "required": [
- "id",
- "name",
- "created_on"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/enterprises/{enterprise}/network-configurations/{network_configuration_id}",
- "title": "Update a hosted compute network configuration for an enterprise",
- "category": "enterprise-admin",
- "subcategory": "network-configurations",
- "parameters": [
- {
- "name": "enterprise",
- "description": "The slug version of the enterprise name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "network_configuration_id",
- "description": "Unique identifier of the hosted compute network configuration.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, ., -, and _.
"
- },
- {
- "type": "string",
- "name": "compute_service",
- "in": "body",
- "description": "The hosted compute service to use for the network configuration.
",
- "enum": [
- "none",
- "actions"
- ]
- },
- {
- "type": "array of strings",
- "name": "network_settings_ids",
- "in": "body",
- "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
"
- }
- ],
- "descriptionHTML": "Updates a hosted compute network configuration for an enterprise.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "my-network-configuration",
- "network_settings_ids": [
- "23456789ABDCEF1"
- ],
- "compute_service": "actions"
- },
- "parameters": {
- "enterprise": "ENTERPRISE",
- "network_configuration_id": "NETWORK_CONFIGURATION_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": "123456789ABCDEF",
- "name": "My network configuration",
- "compute_service": "actions",
- "network_settings_ids": [
- "23456789ABDCEF1",
- "3456789ABDCEF12"
- ],
- "created_on": "2022-10-09T23:39:01Z"
- },
- "schema": {
- "title": "Hosted compute network configuration",
- "description": "A hosted compute network configuration.",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier of the network configuration.",
- "type": "string",
- "examples": [
- "123ABC456DEF789"
- ]
- },
- "name": {
- "description": "The name of the network configuration.",
- "type": "string",
- "examples": [
- "my-network-configuration"
- ]
- },
- "compute_service": {
- "description": "The hosted compute service the network configuration supports.",
- "type": "string",
- "enum": [
- "none",
- "actions",
- "codespaces"
- ]
- },
- "network_settings_ids": {
- "description": "The unique identifier of each network settings in the configuration.",
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
"type": "array",
"items": {
"type": "string"
@@ -369802,6 +369863,13 @@
"123ABC456DEF789"
]
},
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
"created_on": {
"description": "The time at which the network configuration was created, in ISO 8601 format.",
"type": [
@@ -369839,9 +369907,184 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
+ "verb": "patch",
"requestPath": "/enterprises/{enterprise}/network-configurations/{network_configuration_id}",
- "title": "Delete a hosted compute network configuration from an enterprise",
+ "title": "Update a hosted compute network configuration for an enterprise",
+ "category": "enterprise-admin",
+ "subcategory": "network-configurations",
+ "parameters": [
+ {
+ "name": "enterprise",
+ "description": "The slug version of the enterprise name.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "network_configuration_id",
+ "description": "Unique identifier of the hosted compute network configuration.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, ., -, and _.
"
+ },
+ {
+ "type": "string",
+ "name": "compute_service",
+ "in": "body",
+ "description": "The hosted compute service to use for the network configuration.
",
+ "enum": [
+ "none",
+ "actions"
+ ]
+ },
+ {
+ "type": "array of strings",
+ "name": "network_settings_ids",
+ "in": "body",
+ "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
"
+ }
+ ],
+ "descriptionHTML": "Updates a hosted compute network configuration for an enterprise.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "my-network-configuration",
+ "network_settings_ids": [
+ "23456789ABDCEF1"
+ ],
+ "compute_service": "actions"
+ },
+ "parameters": {
+ "enterprise": "ENTERPRISE",
+ "network_configuration_id": "NETWORK_CONFIGURATION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": "123456789ABCDEF",
+ "name": "My network configuration",
+ "compute_service": "actions",
+ "network_settings_ids": [
+ "23456789ABDCEF1",
+ "3456789ABDCEF12"
+ ],
+ "created_on": "2022-10-09T23:39:01Z"
+ },
+ "schema": {
+ "title": "Hosted compute network configuration",
+ "description": "A hosted compute network configuration.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the network configuration.",
+ "type": "string",
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "name": {
+ "description": "The name of the network configuration.",
+ "type": "string",
+ "examples": [
+ "my-network-configuration"
+ ]
+ },
+ "compute_service": {
+ "description": "The hosted compute service the network configuration supports.",
+ "type": "string",
+ "enum": [
+ "none",
+ "actions",
+ "codespaces"
+ ]
+ },
+ "network_settings_ids": {
+ "description": "The unique identifier of each network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "created_on": {
+ "description": "The time at which the network configuration was created, in ISO 8601 format.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2024-04-26T11:31:07Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "created_on"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/enterprises/{enterprise}/network-configurations/{network_configuration_id}",
+ "title": "Delete a hosted compute network configuration from an enterprise",
"category": "enterprise-admin",
"subcategory": "network-configurations",
"parameters": [
@@ -373933,7 +374176,7 @@
"type": "object",
"name": "conditions",
"in": "body",
- "description": "Conditions for an enterprise ruleset. The conditions object should contain either the organization_id or organization_name property and the repository_name or repository_property property. For branch and tag rulesets, the conditions object should also contain the ref_name property.
",
+ "description": "Conditions for an enterprise ruleset.\nThe conditions object supports either of the following combinations: - organization_id and repository_name - organization_id and repository_property - organization_name and repository_name - organization_name and repository_property - organization_property and repository_name - organization_property and repository_property\nFor branch and tag rulesets, the conditions object should also contain the ref_name property.
",
"childParamsGroups": [
{
"type": "object",
@@ -376745,12 +376988,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -378177,12 +378421,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -378284,7 +378529,7 @@
"type": "object",
"name": "conditions",
"in": "body",
- "description": "Conditions for an enterprise ruleset. The conditions object should contain either the organization_id or organization_name property and the repository_name or repository_property property. For branch and tag rulesets, the conditions object should also contain the ref_name property.
",
+ "description": "Conditions for an enterprise ruleset.\nThe conditions object supports either of the following combinations: - organization_id and repository_name - organization_id and repository_property - organization_name and repository_name - organization_name and repository_property - organization_property and repository_name - organization_property and repository_property\nFor branch and tag rulesets, the conditions object should also contain the ref_name property.
",
"childParamsGroups": [
{
"type": "object",
@@ -381097,12 +381342,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -381169,12 +381415,13 @@
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
+ "fineGrainedPat": false,
"permissions": [
{
"\"Enterprise administration\" enterprise permissions": "write"
}
- ]
+ ],
+ "disabledForPatV2": true
}
},
{
@@ -384297,11 +384544,333 @@
"primary": true
}
],
+ "roles": [
+ {
+ "value": "user",
+ "primary": false
+ }
+ ]
+ },
+ "parameters": {
+ "enterprise": "ENTERPRISE"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/scim+json",
+ "description": "User has been created
",
+ "example": {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "7fce0092-d52e-4f76-b727-3955bd72c939",
+ "externalId": "E012345",
+ "active": true,
+ "userName": "E012345",
+ "name": {
+ "formatted": "Ms. Mona Lisa Octocat",
+ "familyName": "Octocat",
+ "givenName": "Mona",
+ "middleName": "Lisa"
+ },
+ "displayName": "Mona Lisa",
+ "emails": [
+ {
+ "value": "mlisa@example.com",
+ "type": "work",
+ "primary": true
+ }
+ ],
"roles": [
{
"value": "User",
"primary": false
}
+ ],
+ "meta": {
+ "resourceType": "User",
+ "created": "2012-03-27T19:59:26.000Z",
+ "lastModified": "2018-03-27T19:59:26.000Z",
+ "location": "https://api.github.localhost/scim/v2/Users/7fce0092-d52e-4f76-b727-3955bd72c939"
+ }
+ },
+ "schema": {
+ "allOf": [
+ {
+ "type": "object",
+ "required": [
+ "schemas",
+ "active",
+ "emails"
+ ],
+ "properties": {
+ "schemas": {
+ "type": "array",
+ "description": "The URIs that are used to indicate the namespaces of the SCIM schemas.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ },
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ },
+ "externalId": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A unique identifier for the resource as defined by the provisioning client.",
+ "examples": [
+ "E012345"
+ ]
+ },
+ "active": {
+ "type": "boolean",
+ "description": "Whether the user active in the IdP.",
+ "examples": [
+ true
+ ]
+ },
+ "userName": {
+ "type": "string",
+ "description": "The username for the user.",
+ "examples": [
+ "E012345"
+ ]
+ },
+ "name": {
+ "type": "object",
+ "properties": {
+ "formatted": {
+ "type": "string",
+ "description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.",
+ "examples": [
+ "Ms. Mona Lisa Octocat"
+ ]
+ },
+ "familyName": {
+ "type": "string",
+ "description": "The family name of the user.",
+ "examples": [
+ "Octocat"
+ ]
+ },
+ "givenName": {
+ "type": "string",
+ "description": "The given name of the user.",
+ "examples": [
+ "Mona"
+ ]
+ },
+ "middleName": {
+ "type": "string",
+ "description": "The middle name(s) of the user.",
+ "examples": [
+ "Lisa"
+ ]
+ }
+ }
+ },
+ "displayName": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A human-readable name for the user.",
+ "examples": [
+ "Mona Lisa"
+ ]
+ },
+ "emails": {
+ "type": "array",
+ "description": "The emails for the user.",
+ "items": {
+ "type": "object",
+ "required": [
+ "value"
+ ],
+ "properties": {
+ "value": {
+ "type": "string",
+ "description": "The email address.",
+ "examples": [
+ "mlisa@example.com"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of email address.",
+ "examples": [
+ "work"
+ ]
+ },
+ "primary": {
+ "type": "boolean",
+ "description": "Whether this email address is the primary address.",
+ "examples": [
+ true
+ ]
+ }
+ }
+ }
+ },
+ "roles": {
+ "type": "array",
+ "description": "The roles assigned to the user.",
+ "items": {
+ "type": "object",
+ "required": [
+ "value"
+ ],
+ "properties": {
+ "display": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string",
+ "description": "The role value representing a user role in GitHub.",
+ "enum": [
+ "user",
+ "27d9891d-2c17-4f45-a262-781a0e55c80a",
+ "guest_collaborator",
+ "1ebc4a02-e56c-43a6-92a5-02ee09b90824",
+ "enterprise_owner",
+ "981df190-8801-4618-a08a-d91f6206c954",
+ "ba4987ab-a1c3-412a-b58c-360fc407cb10",
+ "billing_manager",
+ "0e338b8c-cc7f-498a-928d-ea3470d7e7e3",
+ "e6be2762-e4ad-4108-b72d-1bbe884a0f91"
+ ],
+ "examples": [
+ "user"
+ ]
+ },
+ "primary": {
+ "type": "boolean",
+ "description": "Is the role a primary role for the user.",
+ "examples": [
+ false
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "id",
+ "meta"
+ ],
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The internally generated id for the user object.",
+ "examples": [
+ "7fce0092-d52e-4f76-b727-3955bd72c939"
+ ]
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "$ref": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ },
+ "description": "Provisioned SCIM groups that the user is a member of."
+ },
+ "meta": {
+ "type": "object",
+ "description": "The metadata associated with the creation/updates to the user.",
+ "required": [
+ "resourceType"
+ ],
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "description": "A type of a resource",
+ "enum": [
+ "User",
+ "Group"
+ ],
+ "examples": [
+ "User"
+ ]
+ },
+ "created": {
+ "type": "string",
+ "description": "A date and time when the user was created.",
+ "examples": [
+ "2022-03-27T19:59:26.000Z"
+ ]
+ },
+ "lastModified": {
+ "type": "string",
+ "description": "A data and time when the user was last modified.",
+ "examples": [
+ "2022-03-27T19:59:26.000Z"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "description": "A URL location of an object"
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "enterpriseOwner",
+ "request": {
+ "contentType": "application/json",
+ "description": "Enterprise Owner",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "externalId": "E012345",
+ "active": true,
+ "userName": "E012345",
+ "name": {
+ "formatted": "Ms. Mona Lisa Octocat",
+ "familyName": "Octocat",
+ "givenName": "Mona",
+ "middleName": "Lisa"
+ },
+ "displayName": "Mona Lisa",
+ "emails": [
+ {
+ "value": "mlisa@example.com",
+ "type": "work",
+ "primary": true
+ }
+ ],
+ "roles": [
+ {
+ "value": "enterprise_owner",
+ "primary": false
+ }
]
},
"parameters": {
@@ -384591,49 +385160,95 @@
]
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "User has been created
"
},
{
- "key": "enterpriseOwner",
+ "httpStatusCode": "400",
+ "description": "Bad request
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Authorization failure
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Permission denied
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Duplicate record detected
"
+ },
+ {
+ "httpStatusCode": "429",
+ "description": "Too many requests
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal server error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": false,
+ "permissions": [
+ {
+ "\"Enterprise SCIM\" enterprise permissions": "write"
+ }
+ ],
+ "disabledForPatV2": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}",
+ "title": "Get SCIM provisioning information for an enterprise user",
+ "category": "enterprise-admin",
+ "subcategory": "scim",
+ "parameters": [
+ {
+ "name": "scim_user_id",
+ "description": "The unique identifier of the SCIM user.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "enterprise",
+ "description": "The slug version of the enterprise name.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets information about a SCIM user.
",
+ "codeExamples": [
+ {
+ "key": "default",
"request": {
- "contentType": "application/json",
- "description": "Enterprise Owner",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "externalId": "E012345",
- "active": true,
- "userName": "E012345",
- "name": {
- "formatted": "Ms. Mona Lisa Octocat",
- "familyName": "Octocat",
- "givenName": "Mona",
- "middleName": "Lisa"
- },
- "displayName": "Mona Lisa",
- "emails": [
- {
- "value": "mlisa@example.com",
- "type": "work",
- "primary": true
- }
- ],
- "roles": [
- {
- "value": "Enterprise Owner",
- "primary": false
- }
- ]
- },
"parameters": {
+ "scim_user_id": "SCIM_USER_ID",
"enterprise": "ENTERPRISE"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/scim+json",
- "description": "User has been created
",
+ "description": "Success, a user was found
",
"example": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
@@ -384917,8 +385532,8 @@
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "User has been created
"
+ "httpStatusCode": "200",
+ "description": "Success, a user was found
"
},
{
"httpStatusCode": "400",
@@ -384933,8 +385548,8 @@
"description": "Permission denied
"
},
{
- "httpStatusCode": "409",
- "description": "Duplicate record detected
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
"httpStatusCode": "429",
@@ -384952,7 +385567,7 @@
"fineGrainedPat": false,
"permissions": [
{
- "\"Enterprise SCIM\" enterprise permissions": "write"
+ "\"Enterprise SCIM\" enterprise permissions": "read"
}
],
"disabledForPatV2": true
@@ -384960,9 +385575,9 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
+ "verb": "put",
"requestPath": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}",
- "title": "Get SCIM provisioning information for an enterprise user",
+ "title": "Set SCIM information for a provisioned enterprise user",
"category": "enterprise-admin",
"subcategory": "scim",
"parameters": [
@@ -384985,14 +385600,177 @@
}
}
],
- "bodyParameters": [],
- "descriptionHTML": "Gets information about a SCIM user.
",
+ "bodyParameters": [
+ {
+ "type": "array of strings",
+ "name": "schemas",
+ "in": "body",
+ "description": "The URIs that are used to indicate the namespaces of the SCIM schemas.\nSupported values are: urn:ietf:params:scim:schemas:core:2.0:User
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "externalId",
+ "in": "body",
+ "description": "A unique identifier for the resource as defined by the provisioning client.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": "Whether the user active in the IdP.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "userName",
+ "in": "body",
+ "description": "The username for the user.
",
+ "isRequired": true
+ },
+ {
+ "type": "object",
+ "name": "name",
+ "in": "body",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "formatted",
+ "description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.
"
+ },
+ {
+ "type": "string",
+ "name": "familyName",
+ "description": "The family name of the user.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "givenName",
+ "description": "The given name of the user.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "middleName",
+ "description": "The middle name(s) of the user.
"
+ }
+ ]
+ },
+ {
+ "type": "string",
+ "name": "displayName",
+ "in": "body",
+ "description": "A human-readable name for the user.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects",
+ "name": "emails",
+ "in": "body",
+ "description": "The emails for the user.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "value",
+ "description": "The email address.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of email address.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "primary",
+ "description": "Whether this email address is the primary address.
",
+ "isRequired": true
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "roles",
+ "in": "body",
+ "description": "The roles assigned to the user.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "display",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "value",
+ "description": "The role value representing a user role in GitHub.
",
+ "isRequired": true,
+ "enum": [
+ "user",
+ "27d9891d-2c17-4f45-a262-781a0e55c80a",
+ "guest_collaborator",
+ "1ebc4a02-e56c-43a6-92a5-02ee09b90824",
+ "enterprise_owner",
+ "981df190-8801-4618-a08a-d91f6206c954",
+ "ba4987ab-a1c3-412a-b58c-360fc407cb10",
+ "billing_manager",
+ "0e338b8c-cc7f-498a-928d-ea3470d7e7e3",
+ "e6be2762-e4ad-4108-b72d-1bbe884a0f91"
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "primary",
+ "description": "Is the role a primary role for the user.
"
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Replaces an existing provisioned user's information.
\nYou must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the Update an attribute for a SCIM user endpoint.
\n Warning
\n
\nSetting active: false will suspend a user, and their handle and email will be obfuscated.
\n
",
"codeExamples": [
{
- "key": "default",
+ "key": "user",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "User",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "externalId": "E012345",
+ "active": true,
+ "userName": "E012345",
+ "name": {
+ "formatted": "Ms. Mona Lisa Octocat",
+ "familyName": "Octocat",
+ "givenName": "Mona",
+ "middleName": "Lisa"
+ },
+ "displayName": "Mona Lisa",
+ "emails": [
+ {
+ "value": "mlisa@example.com",
+ "type": "work",
+ "primary": true
+ }
+ ],
+ "roles": [
+ {
+ "value": "user",
+ "primary": false
+ }
+ ]
+ },
"parameters": {
"scim_user_id": "SCIM_USER_ID",
"enterprise": "ENTERPRISE"
@@ -385001,7 +385779,7 @@
"response": {
"statusCode": "200",
"contentType": "application/scim+json",
- "description": "Success, a user was found
",
+ "description": "User was updated
",
"example": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
@@ -385286,7 +386064,7 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "Success, a user was found
"
+ "description": "User was updated
"
},
{
"httpStatusCode": "400",
@@ -385304,6 +386082,10 @@
"httpStatusCode": "404",
"description": "Resource not found
"
},
+ {
+ "httpStatusCode": "409",
+ "description": "Duplicate record detected
"
+ },
{
"httpStatusCode": "429",
"description": "Too many requests
"
@@ -385320,7 +386102,7 @@
"fineGrainedPat": false,
"permissions": [
{
- "\"Enterprise SCIM\" enterprise permissions": "read"
+ "\"Enterprise SCIM\" enterprise permissions": "write"
}
],
"disabledForPatV2": true
@@ -385328,9 +386110,9 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "put",
+ "verb": "patch",
"requestPath": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}",
- "title": "Set SCIM information for a provisioned enterprise user",
+ "title": "Update an attribute for a SCIM enterprise user",
"category": "enterprise-admin",
"subcategory": "scim",
"parameters": [
@@ -385354,173 +386136,66 @@
}
],
"bodyParameters": [
- {
- "type": "array of strings",
- "name": "schemas",
- "in": "body",
- "description": "The URIs that are used to indicate the namespaces of the SCIM schemas.\nSupported values are: urn:ietf:params:scim:schemas:core:2.0:User
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "externalId",
- "in": "body",
- "description": "A unique identifier for the resource as defined by the provisioning client.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": "Whether the user active in the IdP.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "userName",
- "in": "body",
- "description": "The username for the user.
",
- "isRequired": true
- },
- {
- "type": "object",
- "name": "name",
- "in": "body",
- "description": "",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "formatted",
- "description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.
"
- },
- {
- "type": "string",
- "name": "familyName",
- "description": "The family name of the user.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "givenName",
- "description": "The given name of the user.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "middleName",
- "description": "The middle name(s) of the user.
"
- }
- ]
- },
- {
- "type": "string",
- "name": "displayName",
- "in": "body",
- "description": "A human-readable name for the user.
",
- "isRequired": true
- },
{
"type": "array of objects",
- "name": "emails",
+ "name": "Operations",
"in": "body",
- "description": "The emails for the user.
",
+ "description": "patch operations list
",
"isRequired": true,
"childParamsGroups": [
{
"type": "string",
- "name": "value",
- "description": "The email address.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of email address.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "primary",
- "description": "Whether this email address is the primary address.
",
- "isRequired": true
- }
- ]
- },
- {
- "type": "array of objects",
- "name": "roles",
- "in": "body",
- "description": "The roles assigned to the user.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "display",
- "description": ""
+ "name": "op",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "add",
+ "replace",
+ "remove"
+ ]
},
{
"type": "string",
- "name": "type",
+ "name": "path",
"description": ""
},
{
"type": "string",
"name": "value",
- "description": "The role value representing a user role in GitHub.
",
- "isRequired": true,
- "enum": [
- "user",
- "27d9891d-2c17-4f45-a262-781a0e55c80a",
- "guest_collaborator",
- "1ebc4a02-e56c-43a6-92a5-02ee09b90824",
- "enterprise_owner",
- "981df190-8801-4618-a08a-d91f6206c954",
- "ba4987ab-a1c3-412a-b58c-360fc407cb10",
- "billing_manager",
- "0e338b8c-cc7f-498a-928d-ea3470d7e7e3",
- "e6be2762-e4ad-4108-b72d-1bbe884a0f91"
- ]
- },
- {
- "type": "boolean",
- "name": "primary",
- "description": "Is the role a primary role for the user.
"
+ "description": "Corresponding 'value' of that field specified by 'path'
"
}
]
+ },
+ {
+ "type": "array of strings",
+ "name": "schemas",
+ "in": "body",
+ "description": "undefinedSupported values are: urn:ietf:params:scim:api:messages:2.0:PatchOp
",
+ "isRequired": true
}
],
- "descriptionHTML": "Replaces an existing provisioned user's information.
\nYou must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the Update an attribute for a SCIM user endpoint.
\n Warning
\n
\nSetting active: false will suspend a user, and their handle and email will be obfuscated.
\n
",
+ "descriptionHTML": "Update a provisioned user's individual attributes.
\nTo modify a user's attributes, you'll need to provide a Operations JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the SCIM specification .
\n Note
\n
\nComplex SCIM path selectors that include filters are not supported. For example, a path selector defined as \"path\": \"emails[type eq \\\"work\\\"]\" will be ineffective.
\n
\n Warning
\n
\nSetting active: false will suspend a user, and their handle and email will be obfuscated.
\n
{\n \"Operations\":[{\n \"op\":\"replace\",\n \"value\":{\n \"active\":false\n }\n }]\n}\n\n
",
"codeExamples": [
{
- "key": "user",
+ "key": "userMultiValuedProperties",
"request": {
"contentType": "application/json",
- "description": "User",
+ "description": "Multi Valued Property",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
+ "urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
- "externalId": "E012345",
- "active": true,
- "userName": "E012345",
- "name": {
- "formatted": "Ms. Mona Lisa Octocat",
- "familyName": "Octocat",
- "givenName": "Mona",
- "middleName": "Lisa"
- },
- "displayName": "Mona Lisa",
- "emails": [
+ "Operations": [
{
- "value": "mlisa@example.com",
- "type": "work",
- "primary": true
- }
- ],
- "roles": [
+ "op": "replace",
+ "path": "emails[type eq 'work'].value",
+ "value": "updatedEmail@microsoft.com"
+ },
{
- "value": "User",
- "primary": false
+ "op": "replace",
+ "path": "name.familyName",
+ "value": "updatedFamilyName"
}
]
},
@@ -385532,7 +386207,7 @@
"response": {
"statusCode": "200",
"contentType": "application/scim+json",
- "description": "User was updated
",
+ "description": "Success, user was updated
",
"example": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
@@ -385812,128 +386487,12 @@
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "User was updated
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad request
"
- },
- {
- "httpStatusCode": "401",
- "description": "Authorization failure
"
- },
- {
- "httpStatusCode": "403",
- "description": "Permission denied
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
},
{
- "httpStatusCode": "409",
- "description": "Duplicate record detected
"
- },
- {
- "httpStatusCode": "429",
- "description": "Too many requests
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal server error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": false,
- "permissions": [
- {
- "\"Enterprise SCIM\" enterprise permissions": "write"
- }
- ],
- "disabledForPatV2": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}",
- "title": "Update an attribute for a SCIM enterprise user",
- "category": "enterprise-admin",
- "subcategory": "scim",
- "parameters": [
- {
- "name": "scim_user_id",
- "description": "The unique identifier of the SCIM user.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "enterprise",
- "description": "The slug version of the enterprise name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "array of objects",
- "name": "Operations",
- "in": "body",
- "description": "patch operations list
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "op",
- "description": "",
- "isRequired": true,
- "enum": [
- "add",
- "replace",
- "remove"
- ]
- },
- {
- "type": "string",
- "name": "path",
- "description": ""
- },
- {
- "type": "string",
- "name": "value",
- "description": "Corresponding 'value' of that field specified by 'path'
"
- }
- ]
- },
- {
- "type": "array of strings",
- "name": "schemas",
- "in": "body",
- "description": "undefinedSupported values are: urn:ietf:params:scim:api:messages:2.0:PatchOp
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Update a provisioned user's individual attributes.
\nTo modify a user's attributes, you'll need to provide a Operations JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the SCIM specification .
\n Note
\n
\nComplex SCIM path selectors that include filters are not supported. For example, a path selector defined as \"path\": \"emails[type eq \\\"work\\\"]\" will be ineffective.
\n
\n Warning
\n
\nSetting active: false will suspend a user, and their handle and email will be obfuscated.
\n
{\n \"Operations\":[{\n \"op\":\"replace\",\n \"value\":{\n \"active\":false\n }\n }]\n}\n\n
",
- "codeExamples": [
- {
- "key": "userMultiValuedProperties",
+ "key": "userSingleValuedProperties",
"request": {
"contentType": "application/json",
- "description": "Multi Valued Property",
+ "description": "Single Valued Property",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"schemas": [
@@ -385942,325 +386501,13 @@
"Operations": [
{
"op": "replace",
- "path": "emails[type eq 'work'].value",
- "value": "updatedEmail@microsoft.com"
+ "path": "userName",
+ "value": "5b50642d-79fc-4410-9e90-4c077cdd1a59@testuser.com"
},
{
"op": "replace",
- "path": "name.familyName",
- "value": "updatedFamilyName"
- }
- ]
- },
- "parameters": {
- "scim_user_id": "SCIM_USER_ID",
- "enterprise": "ENTERPRISE"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/scim+json",
- "description": "Success, user was updated
",
- "example": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "7fce0092-d52e-4f76-b727-3955bd72c939",
- "externalId": "E012345",
- "active": true,
- "userName": "E012345",
- "name": {
- "formatted": "Ms. Mona Lisa Octocat",
- "familyName": "Octocat",
- "givenName": "Mona",
- "middleName": "Lisa"
- },
- "displayName": "Mona Lisa",
- "emails": [
- {
- "value": "mlisa@example.com",
- "type": "work",
- "primary": true
- }
- ],
- "roles": [
- {
- "value": "User",
- "primary": false
- }
- ],
- "meta": {
- "resourceType": "User",
- "created": "2012-03-27T19:59:26.000Z",
- "lastModified": "2018-03-27T19:59:26.000Z",
- "location": "https://api.github.localhost/scim/v2/Users/7fce0092-d52e-4f76-b727-3955bd72c939"
- }
- },
- "schema": {
- "allOf": [
- {
- "type": "object",
- "required": [
- "schemas",
- "active",
- "emails"
- ],
- "properties": {
- "schemas": {
- "type": "array",
- "description": "The URIs that are used to indicate the namespaces of the SCIM schemas.",
- "items": {
- "type": "string",
- "enum": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- },
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- },
- "externalId": {
- "type": [
- "string",
- "null"
- ],
- "description": "A unique identifier for the resource as defined by the provisioning client.",
- "examples": [
- "E012345"
- ]
- },
- "active": {
- "type": "boolean",
- "description": "Whether the user active in the IdP.",
- "examples": [
- true
- ]
- },
- "userName": {
- "type": "string",
- "description": "The username for the user.",
- "examples": [
- "E012345"
- ]
- },
- "name": {
- "type": "object",
- "properties": {
- "formatted": {
- "type": "string",
- "description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.",
- "examples": [
- "Ms. Mona Lisa Octocat"
- ]
- },
- "familyName": {
- "type": "string",
- "description": "The family name of the user.",
- "examples": [
- "Octocat"
- ]
- },
- "givenName": {
- "type": "string",
- "description": "The given name of the user.",
- "examples": [
- "Mona"
- ]
- },
- "middleName": {
- "type": "string",
- "description": "The middle name(s) of the user.",
- "examples": [
- "Lisa"
- ]
- }
- }
- },
- "displayName": {
- "type": [
- "string",
- "null"
- ],
- "description": "A human-readable name for the user.",
- "examples": [
- "Mona Lisa"
- ]
- },
- "emails": {
- "type": "array",
- "description": "The emails for the user.",
- "items": {
- "type": "object",
- "required": [
- "value"
- ],
- "properties": {
- "value": {
- "type": "string",
- "description": "The email address.",
- "examples": [
- "mlisa@example.com"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of email address.",
- "examples": [
- "work"
- ]
- },
- "primary": {
- "type": "boolean",
- "description": "Whether this email address is the primary address.",
- "examples": [
- true
- ]
- }
- }
- }
- },
- "roles": {
- "type": "array",
- "description": "The roles assigned to the user.",
- "items": {
- "type": "object",
- "required": [
- "value"
- ],
- "properties": {
- "display": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "type": "string",
- "description": "The role value representing a user role in GitHub.",
- "enum": [
- "user",
- "27d9891d-2c17-4f45-a262-781a0e55c80a",
- "guest_collaborator",
- "1ebc4a02-e56c-43a6-92a5-02ee09b90824",
- "enterprise_owner",
- "981df190-8801-4618-a08a-d91f6206c954",
- "ba4987ab-a1c3-412a-b58c-360fc407cb10",
- "billing_manager",
- "0e338b8c-cc7f-498a-928d-ea3470d7e7e3",
- "e6be2762-e4ad-4108-b72d-1bbe884a0f91"
- ],
- "examples": [
- "user"
- ]
- },
- "primary": {
- "type": "boolean",
- "description": "Is the role a primary role for the user.",
- "examples": [
- false
- ]
- }
- }
- }
- }
- }
- },
- {
- "type": "object",
- "required": [
- "id",
- "meta"
- ],
- "properties": {
- "id": {
- "type": "string",
- "description": "The internally generated id for the user object.",
- "examples": [
- "7fce0092-d52e-4f76-b727-3955bd72c939"
- ]
- },
- "groups": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "$ref": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- },
- "description": "Provisioned SCIM groups that the user is a member of."
- },
- "meta": {
- "type": "object",
- "description": "The metadata associated with the creation/updates to the user.",
- "required": [
- "resourceType"
- ],
- "properties": {
- "resourceType": {
- "type": "string",
- "description": "A type of a resource",
- "enum": [
- "User",
- "Group"
- ],
- "examples": [
- "User"
- ]
- },
- "created": {
- "type": "string",
- "description": "A date and time when the user was created.",
- "examples": [
- "2022-03-27T19:59:26.000Z"
- ]
- },
- "lastModified": {
- "type": "string",
- "description": "A data and time when the user was last modified.",
- "examples": [
- "2022-03-27T19:59:26.000Z"
- ]
- },
- "location": {
- "type": "string",
- "description": "A URL location of an object"
- }
- }
- }
- }
- }
- ]
- }
- }
- },
- {
- "key": "userSingleValuedProperties",
- "request": {
- "contentType": "application/json",
- "description": "Single Valued Property",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:PatchOp"
- ],
- "Operations": [
- {
- "op": "replace",
- "path": "userName",
- "value": "5b50642d-79fc-4410-9e90-4c077cdd1a59@testuser.com"
- },
- {
- "op": "replace",
- "path": "displayName",
- "value": "Monalisa Octocat"
+ "path": "displayName",
+ "value": "Monalisa Octocat"
}
]
},
@@ -511127,171 +511374,178 @@
]
},
"user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "anyOf": [
+ {
+ "type": "null"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
]
},
"body": {
@@ -517181,10 +517435,6 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
{
"httpStatusCode": "403",
"description": "Forbidden
"
@@ -517356,10 +517606,6 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
{
"httpStatusCode": "403",
"description": "Forbidden
"
@@ -517484,10 +517730,6 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
{
"httpStatusCode": "403",
"description": "Forbidden
"
@@ -517700,10 +517942,6 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
{
"httpStatusCode": "403",
"description": "Forbidden
"
@@ -523255,7 +523493,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -530836,7 +531077,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -535603,7 +535847,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -538179,7 +538426,7 @@
{
"type": "string",
"name": "deployment_name",
- "description": "The unique identifier for the deployment represented by the new record. To accommodate differing\ncontainers and namespaces within a record set, the following format is recommended:\n{namespaceName}-{deploymentName}-{containerName}
",
+ "description": "The unique identifier for the deployment represented by the new record. To accommodate differing\ncontainers and namespaces within a record set, the following format is recommended:\n{namespaceName}-{deploymentName}-{containerName}.\nThe deployment_name must be unique across all entries in the deployments array.
",
"isRequired": true
},
{
@@ -538200,7 +538447,7 @@
]
}
],
- "descriptionHTML": "Set deployment records for a given cluster.
",
+ "descriptionHTML": "Set deployment records for a given cluster.\nIf proposed records in the 'deployments' field have identical 'cluster', 'logical_environment',\n'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated.\nIf no existing records match, new records will be created.
",
"codeExamples": [
{
"key": "default",
@@ -538232,7 +538479,7 @@
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Artifact deployment record stored successfully.
",
+ "description": "Deployment records created or updated successfully.
",
"example": {
"total_count": 1,
"deployment_records": [
@@ -538329,7 +538576,7 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "Artifact deployment record stored successfully.
"
+ "description": "Deployment records created or updated successfully.
"
}
],
"previews": [],
@@ -550979,6 +551226,23 @@
"123ABC456DEF789"
]
},
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
"created_on": {
"description": "The time at which the network configuration was created, in ISO 8601 format.",
"type": [
@@ -551136,129 +551400,8 @@
"123ABC456DEF789"
]
},
- "created_on": {
- "description": "The time at which the network configuration was created, in ISO 8601 format.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2024-04-26T11:31:07Z"
- ]
- }
- },
- "required": [
- "id",
- "name",
- "created_on"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Network configurations\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}",
- "title": "Get a hosted compute network configuration for an organization",
- "category": "orgs",
- "subcategory": "network-configurations",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "network_configuration_id",
- "description": "Unique identifier of the hosted compute network configuration.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a hosted compute network configuration configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "network_configuration_id": "NETWORK_CONFIGURATION_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": "123456789ABCDEF",
- "name": "My network configuration",
- "compute_service": "actions",
- "network_settings_ids": [
- "23456789ABDCEF1",
- "3456789ABDCEF12"
- ],
- "created_on": "2022-10-09T23:39:01Z"
- },
- "schema": {
- "title": "Hosted compute network configuration",
- "description": "A hosted compute network configuration.",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier of the network configuration.",
- "type": "string",
- "examples": [
- "123ABC456DEF789"
- ]
- },
- "name": {
- "description": "The name of the network configuration.",
- "type": "string",
- "examples": [
- "my-network-configuration"
- ]
- },
- "compute_service": {
- "description": "The hosted compute service the network configuration supports.",
- "type": "string",
- "enum": [
- "none",
- "actions",
- "codespaces"
- ]
- },
- "network_settings_ids": {
- "description": "The unique identifier of each network settings in the configuration.",
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
"type": "array",
"items": {
"type": "string"
@@ -551267,166 +551410,338 @@
"123ABC456DEF789"
]
},
- "created_on": {
- "description": "The time at which the network configuration was created, in ISO 8601 format.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2024-04-26T11:31:07Z"
- ]
- }
- },
- "required": [
- "id",
- "name",
- "created_on"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Network configurations\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}",
- "title": "Update a hosted compute network configuration for an organization",
- "category": "orgs",
- "subcategory": "network-configurations",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "network_configuration_id",
- "description": "Unique identifier of the hosted compute network configuration.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
"
- },
- {
- "type": "string",
- "name": "compute_service",
- "in": "body",
- "description": "The hosted compute service to use for the network configuration.
",
- "enum": [
- "none",
- "actions"
- ]
- },
- {
- "type": "array of strings",
- "name": "network_settings_ids",
- "in": "body",
- "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
"
- }
- ],
- "descriptionHTML": "Updates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "my-network-configuration",
- "network_settings_ids": [
- "23456789ABDCEF1"
- ],
- "compute_service": "actions"
- },
- "parameters": {
- "org": "ORG",
- "network_configuration_id": "NETWORK_CONFIGURATION_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": "123456789ABCDEF",
- "name": "My network configuration",
- "compute_service": "actions",
- "network_settings_ids": [
- "23456789ABDCEF1",
- "3456789ABDCEF12"
- ],
- "created_on": "2022-10-09T23:39:01Z"
- },
- "schema": {
- "title": "Hosted compute network configuration",
- "description": "A hosted compute network configuration.",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier of the network configuration.",
- "type": "string",
- "examples": [
- "123ABC456DEF789"
- ]
- },
- "name": {
- "description": "The name of the network configuration.",
- "type": "string",
- "examples": [
- "my-network-configuration"
- ]
- },
- "compute_service": {
- "description": "The hosted compute service the network configuration supports.",
- "type": "string",
- "enum": [
- "none",
- "actions",
- "codespaces"
- ]
- },
- "network_settings_ids": {
- "description": "The unique identifier of each network settings in the configuration.",
- "type": "array",
- "items": {
- "type": "string"
- },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
"examples": [
- "123ABC456DEF789"
+ true
+ ]
+ },
+ "created_on": {
+ "description": "The time at which the network configuration was created, in ISO 8601 format.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2024-04-26T11:31:07Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "created_on"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Network configurations\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}",
+ "title": "Get a hosted compute network configuration for an organization",
+ "category": "orgs",
+ "subcategory": "network-configurations",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "network_configuration_id",
+ "description": "Unique identifier of the hosted compute network configuration.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a hosted compute network configuration configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG",
+ "network_configuration_id": "NETWORK_CONFIGURATION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": "123456789ABCDEF",
+ "name": "My network configuration",
+ "compute_service": "actions",
+ "network_settings_ids": [
+ "23456789ABDCEF1",
+ "3456789ABDCEF12"
+ ],
+ "created_on": "2022-10-09T23:39:01Z"
+ },
+ "schema": {
+ "title": "Hosted compute network configuration",
+ "description": "A hosted compute network configuration.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the network configuration.",
+ "type": "string",
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "name": {
+ "description": "The name of the network configuration.",
+ "type": "string",
+ "examples": [
+ "my-network-configuration"
+ ]
+ },
+ "compute_service": {
+ "description": "The hosted compute service the network configuration supports.",
+ "type": "string",
+ "enum": [
+ "none",
+ "actions",
+ "codespaces"
+ ]
+ },
+ "network_settings_ids": {
+ "description": "The unique identifier of each network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "created_on": {
+ "description": "The time at which the network configuration was created, in ISO 8601 format.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2024-04-26T11:31:07Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "created_on"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Network configurations\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}",
+ "title": "Update a hosted compute network configuration for an organization",
+ "category": "orgs",
+ "subcategory": "network-configurations",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "network_configuration_id",
+ "description": "Unique identifier of the hosted compute network configuration.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
"
+ },
+ {
+ "type": "string",
+ "name": "compute_service",
+ "in": "body",
+ "description": "The hosted compute service to use for the network configuration.
",
+ "enum": [
+ "none",
+ "actions"
+ ]
+ },
+ {
+ "type": "array of strings",
+ "name": "network_settings_ids",
+ "in": "body",
+ "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
"
+ }
+ ],
+ "descriptionHTML": "Updates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "my-network-configuration",
+ "network_settings_ids": [
+ "23456789ABDCEF1"
+ ],
+ "compute_service": "actions"
+ },
+ "parameters": {
+ "org": "ORG",
+ "network_configuration_id": "NETWORK_CONFIGURATION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": "123456789ABCDEF",
+ "name": "My network configuration",
+ "compute_service": "actions",
+ "network_settings_ids": [
+ "23456789ABDCEF1",
+ "3456789ABDCEF12"
+ ],
+ "created_on": "2022-10-09T23:39:01Z"
+ },
+ "schema": {
+ "title": "Hosted compute network configuration",
+ "description": "A hosted compute network configuration.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the network configuration.",
+ "type": "string",
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "name": {
+ "description": "The name of the network configuration.",
+ "type": "string",
+ "examples": [
+ "my-network-configuration"
+ ]
+ },
+ "compute_service": {
+ "description": "The hosted compute service the network configuration supports.",
+ "type": "string",
+ "enum": [
+ "none",
+ "actions",
+ "codespaces"
+ ]
+ },
+ "network_settings_ids": {
+ "description": "The unique identifier of each network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_settings_ids": {
+ "description": "The unique identifier of each failover network settings in the configuration.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "123ABC456DEF789"
+ ]
+ },
+ "failover_network_enabled": {
+ "description": "Indicates whether the failover network resource is enabled.",
+ "type": "boolean",
+ "examples": [
+ true
]
},
"created_on": {
@@ -556630,7 +556945,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -558409,7 +558727,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -570917,7 +571238,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -572225,7 +572549,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -573481,7 +573808,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -575637,1295 +575967,1301 @@
"type": "string"
},
"url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
- },
- "required": [
- "id",
- "name",
- "package_type",
- "visibility",
- "url",
- "html_url",
- "version_count",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": false,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/user/packages",
- "title": "List packages for the authenticated user's namespace",
- "category": "packages",
- "subcategory": "packages",
- "parameters": [
- {
- "name": "package_type",
- "description": "The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string",
- "enum": [
- "npm",
- "maven",
- "rubygems",
- "docker",
- "nuget",
- "container"
- ]
- }
- },
- {
- "name": "visibility",
- "description": "The selected visibility of the packages. This parameter is optional and only filters an existing result set.
\nThe internal visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems internal is synonymous with private.\nFor the list of GitHub Packages registries that support granular permissions, see \"About permissions for GitHub Packages .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "public",
- "private",
- "internal"
- ]
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists packages owned by the authenticated user within the user's namespace.
\nOAuth app tokens and personal access tokens (classic) need the read:packages scope to use this endpoint. For more information, see \"About permissions for GitHub Packages .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 197,
- "name": "hello_docker",
- "package_type": "container",
- "owner": {
- "login": "octocat",
- "id": 9919,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
- "avatar_url": "https://avatars.octocatusercontent.com/u/9919?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "User",
- "site_admin": false
- },
- "version_count": 1,
- "visibility": "private",
- "url": "https://api.github.com/orgs/github/packages/container/hello_docker",
- "created_at": "2020-05-19T22:19:11Z",
- "updated_at": "2020-05-19T22:19:11Z",
- "html_url": "https://github.com/orgs/github/packages/container/package/hello_docker"
- },
- {
- "id": 198,
- "name": "goodbye_docker",
- "package_type": "container",
- "owner": {
- "login": "github",
- "id": 9919,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
- "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "User",
- "site_admin": false
- },
- "version_count": 2,
- "visibility": "private",
- "url": "https://api.github.com/user/octocat/packages/container/goodbye_docker",
- "created_at": "2020-05-20T22:19:11Z",
- "updated_at": "2020-05-20T22:19:11Z",
- "html_url": "https://github.com/user/octocat/packages/container/package/goodbye_docker"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Package",
- "description": "A software package",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the package.",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "name": {
- "description": "The name of the package.",
- "type": "string",
- "examples": [
- "super-linter"
- ]
- },
- "package_type": {
- "type": "string",
- "enum": [
- "npm",
- "maven",
- "rubygems",
- "docker",
- "nuget",
- "container"
- ],
- "examples": [
- "docker"
- ]
- },
- "url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/packages/container/super-linter"
- ]
- },
- "html_url": {
- "type": "string",
- "examples": [
- "https://github.com/orgs/github/packages/container/package/super-linter"
- ]
- },
- "version_count": {
- "description": "The number of versions of the package.",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "visibility": {
- "type": "string",
- "enum": [
- "private",
- "public"
- ],
- "examples": [
- "private"
- ]
- },
- "owner": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "repository": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
"type": [
"string",
"null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
]
},
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "package_type",
+ "visibility",
+ "url",
+ "html_url",
+ "version_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": false,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/user/packages",
+ "title": "List packages for the authenticated user's namespace",
+ "category": "packages",
+ "subcategory": "packages",
+ "parameters": [
+ {
+ "name": "package_type",
+ "description": "The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "npm",
+ "maven",
+ "rubygems",
+ "docker",
+ "nuget",
+ "container"
+ ]
+ }
+ },
+ {
+ "name": "visibility",
+ "description": "The selected visibility of the packages. This parameter is optional and only filters an existing result set.
\nThe internal visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems internal is synonymous with private.\nFor the list of GitHub Packages registries that support granular permissions, see \"About permissions for GitHub Packages .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "public",
+ "private",
+ "internal"
+ ]
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists packages owned by the authenticated user within the user's namespace.
\nOAuth app tokens and personal access tokens (classic) need the read:packages scope to use this endpoint. For more information, see \"About permissions for GitHub Packages .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 197,
+ "name": "hello_docker",
+ "package_type": "container",
+ "owner": {
+ "login": "octocat",
+ "id": 9919,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
+ "avatar_url": "https://avatars.octocatusercontent.com/u/9919?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "version_count": 1,
+ "visibility": "private",
+ "url": "https://api.github.com/orgs/github/packages/container/hello_docker",
+ "created_at": "2020-05-19T22:19:11Z",
+ "updated_at": "2020-05-19T22:19:11Z",
+ "html_url": "https://github.com/orgs/github/packages/container/package/hello_docker"
+ },
+ {
+ "id": 198,
+ "name": "goodbye_docker",
+ "package_type": "container",
+ "owner": {
+ "login": "github",
+ "id": 9919,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
+ "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "version_count": 2,
+ "visibility": "private",
+ "url": "https://api.github.com/user/octocat/packages/container/goodbye_docker",
+ "created_at": "2020-05-20T22:19:11Z",
+ "updated_at": "2020-05-20T22:19:11Z",
+ "html_url": "https://github.com/user/octocat/packages/container/package/goodbye_docker"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Package",
+ "description": "A software package",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the package.",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the package.",
+ "type": "string",
+ "examples": [
+ "super-linter"
+ ]
+ },
+ "package_type": {
+ "type": "string",
+ "enum": [
+ "npm",
+ "maven",
+ "rubygems",
+ "docker",
+ "nuget",
+ "container"
+ ],
+ "examples": [
+ "docker"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/packages/container/super-linter"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/orgs/github/packages/container/package/super-linter"
+ ]
+ },
+ "version_count": {
+ "description": "The number of versions of the package.",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "visibility": {
+ "type": "string",
+ "enum": [
+ "private",
+ "public"
+ ],
+ "examples": [
+ "private"
+ ]
+ },
+ "owner": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"node_id": {
"type": "string"
}
@@ -578229,7 +578565,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -580346,7 +580685,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -581654,7 +581996,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -582977,7 +583322,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -597731,223 +598079,30 @@
}
}
],
- "bodyParameters": [
- {
- "type": "string",
- "name": "type",
- "in": "body",
- "description": "The type of item to add to the project. Must be either Issue or PullRequest.
",
- "isRequired": true,
- "enum": [
- "Issue",
- "PullRequest"
- ]
- },
- {
- "type": "integer",
- "name": "id",
- "in": "body",
- "description": "The unique ID of the issue or pull request to add to the project.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "owner",
- "in": "body",
- "description": "The repository owner login.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "repo",
- "in": "body",
- "description": "The repository name.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "number",
- "in": "body",
- "description": "The issue or pull request number.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Add an issue or pull request item to the specified organization owned project.
",
- "codeExamples": [],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Projects\" organization permissions": "write"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/projectsV2/{project_number}/items/{item_id}",
- "title": "Get an item for an organization owned project",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "item_id",
- "description": "The unique identifier of the project item.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "fields",
- "description": "Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
- "in": "query",
- "required": false,
- "schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "maxItems": 50,
- "items": {
- "type": "string"
- }
- }
- ]
- }
- }
- ],
"bodyParameters": [],
- "descriptionHTML": "Get a specific item from an organization-owned project.
",
+ "descriptionHTML": "Add an issue or pull request item to the specified organization owned project.
",
"codeExamples": [
{
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "org": "ORG",
- "item_id": "ITEM_ID"
- }
- },
+ "key": "issue_with_id",
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Response for adding an issue using its unique ID
",
"example": {
- "id": 13,
- "node_id": "PVTI_lAAFAQ0",
- "project_url": "https://api.github.com/orgs/github/projectsV2/1",
- "content": {
- "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
- "id": 10,
- "node_id": "PR_kwABCg",
- "html_url": "https://github.com/github/Hello-World/pull/6",
- "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
- "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
- "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
- "number": 6,
- "state": "open",
- "locked": false,
- "title": "Issue title",
- "user": {
- "login": "monalisa",
- "id": 161,
- "node_id": "U_kgDMoQ",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "body": "Issue body",
- "created_at": "2025-08-01T18:44:50Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
- "assignee": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "assignees": [
- {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
"login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
@@ -597962,1101 +598117,14 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_reviewers": [
- {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_teams": [],
- "labels": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- },
- "draft": false,
- "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
- "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
- "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "head": {
- "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "base": {
- "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
- "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
- "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
"site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
- },
- "html": {
- "href": "https://github.com/github/Hello-World/pull/6"
- },
- "issue": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6"
- },
- "comments": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
- }
- },
- "author_association": "MEMBER",
- "auto_merge": null,
- "active_lock_reason": null
- },
- "content_type": "PullRequest",
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "created_at": "2025-08-01T18:44:51Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "archived_at": null,
- "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
- "fields": [
- {
- "id": 1,
- "name": "Title",
- "type": "title",
- "value": {
- "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "number": 6,
- "url": "https://github.com/5/1/pull/6",
- "issue_id": 12,
- "state": "open",
- "state_reason": null,
- "is_draft": false
- }
- },
- {
- "id": 2,
- "name": "Assignees",
- "type": "assignees",
- "value": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ]
- },
- {
- "id": 3,
- "name": "Status",
- "type": "single_select",
- "value": {
- "id": "98236657",
- "name": {
- "raw": "Done",
- "html": "Done"
- },
- "color": "PURPLE",
- "description": {
- "raw": "This has been completed",
- "html": "This has been completed"
- }
- }
- },
- {
- "id": 4,
- "name": "Labels",
- "type": "labels",
- "value": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ]
- },
- {
- "id": 5,
- "name": "Linked pull requests",
- "type": "linked_pull_requests",
- "value": []
- },
- {
- "id": 6,
- "name": "Milestone",
- "type": "milestone",
- "value": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- }
- },
- {
- "id": 7,
- "name": "Repository",
- "type": "repository",
- "value": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
}
},
- {
- "id": 8,
- "name": "Type",
- "type": "issue_type",
- "value": null
- },
- {
- "id": 9,
- "name": "Reviewers",
- "type": "reviewers",
- "value": [
- {
- "type": "ReviewRequest",
- "status": "pending",
- "reviewer": {
- "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
- "id": 2,
- "login": "monalisa",
- "url": "https://github.com/monalisa",
- "name": "monalisa",
- "type": "User"
- }
- }
- ]
- },
- {
- "id": 10,
- "name": "Parent issue",
- "type": "parent_issue",
- "value": null
- },
- {
- "id": 11,
- "name": "Sub-issues progress",
- "type": "sub_issues_progress",
- "value": null
- }
- ]
- },
- "schema": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
- "content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
+ "content_type": "DraftIssue",
"creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- },
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Projects\" organization permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/projectsV2/{project_number}/items/{item_id}",
- "title": "Update project item for organization",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "item_id",
- "description": "The unique identifier of the project item.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "array of objects",
- "name": "fields",
- "in": "body",
- "description": "A list of field updates to apply.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "id",
- "description": "The ID of the project field to update.
",
- "isRequired": true
- },
- {
- "type": "null or string or number",
- "name": "value",
- "description": "The new value for the field:
\n\nFor text, number, and date fields, provide the new value directly. \nFor single select and iteration fields, provide the ID of the option or iteration. \nTo clear the field, set this to null. \n ",
- "isRequired": true
- }
- ]
- }
- ],
- "descriptionHTML": "Update a specific item in an organization-owned project.
",
- "codeExamples": [
- {
- "key": "text_field",
- "request": {
- "contentType": "application/json",
- "description": "Update a text field",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 123,
- "value": "Updated text value"
- }
- ]
- },
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "org": "ORG",
- "item_id": "ITEM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 13,
- "node_id": "PVTI_lAAFAQ0",
- "project_url": "https://api.github.com/orgs/github/projectsV2/1",
- "content": {
- "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
- "id": 10,
- "node_id": "PR_kwABCg",
- "html_url": "https://github.com/github/Hello-World/pull/6",
- "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
- "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
- "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
- "number": 6,
- "state": "open",
- "locked": false,
- "title": "Issue title",
- "user": {
- "login": "monalisa",
- "id": 161,
- "node_id": "U_kgDMoQ",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "body": "Issue body",
- "created_at": "2025-08-01T18:44:50Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
- "assignee": {
"login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
@@ -599071,694 +598139,14 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
- "user_view_type": "public",
"site_admin": false
},
- "assignees": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_reviewers": [
- {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_teams": [],
- "labels": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- },
- "draft": false,
- "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
- "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
- "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "head": {
- "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "base": {
- "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
- "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
- "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
- },
- "html": {
- "href": "https://github.com/github/Hello-World/pull/6"
- },
- "issue": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6"
- },
- "comments": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
- }
- },
- "author_association": "MEMBER",
- "auto_merge": null,
- "active_lock_reason": null
- },
- "content_type": "PullRequest",
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "created_at": "2025-08-01T18:44:51Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "archived_at": null,
- "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
- "fields": [
- {
- "id": 1,
- "name": "Title",
- "type": "title",
- "value": {
- "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "number": 6,
- "url": "https://github.com/5/1/pull/6",
- "issue_id": 12,
- "state": "open",
- "state_reason": null,
- "is_draft": false
- }
- },
- {
- "id": 2,
- "name": "Assignees",
- "type": "assignees",
- "value": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ]
- },
- {
- "id": 3,
- "name": "Status",
- "type": "single_select",
- "value": {
- "id": "98236657",
- "name": {
- "raw": "Done",
- "html": "Done"
- },
- "color": "PURPLE",
- "description": {
- "raw": "This has been completed",
- "html": "This has been completed"
- }
- }
- },
- {
- "id": 4,
- "name": "Labels",
- "type": "labels",
- "value": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ]
- },
- {
- "id": 5,
- "name": "Linked pull requests",
- "type": "linked_pull_requests",
- "value": []
- },
- {
- "id": 6,
- "name": "Milestone",
- "type": "milestone",
- "value": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- }
- },
- {
- "id": 7,
- "name": "Repository",
- "type": "repository",
- "value": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
- }
- },
- {
- "id": 8,
- "name": "Type",
- "type": "issue_type",
- "value": null
- },
- {
- "id": 9,
- "name": "Reviewers",
- "type": "reviewers",
- "value": [
- {
- "type": "ReviewRequest",
- "status": "pending",
- "reviewer": {
- "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
- "id": 2,
- "login": "monalisa",
- "url": "https://github.com/monalisa",
- "name": "monalisa",
- "type": "User"
- }
- }
- ]
- },
- {
- "id": 10,
- "name": "Parent issue",
- "type": "parent_issue",
- "value": null
- },
- {
- "id": 11,
- "name": "Sub-issues progress",
- "type": "sub_issues_progress",
- "value": null
- }
- ]
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
},
"schema": {
"title": "Projects v2 Item",
@@ -599773,2099 +598161,31301 @@
"type": "string",
"description": "The node ID of the project item."
},
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
"content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
- "creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- },
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
- }
- },
- {
- "key": "number_field",
- "request": {
- "contentType": "application/json",
- "description": "Update a number field",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 456,
- "value": 42.5
- }
- ]
- },
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "org": "ORG",
- "item_id": "ITEM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 13,
- "node_id": "PVTI_lAAFAQ0",
- "project_url": "https://api.github.com/orgs/github/projectsV2/1",
- "content": {
- "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
- "id": 10,
- "node_id": "PR_kwABCg",
- "html_url": "https://github.com/github/Hello-World/pull/6",
- "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
- "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
- "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
- "number": 6,
- "state": "open",
- "locked": false,
- "title": "Issue title",
- "user": {
- "login": "monalisa",
- "id": 161,
- "node_id": "U_kgDMoQ",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "body": "Issue body",
- "created_at": "2025-08-01T18:44:50Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
- "assignee": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_reviewers": [
- {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_teams": [],
- "labels": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- },
- "draft": false,
- "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
- "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
- "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "head": {
- "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "base": {
- "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
- "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
- "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
- },
- "html": {
- "href": "https://github.com/github/Hello-World/pull/6"
- },
- "issue": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6"
- },
- "comments": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
- }
- },
- "author_association": "MEMBER",
- "auto_merge": null,
- "active_lock_reason": null
- },
- "content_type": "PullRequest",
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "created_at": "2025-08-01T18:44:51Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "archived_at": null,
- "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
- "fields": [
- {
- "id": 1,
- "name": "Title",
- "type": "title",
- "value": {
- "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "number": 6,
- "url": "https://github.com/5/1/pull/6",
- "issue_id": 12,
- "state": "open",
- "state_reason": null,
- "is_draft": false
- }
- },
- {
- "id": 2,
- "name": "Assignees",
- "type": "assignees",
- "value": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ]
- },
- {
- "id": 3,
- "name": "Status",
- "type": "single_select",
- "value": {
- "id": "98236657",
- "name": {
- "raw": "Done",
- "html": "Done"
- },
- "color": "PURPLE",
- "description": {
- "raw": "This has been completed",
- "html": "This has been completed"
- }
- }
- },
- {
- "id": 4,
- "name": "Labels",
- "type": "labels",
- "value": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ]
- },
- {
- "id": 5,
- "name": "Linked pull requests",
- "type": "linked_pull_requests",
- "value": []
- },
- {
- "id": 6,
- "name": "Milestone",
- "type": "milestone",
- "value": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- }
- },
- {
- "id": 7,
- "name": "Repository",
- "type": "repository",
- "value": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
- }
- },
- {
- "id": 8,
- "name": "Type",
- "type": "issue_type",
- "value": null
- },
- {
- "id": 9,
- "name": "Reviewers",
- "type": "reviewers",
- "value": [
- {
- "type": "ReviewRequest",
- "status": "pending",
- "reviewer": {
- "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
- "id": 2,
- "login": "monalisa",
- "url": "https://github.com/monalisa",
- "name": "monalisa",
- "type": "User"
- }
- }
- ]
- },
- {
- "id": 10,
- "name": "Parent issue",
- "type": "parent_issue",
- "value": null
- },
- {
- "id": 11,
- "name": "Sub-issues progress",
- "type": "sub_issues_progress",
- "value": null
- }
- ]
- },
- "schema": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
- "content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
- "creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- },
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
- }
- },
- {
- "key": "date_field",
- "request": {
- "contentType": "application/json",
- "description": "Update a date field",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 789,
- "value": "2023-10-05"
- }
- ]
- },
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "org": "ORG",
- "item_id": "ITEM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 13,
- "node_id": "PVTI_lAAFAQ0",
- "project_url": "https://api.github.com/orgs/github/projectsV2/1",
- "content": {
- "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
- "id": 10,
- "node_id": "PR_kwABCg",
- "html_url": "https://github.com/github/Hello-World/pull/6",
- "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
- "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
- "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
- "number": 6,
- "state": "open",
- "locked": false,
- "title": "Issue title",
- "user": {
- "login": "monalisa",
- "id": 161,
- "node_id": "U_kgDMoQ",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "body": "Issue body",
- "created_at": "2025-08-01T18:44:50Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
- "assignee": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_reviewers": [
- {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_teams": [],
- "labels": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- },
- "draft": false,
- "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
- "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
- "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "head": {
- "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "base": {
- "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
- "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
- "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
- },
- "html": {
- "href": "https://github.com/github/Hello-World/pull/6"
- },
- "issue": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6"
- },
- "comments": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
- }
- },
- "author_association": "MEMBER",
- "auto_merge": null,
- "active_lock_reason": null
- },
- "content_type": "PullRequest",
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "created_at": "2025-08-01T18:44:51Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "archived_at": null,
- "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
- "fields": [
- {
- "id": 1,
- "name": "Title",
- "type": "title",
- "value": {
- "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "number": 6,
- "url": "https://github.com/5/1/pull/6",
- "issue_id": 12,
- "state": "open",
- "state_reason": null,
- "is_draft": false
- }
- },
- {
- "id": 2,
- "name": "Assignees",
- "type": "assignees",
- "value": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ]
- },
- {
- "id": 3,
- "name": "Status",
- "type": "single_select",
- "value": {
- "id": "98236657",
- "name": {
- "raw": "Done",
- "html": "Done"
- },
- "color": "PURPLE",
- "description": {
- "raw": "This has been completed",
- "html": "This has been completed"
- }
- }
- },
- {
- "id": 4,
- "name": "Labels",
- "type": "labels",
- "value": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ]
- },
- {
- "id": 5,
- "name": "Linked pull requests",
- "type": "linked_pull_requests",
- "value": []
- },
- {
- "id": 6,
- "name": "Milestone",
- "type": "milestone",
- "value": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- }
- },
- {
- "id": 7,
- "name": "Repository",
- "type": "repository",
- "value": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
- }
- },
- {
- "id": 8,
- "name": "Type",
- "type": "issue_type",
- "value": null
- },
- {
- "id": 9,
- "name": "Reviewers",
- "type": "reviewers",
- "value": [
+ "oneOf": [
{
- "type": "ReviewRequest",
- "status": "pending",
- "reviewer": {
- "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
- "id": 2,
- "login": "monalisa",
- "url": "https://github.com/monalisa",
- "name": "monalisa",
- "type": "User"
- }
- }
- ]
- },
- {
- "id": 10,
- "name": "Parent issue",
- "type": "parent_issue",
- "value": null
- },
- {
- "id": 11,
- "name": "Sub-issues progress",
- "type": "sub_issues_progress",
- "value": null
- }
- ]
- },
- "schema": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "URL for the issue",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repositories/42/issues/1"
+ ]
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
+ "examples": [
+ "bug",
+ "registration"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "closed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ }
+ },
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ },
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The ID of the draft issue"
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the draft issue"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title of the draft issue"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The body content of the draft issue"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was created"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ],
+ "description": "The content represented by the item."
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add an issue using its unique ID",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "Issue",
+ "id": 3
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "pull_request_with_id",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for adding a pull request using its unique ID
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "content_type": "DraftIssue",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "content": {
+ "oneOf": [
+ {
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "URL for the issue",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repositories/42/issues/1"
+ ]
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
+ "examples": [
+ "bug",
+ "registration"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "closed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ }
+ },
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ },
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The ID of the draft issue"
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the draft issue"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title of the draft issue"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The body content of the draft issue"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was created"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ],
+ "description": "The content represented by the item."
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add a pull request using its unique ID",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "PullRequest",
+ "id": 3
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "issue_with_nwo",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for adding an issue using repository owner, name, and issue number
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "content_type": "DraftIssue",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "content": {
+ "oneOf": [
+ {
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "URL for the issue",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repositories/42/issues/1"
+ ]
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
+ "examples": [
+ "bug",
+ "registration"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "closed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ }
+ },
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ },
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The ID of the draft issue"
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the draft issue"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title of the draft issue"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The body content of the draft issue"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was created"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ],
+ "description": "The content represented by the item."
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add an issue using repository owner, name, and issue number",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "Issue",
+ "owner": "octocat",
+ "repo": "hello-world",
+ "number": 42
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "pull_request_with_nwo",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for adding a pull request using repository owner, name, and PR number
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "content_type": "DraftIssue",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "content": {
+ "oneOf": [
+ {
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "URL for the issue",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repositories/42/issues/1"
+ ]
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
+ "examples": [
+ "bug",
+ "registration"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "closed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ }
+ },
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ },
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The ID of the draft issue"
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the draft issue"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title of the draft issue"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The body content of the draft issue"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was created"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ],
+ "description": "The content represented by the item."
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add a pull request using repository owner, name, and PR number",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "PullRequest",
+ "owner": "octocat",
+ "repo": "hello-world",
+ "number": 123
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Projects\" organization permissions": "write"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/projectsV2/{project_number}/items/{item_id}",
+ "title": "Get an item for an organization owned project",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "item_id",
+ "description": "The unique identifier of the project item.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "fields",
+ "description": "Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 50,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get a specific item from an organization-owned project.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "project_number": "PROJECT_NUMBER",
+ "org": "ORG",
+ "item_id": "ITEM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
+ "id": 10,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
+ "user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
+ },
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
+ }
+ },
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
+ },
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
+ },
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ]
+ },
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
+ },
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
+ },
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
+ },
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
+ },
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
+ }
+ ]
+ },
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
+ }
+ ]
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
},
"content": {
"type": [
@@ -602099,18 +629689,111 @@
]
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Projects\" organization permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/orgs/{org}/projectsV2/{project_number}/items/{item_id}",
+ "title": "Update project item for organization",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
},
{
- "key": "single_select_field",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "item_id",
+ "description": "The unique identifier of the project item.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "array of objects",
+ "name": "fields",
+ "in": "body",
+ "description": "A list of field updates to apply.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "id",
+ "description": "The ID of the project field to update.
",
+ "isRequired": true
+ },
+ {
+ "type": "null or string or number",
+ "name": "value",
+ "description": "The new value for the field:
\n\nFor text, number, and date fields, provide the new value directly. \nFor single select and iteration fields, provide the ID of the option or iteration. \nTo clear the field, set this to null. \n ",
+ "isRequired": true
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Update a specific item in an organization-owned project.
",
+ "codeExamples": [
+ {
+ "key": "text_field",
"request": {
"contentType": "application/json",
- "description": "Update a single select field",
+ "description": "Update a text field",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"fields": [
{
- "id": 789,
- "value": "47fc9ee4"
+ "id": 123,
+ "value": "Updated text value"
}
]
},
@@ -603139,16 +630822,16 @@
}
},
{
- "key": "iteration_field",
+ "key": "number_field",
"request": {
"contentType": "application/json",
- "description": "Update an iteration field",
+ "description": "Update a number field",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"fields": [
{
- "id": 1011,
- "value": "866ee5b8"
+ "id": 456,
+ "value": 42.5
}
]
},
@@ -604175,220 +631858,27 @@
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Projects\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/projectsV2/{project_number}/items/{item_id}",
- "title": "Delete project item for organization",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
},
{
- "name": "item_id",
- "description": "The unique identifier of the project item.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Delete a specific item from an organization-owned project.
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "date_field",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Update a date field",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "fields": [
+ {
+ "id": 789,
+ "value": "2023-10-05"
+ }
+ ]
+ },
"parameters": {
"project_number": "PROJECT_NUMBER",
"org": "ORG",
"item_id": "ITEM_ID"
}
},
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Projects\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/users/{username}/projectsV2/{project_number}/items",
- "title": "List items for a user owned project",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "username",
- "description": "The handle for the GitHub user account.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "q",
- "description": "Search query to filter items, see Filtering projects for more information.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "fields",
- "description": "Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
- "in": "query",
- "required": false,
- "schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "maxItems": 50,
- "items": {
- "type": "string"
- }
- }
- ]
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List all items for a specific user-owned project accessible by the authenticated user.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "username": "USERNAME"
- }
- },
"response": {
"statusCode": "200",
"contentType": "application/json",
@@ -605144,462 +632634,286 @@
]
},
"schema": {
- "type": "array",
- "items": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
- "content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
- "creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "description": "The fields and values associated with this item."
- }
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
},
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
+ ]
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/users/{username}/projectsV2/{project_number}/items",
- "title": "Add item to user owned project",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "username",
- "description": "The handle for the GitHub user account.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "type",
- "in": "body",
- "description": "The type of item to add to the project. Must be either Issue or PullRequest.
",
- "isRequired": true,
- "enum": [
- "Issue",
- "PullRequest"
- ]
- },
- {
- "type": "integer",
- "name": "id",
- "in": "body",
- "description": "The unique ID of the issue or pull request to add to the project.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "owner",
- "in": "body",
- "description": "The repository owner login.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "repo",
- "in": "body",
- "description": "The repository name.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "number",
- "in": "body",
- "description": "The issue or pull request number.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Add an issue or pull request item to the specified user owned project.
",
- "codeExamples": [],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/users/{username}/projectsV2/{project_number}/items/{item_id}",
- "title": "Get an item for a user owned project",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "username",
- "description": "The handle for the GitHub user account.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
},
{
- "name": "item_id",
- "description": "The unique identifier of the project item.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "fields",
- "description": "Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
- "in": "query",
- "required": false,
- "schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "maxItems": 50,
- "items": {
- "type": "string"
- }
- }
- ]
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a specific item from a user-owned project.
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "single_select_field",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Update a single select field",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "fields": [
+ {
+ "id": 789,
+ "value": "47fc9ee4"
+ }
+ ]
+ },
"parameters": {
"project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
+ "org": "ORG",
"item_id": "ITEM_ID"
}
},
@@ -606616,116 +633930,28 @@
"content_type",
"created_at",
"updated_at",
- "archived_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/users/{username}/projectsV2/{project_number}/items/{item_id}",
- "title": "Update project item for user",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "username",
- "description": "The handle for the GitHub user account.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "item_id",
- "description": "The unique identifier of the project item.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "array of objects",
- "name": "fields",
- "in": "body",
- "description": "A list of field updates to apply.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "id",
- "description": "The ID of the project field to update.
",
- "isRequired": true
- },
- {
- "type": "null or string or number",
- "name": "value",
- "description": "The new value for the field:
\n\nFor text, number, and date fields, provide the new value directly. \nFor single select and iteration fields, provide the ID of the option or iteration. \nTo clear the field, set this to null. \n ",
- "isRequired": true
+ "archived_at"
+ ]
}
- ]
- }
- ],
- "descriptionHTML": "Update a specific item in a user-owned project.
",
- "codeExamples": [
+ }
+ },
{
- "key": "text_field",
+ "key": "iteration_field",
"request": {
"contentType": "application/json",
- "description": "Update a text field",
+ "description": "Update an iteration field",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"fields": [
{
- "id": 123,
- "value": "Updated text value"
+ "id": 1011,
+ "value": "866ee5b8"
}
]
},
"parameters": {
"project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
+ "org": "ORG",
"item_id": "ITEM_ID"
}
},
@@ -607746,27 +634972,221 @@
]
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "key": "number_field",
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Projects\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/orgs/{org}/projectsV2/{project_number}/items/{item_id}",
+ "title": "Delete project item for organization",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "item_id",
+ "description": "The unique identifier of the project item.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Delete a specific item from an organization-owned project.
",
+ "codeExamples": [
+ {
+ "key": "default",
"request": {
- "contentType": "application/json",
- "description": "Update a number field",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 456,
- "value": 42.5
- }
- ]
- },
"parameters": {
"project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
+ "org": "ORG",
"item_id": "ITEM_ID"
}
},
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Projects\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/projectsV2/{project_number}/views/{view_number}/items",
+ "title": "List items for an organization project view",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "view_number",
+ "description": "The number that identifies the project view.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "fields",
+ "description": "Limit results to specific fields, by their IDs. If not specified, the\ntitle field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 50,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List items in an organization project with the saved view's filter applied.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "project_number": "PROJECT_NUMBER",
+ "org": "ORG",
+ "view_number": "VIEW_NUMBER"
+ }
+ },
"response": {
"statusCode": "200",
"contentType": "application/json",
@@ -608522,287 +635942,402 @@
]
},
"schema": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
- "content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
- "creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "type": "array",
+ "items": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
- "additionalProperties": true
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
},
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
+ ]
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "key": "date_field",
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Projects\" organization permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/users/{username}/projectsV2/{project_number}/items",
+ "title": "List items for a user owned project",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "q",
+ "description": "Search query to filter items, see Filtering projects for more information.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "fields",
+ "description": "Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 50,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List all items for a specific user-owned project accessible by the authenticated user.
",
+ "codeExamples": [
+ {
+ "key": "default",
"request": {
- "contentType": "application/json",
- "description": "Update a date field",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 789,
- "value": "2023-10-05"
- }
- ]
- },
"parameters": {
"project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
- "item_id": "ITEM_ID"
+ "username": "USERNAME"
}
},
"response": {
@@ -609559,6 +637094,396 @@
}
]
},
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
+ ]
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/users/{username}/projectsV2/{project_number}/items",
+ "title": "Add item to user owned project",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Add an issue or pull request item to the specified user owned project.
",
+ "codeExamples": [
+ {
+ "key": "issue_with_id",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for adding an issue using its unique ID
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "content_type": "DraftIssue",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
+ },
"schema": {
"title": "Projects v2 Item",
"description": "An item belonging to a project",
@@ -609572,2089 +637497,7308 @@
"type": "string",
"description": "The node ID of the project item."
},
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
"content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
- "creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "oneOf": [
+ {
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "URL for the issue",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repositories/42/issues/1"
+ ]
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
+ "examples": [
+ "bug",
+ "registration"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "comments": {
+ "type": "integer"
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "closed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ }
+ },
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- },
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
- }
- },
- {
- "key": "single_select_field",
- "request": {
- "contentType": "application/json",
- "description": "Update a single select field",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 789,
- "value": "47fc9ee4"
- }
- ]
- },
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
- "item_id": "ITEM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 13,
- "node_id": "PVTI_lAAFAQ0",
- "project_url": "https://api.github.com/orgs/github/projectsV2/1",
- "content": {
- "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
- "id": 10,
- "node_id": "PR_kwABCg",
- "html_url": "https://github.com/github/Hello-World/pull/6",
- "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
- "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
- "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
- "number": 6,
- "state": "open",
- "locked": false,
- "title": "Issue title",
- "user": {
- "login": "monalisa",
- "id": 161,
- "node_id": "U_kgDMoQ",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "body": "Issue body",
- "created_at": "2025-08-01T18:44:50Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
- "assignee": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_reviewers": [
- {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_teams": [],
- "labels": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- },
- "draft": false,
- "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
- "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
- "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "head": {
- "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "base": {
- "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
- "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
- "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
- },
- "html": {
- "href": "https://github.com/github/Hello-World/pull/6"
- },
- "issue": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6"
- },
- "comments": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
- }
- },
- "author_association": "MEMBER",
- "auto_merge": null,
- "active_lock_reason": null
- },
- "content_type": "PullRequest",
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "created_at": "2025-08-01T18:44:51Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "archived_at": null,
- "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
- "fields": [
- {
- "id": 1,
- "name": "Title",
- "type": "title",
- "value": {
- "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "number": 6,
- "url": "https://github.com/5/1/pull/6",
- "issue_id": 12,
- "state": "open",
- "state_reason": null,
- "is_draft": false
- }
- },
- {
- "id": 2,
- "name": "Assignees",
- "type": "assignees",
- "value": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ]
- },
- {
- "id": 3,
- "name": "Status",
- "type": "single_select",
- "value": {
- "id": "98236657",
- "name": {
- "raw": "Done",
- "html": "Done"
- },
- "color": "PURPLE",
- "description": {
- "raw": "This has been completed",
- "html": "This has been completed"
- }
- }
- },
- {
- "id": 4,
- "name": "Labels",
- "type": "labels",
- "value": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ]
- },
- {
- "id": 5,
- "name": "Linked pull requests",
- "type": "linked_pull_requests",
- "value": []
- },
- {
- "id": 6,
- "name": "Milestone",
- "type": "milestone",
- "value": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- }
- },
- {
- "id": 7,
- "name": "Repository",
- "type": "repository",
- "value": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
},
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
- }
- },
- {
- "id": 8,
- "name": "Type",
- "type": "issue_type",
- "value": null
- },
- {
- "id": 9,
- "name": "Reviewers",
- "type": "reviewers",
- "value": [
{
- "type": "ReviewRequest",
- "status": "pending",
- "reviewer": {
- "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
- "id": 2,
- "login": "monalisa",
- "url": "https://github.com/monalisa",
- "name": "monalisa",
- "type": "User"
- }
- }
- ]
- },
- {
- "id": 10,
- "name": "Parent issue",
- "type": "parent_issue",
- "value": null
- },
- {
- "id": 11,
- "name": "Sub-issues progress",
- "type": "sub_issues_progress",
- "value": null
- }
- ]
- },
- "schema": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
- },
- "content_type": {
- "title": "Projects v2 Item Content Type",
- "description": "The type of content tracked in a project item",
- "type": "string",
- "enum": [
- "Issue",
- "PullRequest",
- "DraftIssue"
- ]
- },
- "content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
- "creator": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The ID of the draft issue"
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the draft issue"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title of the draft issue"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The body content of the draft issue"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was created"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- },
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
- }
- },
- {
- "key": "iteration_field",
- "request": {
- "contentType": "application/json",
- "description": "Update an iteration field",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "fields": [
- {
- "id": 1011,
- "value": "866ee5b8"
- }
- ]
- },
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
- "item_id": "ITEM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 13,
- "node_id": "PVTI_lAAFAQ0",
- "project_url": "https://api.github.com/orgs/github/projectsV2/1",
- "content": {
- "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
- "id": 10,
- "node_id": "PR_kwABCg",
- "html_url": "https://github.com/github/Hello-World/pull/6",
- "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
- "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
- "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
- "number": 6,
- "state": "open",
- "locked": false,
- "title": "Issue title",
- "user": {
- "login": "monalisa",
- "id": 161,
- "node_id": "U_kgDMoQ",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "body": "Issue body",
- "created_at": "2025-08-01T18:44:50Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
- "assignee": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_reviewers": [
- {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ],
- "requested_teams": [],
- "labels": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- },
- "draft": false,
- "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
- "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
- "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "head": {
- "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
- "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "base": {
- "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
- "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
- "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
- "user": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "repo": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
- "created_at": "2025-08-01T18:44:14Z",
- "updated_at": "2025-08-01T18:48:38Z",
- "pushed_at": "2025-08-01T18:44:50Z",
- "git_url": "git://github.localhost/github/Hello-World.git",
- "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
- "clone_url": "https://github.com/github/Hello-World.git",
- "svn_url": "https://github.com/github/Hello-World",
- "homepage": null,
- "size": 6,
- "stargazers_count": 0,
- "watchers_count": 0,
- "language": null,
- "has_issues": true,
- "has_projects": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": false,
- "has_discussions": false,
- "forks_count": 0,
- "mirror_url": null,
- "archived": false,
- "disabled": false,
- "open_issues_count": 3,
- "license": null,
- "allow_forking": true,
- "is_template": false,
- "web_commit_signoff_required": false,
- "topics": [],
- "visibility": "public",
- "forks": 0,
- "open_issues": 3,
- "watchers": 0,
- "default_branch": "main"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
- },
- "html": {
- "href": "https://github.com/github/Hello-World/pull/6"
- },
- "issue": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6"
- },
- "comments": {
- "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
- }
- },
- "author_association": "MEMBER",
- "auto_merge": null,
- "active_lock_reason": null
- },
- "content_type": "PullRequest",
- "creator": {
- "login": "monalisa",
- "id": 2,
- "node_id": "U_kgAC",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "created_at": "2025-08-01T18:44:51Z",
- "updated_at": "2025-08-06T19:25:18Z",
- "archived_at": null,
- "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
- "fields": [
- {
- "id": 1,
- "name": "Title",
- "type": "title",
- "value": {
- "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
- "number": 6,
- "url": "https://github.com/5/1/pull/6",
- "issue_id": 12,
- "state": "open",
- "state_reason": null,
- "is_draft": false
- }
- },
- {
- "id": 2,
- "name": "Assignees",
- "type": "assignees",
- "value": [
- {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- }
- ]
- },
- {
- "id": 3,
- "name": "Status",
- "type": "single_select",
- "value": {
- "id": "98236657",
- "name": {
- "raw": "Done",
- "html": "Done"
- },
- "color": "PURPLE",
- "description": {
- "raw": "This has been completed",
- "html": "This has been completed"
- }
- }
- },
- {
- "id": 4,
- "name": "Labels",
- "type": "labels",
- "value": [
- {
- "id": 19,
- "node_id": "LA_kwABEw",
- "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
- "name": "bug :bug:",
- "color": "efe24f",
- "default": false,
- "description": "Something isn't working"
- },
- {
- "id": 26,
- "node_id": "LA_kwABGg",
- "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
- "name": "fun size 🍫",
- "color": "f29c24",
- "default": false,
- "description": "Extra attention is needed"
- },
- {
- "id": 33,
- "node_id": "LA_kwABIQ",
- "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
- "name": "🚒 wontfix",
- "color": "5891ce",
- "default": false,
- "description": "This will not be worked on"
- }
- ]
- },
- {
- "id": 5,
- "name": "Linked pull requests",
- "type": "linked_pull_requests",
- "value": []
- },
- {
- "id": 6,
- "name": "Milestone",
- "type": "milestone",
- "value": {
- "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
- "html_url": "https://github.com/github/Hello-World/milestone/1",
- "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
- "id": 1,
- "node_id": "MI_kwABAQ",
- "number": 1,
- "title": "Open milestone",
- "description": null,
- "creator": {
- "login": "octocat",
- "id": 175,
- "node_id": "U_kgDMrw",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "user_view_type": "public",
- "site_admin": false
- },
- "open_issues": 2,
- "closed_issues": 1,
- "state": "open",
- "created_at": "2025-08-01T18:44:30Z",
- "updated_at": "2025-08-06T19:14:15Z",
- "due_on": null,
- "closed_at": null
- }
- },
- {
- "id": 7,
- "name": "Repository",
- "type": "repository",
- "value": {
- "id": 1,
- "node_id": "R_kgAB",
- "name": "Hello-World",
- "full_name": "github/Hello-World",
- "private": false,
- "owner": {
- "login": "github",
- "id": 5,
- "node_id": "O_kgAF",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/github",
- "html_url": "https://github.com/github",
- "followers_url": "https://api.github.com/users/github/followers",
- "following_url": "https://api.github.com/users/github/following{/other_user}",
- "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/github/subscriptions",
- "organizations_url": "https://api.github.com/users/github/orgs",
- "repos_url": "https://api.github.com/users/github/repos",
- "events_url": "https://api.github.com/users/github/events{/privacy}",
- "received_events_url": "https://api.github.com/users/github/received_events",
- "type": "Organization",
- "user_view_type": "public",
- "site_admin": false
- },
- "html_url": "https://github.com/github/Hello-World",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/github/Hello-World",
- "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
- "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
- "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
- "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
- "events_url": "https://api.github.com/repos/github/Hello-World/events",
- "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
- "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
- "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
- "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
- "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
- "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
- "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
- "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
- "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
- "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
- "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
- "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
- "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
- "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
- }
- },
- {
- "id": 8,
- "name": "Type",
- "type": "issue_type",
- "value": null
- },
- {
- "id": 9,
- "name": "Reviewers",
- "type": "reviewers",
- "value": [
- {
- "type": "ReviewRequest",
- "status": "pending",
- "reviewer": {
- "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
- "id": 2,
- "login": "monalisa",
- "url": "https://github.com/monalisa",
- "name": "monalisa",
- "type": "User"
- }
- }
- ]
- },
- {
- "id": 10,
- "name": "Parent issue",
- "type": "parent_issue",
- "value": null
- },
- {
- "id": 11,
- "name": "Sub-issues progress",
- "type": "sub_issues_progress",
- "value": null
- }
- ]
- },
- "schema": {
- "title": "Projects v2 Item",
- "description": "An item belonging to a project",
- "type": "object",
- "properties": {
- "id": {
- "type": "number",
- "description": "The unique identifier of the project item."
- },
- "node_id": {
- "type": "string",
- "description": "The node ID of the project item."
- },
- "project_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL of the project that contains this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/3"
- ]
+ "description": "The content represented by the item."
},
"content_type": {
"title": "Projects v2 Item Content Type",
@@ -611666,14 +644810,6 @@
"DraftIssue"
]
},
- "content": {
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true,
- "description": "The content of the item, which varies by content type."
- },
"creator": {
"title": "Simple User",
"description": "A GitHub user.",
@@ -611842,361 +644978,85 @@
"url"
]
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was created.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the item was last updated.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time when the item was archived.",
- "examples": [
- "2022-04-28T12:00:00Z"
- ]
- },
- "item_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL of this item.",
- "examples": [
- "https://api.github.com/users/monalisa/2/projectsV2/items/3"
- ]
- },
- "fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- },
- "description": "The fields and values associated with this item."
- }
- },
- "required": [
- "id",
- "content_type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/users/{username}/projectsV2/{project_number}/items/{item_id}",
- "title": "Delete project item for user",
- "category": "projects",
- "subcategory": "items",
- "parameters": [
- {
- "name": "project_number",
- "description": "The project's number.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "username",
- "description": "The handle for the GitHub user account.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "item_id",
- "description": "The unique identifier of the project item.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Delete a specific item from a user-owned project.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "project_number": "PROJECT_NUMBER",
- "username": "USERNAME",
- "item_id": "ITEM_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- }
- ]
- },
- "pulls": {
- "pulls": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls",
- "title": "List pull requests",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "state",
- "description": "Either open, closed, or all to filter by state.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- }
- },
- {
- "name": "head",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "base",
- "description": "Filter pulls by base branch name. Example: gh-pages.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "description": "What to sort results by. popularity will sort by the number of comments. long-running will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "popularity",
- "long-running"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The direction of the sort. Default: desc when sort is created or sort is not specified, otherwise asc.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists pull requests in a specified repository.
\nDraft pull requests are available in public repositories with GitHub\nFree and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing\nplans, and in public and private repositories with GitHub Team and GitHub Enterprise\nCloud. For more information, see GitHub's products \nin the GitHub Help documentation.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Add an issue using its unique ID",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "Issue",
+ "id": 3
+ },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO"
+ "username": "USERNAME",
+ "project_number": "PROJECT_NUMBER"
}
- },
+ }
+ },
+ {
+ "key": "pull_request_with_id",
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
- "id": 1,
- "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
- "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
- "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
- "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "number": 1347,
- "state": "open",
- "locked": true,
- "title": "Amazing new feature",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Please pull these awesome changes in!",
- "labels": [
- {
- "id": 208045946,
- "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
- "name": "bug",
- "description": "Something isn't working",
- "color": "f29513",
- "default": true
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
- "number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
- "creator": {
+ "description": "Response for adding a pull request using its unique ID
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -612215,21 +645075,10 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- },
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
+ }
},
- "active_lock_reason": "too heated",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:01:12Z",
- "closed_at": "2011-01-26T19:01:12Z",
- "merged_at": "2011-01-26T19:01:12Z",
- "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
- "assignee": {
+ "content_type": "DraftIssue",
+ "creator": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -612249,714 +645098,31 @@
"type": "User",
"site_admin": false
},
- "assignees": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- {
- "login": "hubot",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/hubot_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/hubot",
- "html_url": "https://github.com/hubot",
- "followers_url": "https://api.github.com/users/hubot/followers",
- "following_url": "https://api.github.com/users/hubot/following{/other_user}",
- "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
- "organizations_url": "https://api.github.com/users/hubot/orgs",
- "repos_url": "https://api.github.com/users/hubot/repos",
- "events_url": "https://api.github.com/users/hubot/events{/privacy}",
- "received_events_url": "https://api.github.com/users/hubot/received_events",
- "type": "User",
- "site_admin": true
- }
- ],
- "requested_reviewers": [
- {
- "login": "other_user",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/other_user_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/other_user",
- "html_url": "https://github.com/other_user",
- "followers_url": "https://api.github.com/users/other_user/followers",
- "following_url": "https://api.github.com/users/other_user/following{/other_user}",
- "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
- "organizations_url": "https://api.github.com/users/other_user/orgs",
- "repos_url": "https://api.github.com/users/other_user/repos",
- "events_url": "https://api.github.com/users/other_user/events{/privacy}",
- "received_events_url": "https://api.github.com/users/other_user/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "requested_teams": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "permission": "admin",
- "notification_setting": "notifications_enabled",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
- }
- ],
- "head": {
- "label": "octocat:new-topic",
- "ref": "new-topic",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "template_repository": null,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "base": {
- "label": "octocat:master",
- "ref": "master",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "template_repository": null,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1347"
- },
- "issue": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- },
- "comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- }
- },
- "author_association": "OWNER",
- "auto_merge": null,
- "draft": false
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
}
- ],
+ },
"schema": {
- "type": "array",
- "items": {
- "title": "Pull Request Simple",
- "description": "Pull Request Simple",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOlB1bGxSZXF1ZXN0MQ=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347"
- ]
- },
- "diff_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.diff"
- ]
- },
- "patch_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.patch"
- ]
- },
- "issue_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- },
- "commits_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- ]
- },
- "review_comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- ]
- },
- "review_comment_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- ]
- },
- "statuses_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "number": {
- "type": "integer",
- "examples": [
- 1347
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "open"
- ]
- },
- "locked": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "title": {
- "type": "string",
- "examples": [
- "new-feature"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Please pull these awesome changes"
- ]
- },
- "labels": {
- "type": "array",
- "items": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "content": {
+ "oneOf": [
+ {
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
"type": "object",
"properties": {
"id": {
@@ -612967,780 +645133,2920 @@
"type": "string"
},
"url": {
- "type": "string"
+ "description": "URL for the issue",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repositories/42/issues/1"
+ ]
},
- "name": {
- "type": "string"
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
},
- "description": {
+ "labels_url": {
"type": "string"
},
- "color": {
- "type": "string"
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
},
- "default": {
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "description",
- "color",
- "default"
- ]
- }
- },
- "milestone": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
- ]
- },
- "labels_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1002604
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
- ]
- },
- "number": {
- "description": "The number of the milestone.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "The state of the milestone.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open",
- "examples": [
- "open"
- ]
- },
- "title": {
- "description": "The title of the milestone.",
- "type": "string",
- "examples": [
- "v1.0"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Tracking milestone for version 1.0"
- ]
- },
- "creator": {
- "anyOf": [
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
{
- "type": "null"
+ "type": "string"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "format": "int64"
},
"node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "type": "string"
},
- "avatar_url": {
+ "url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "format": "uri"
},
- "gravatar_id": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
"type": [
"string",
"null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
]
},
- "type": {
- "type": "string",
- "examples": [
- "User"
+ "color": {
+ "type": [
+ "string",
+ "null"
]
},
- "site_admin": {
+ "default": {
"type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
}
]
},
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
- },
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2012-10-09T23:39:01Z"
- ]
- }
+ "examples": [
+ "bug",
+ "registration"
+ ]
},
- "required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
- "closed_at",
- "id",
- "node_id",
- "labels_url",
- "html_url",
- "number",
- "open_issues",
- "state",
- "title",
- "url",
- "created_at",
- "updated_at"
- ]
- }
- ]
- },
- "active_lock_reason": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "too heated"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merge_commit_sha": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "e5bd3914e2e596debea16f433f57875b5b90bcd6"
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "assignees": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
+ "assignees": {
"type": [
- "string",
+ "array",
"null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
]
},
- "email": {
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
"type": [
"string",
"null"
]
},
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "comments": {
+ "type": "integer"
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
]
},
- "gravatar_id": {
+ "closed_at": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "format": "date-time"
},
- "url": {
+ "created_at": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
+ "format": "date-time"
},
- "html_url": {
+ "updated_at": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "format": "date-time"
},
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
+ "draft": {
+ "type": "boolean"
},
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "closed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
+ "body_html": {
+ "type": "string"
},
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "body_text": {
+ "type": "string"
},
- "subscriptions_url": {
+ "timeline_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
]
},
- "events_url": {
+ "author_association": {
+ "title": "author_association",
"type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "OWNER"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
]
},
- "type": {
- "type": "string",
- "examples": [
- "User"
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
]
},
- "site_admin": {
- "type": "boolean"
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
}
},
"required": [
- "avatar_url",
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
]
- }
- },
- "requested_reviewers": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ },
+ {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
]
},
"id": {
@@ -613753,259 +648059,722 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
]
},
- "avatar_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://github.com/octocat/Hello-World/pull/1347"
]
},
- "url": {
+ "diff_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
]
},
- "html_url": {
+ "patch_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
]
},
- "followers_url": {
+ "issue_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
},
- "gists_url": {
+ "commits_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
]
},
- "starred_url": {
+ "review_comments_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
]
},
- "subscriptions_url": {
+ "review_comment_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
]
},
- "organizations_url": {
+ "comments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
]
},
- "repos_url": {
+ "statuses_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
]
},
- "events_url": {
- "type": "string",
+ "number": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ 1347
]
},
- "received_events_url": {
+ "state": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "open"
]
},
- "type": {
- "type": "string",
+ "locked": {
+ "type": "boolean",
"examples": [
- "User"
+ true
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "title": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "new-feature"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_teams": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
},
- "slug": {
- "type": "string"
- },
- "description": {
+ "body": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
]
},
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
},
- "maintain": {
- "type": "boolean"
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "admin": {
- "type": "boolean"
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
}
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
]
},
- "url": {
- "type": "string",
- "format": "uri"
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
},
- "html_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "2011-01-26T19:01:12Z"
]
},
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
+ "updated_at": {
"type": "string",
- "format": "uri"
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
},
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- 37
+ "2011-01-26T19:01:12Z"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- 42
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
]
},
- "parent": {
+ "assignee": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -614013,1111 +648782,323 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
- "description": "The status of the code search index for this repository",
"properties": {
- "lexical_search_ok": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
"type": "boolean"
},
- "lexical_commit_sha": {
- "type": "string"
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
- }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -615285,2330 +649266,3172 @@
"url"
]
}
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
"type": "object",
"properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
+ "pull": {
+ "type": "boolean"
},
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
+ "triage": {
+ "type": "boolean"
},
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
+ "push": {
+ "type": "boolean"
},
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
+ "maintain": {
+ "type": "boolean"
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri"
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
+ "sha": {
"type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
}
},
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "site_admin": {
- "type": "boolean"
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "required": [
+ "href"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "commits": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
},
- "required": [
- "href"
- ]
- },
- "statuses": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
},
- "required": [
- "href"
- ]
- },
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
},
- "required": [
- "href"
- ]
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
},
- "issue": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ },
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The ID of the draft issue"
},
- "required": [
- "href"
- ]
- },
- "review_comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the draft issue"
},
- "required": [
- "href"
- ]
- },
- "review_comment": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "title": {
+ "type": "string",
+ "description": "The title of the draft issue"
},
- "required": [
- "href"
- ]
- },
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The body content of the draft issue"
},
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "comments",
- "commits",
- "statuses",
- "html",
- "issue",
- "review_comments",
- "review_comment",
- "self"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "auto_merge": {
- "title": "Auto merge",
- "description": "The status of auto merging a pull request.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "enabled_by": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "merge_method": {
- "type": "string",
- "description": "The merge method to use.",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- },
- "commit_title": {
- "type": "string",
- "description": "Title for the merge commit message."
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was created"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
},
- "commit_message": {
- "type": "string",
- "description": "Commit message for the merge commit."
- }
- },
- "required": [
- "enabled_by",
- "merge_method",
- "commit_title",
- "commit_message"
- ]
- },
- "draft": {
- "description": "Indicates whether or not the pull request is a draft.",
- "type": "boolean",
- "examples": [
- false
- ]
- }
- },
- "required": [
- "_links",
- "assignee",
- "labels",
- "base",
- "body",
- "closed_at",
- "comments_url",
- "commits_url",
- "created_at",
- "diff_url",
- "head",
- "html_url",
- "id",
- "node_id",
- "issue_url",
- "merge_commit_sha",
- "merged_at",
- "milestone",
- "number",
- "patch_url",
- "review_comment_url",
- "review_comments_url",
- "statuses_url",
- "state",
- "locked",
- "title",
- "updated_at",
- "url",
- "user",
- "author_association",
- "auto_merge"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls",
- "title": "Create a pull request",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The title of the new pull request. Required unless issue is specified.
"
- },
- {
- "type": "string",
- "name": "head",
- "in": "body",
- "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.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "head_repo",
- "in": "body",
- "description": "The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.
"
- },
- {
- "type": "string",
- "name": "base",
- "in": "body",
- "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.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The contents of the pull request.
"
- },
- {
- "type": "boolean",
- "name": "maintainer_can_modify",
- "in": "body",
- "description": "Indicates whether maintainers can modify the pull request.
"
- },
- {
- "type": "boolean",
- "name": "draft",
- "in": "body",
- "description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests \" in the GitHub Help documentation to learn more.
"
- },
- {
- "type": "integer",
- "name": "issue",
- "in": "body",
- "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
"
- }
- ],
- "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Amazing new feature",
- "body": "Please pull these awesome changes in!",
- "head": "octocat:new-feature",
- "base": "master"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
- "id": 1,
- "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
- "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
- "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
- "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "number": 1347,
- "state": "open",
- "locked": true,
- "title": "Amazing new feature",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Please pull these awesome changes in!",
- "labels": [
- {
- "id": 208045946,
- "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
- "name": "bug",
- "description": "Something isn't working",
- "color": "f29513",
- "default": true
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
- "number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
- "creator": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
- },
- "active_lock_reason": "too heated",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:01:12Z",
- "closed_at": "2011-01-26T19:01:12Z",
- "merged_at": "2011-01-26T19:01:12Z",
- "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
- "assignee": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- {
- "login": "hubot",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/hubot_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/hubot",
- "html_url": "https://github.com/hubot",
- "followers_url": "https://api.github.com/users/hubot/followers",
- "following_url": "https://api.github.com/users/hubot/following{/other_user}",
- "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
- "organizations_url": "https://api.github.com/users/hubot/orgs",
- "repos_url": "https://api.github.com/users/hubot/repos",
- "events_url": "https://api.github.com/users/hubot/events{/privacy}",
- "received_events_url": "https://api.github.com/users/hubot/received_events",
- "type": "User",
- "site_admin": true
- }
- ],
- "requested_reviewers": [
- {
- "login": "other_user",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/other_user_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/other_user",
- "html_url": "https://github.com/other_user",
- "followers_url": "https://api.github.com/users/other_user/followers",
- "following_url": "https://api.github.com/users/other_user/following{/other_user}",
- "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
- "organizations_url": "https://api.github.com/users/other_user/orgs",
- "repos_url": "https://api.github.com/users/other_user/repos",
- "events_url": "https://api.github.com/users/other_user/events{/privacy}",
- "received_events_url": "https://api.github.com/users/other_user/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "requested_teams": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- }
- ],
- "head": {
- "label": "octocat:new-topic",
- "ref": "new-topic",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "forks": 123,
- "open_issues": 123,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "watchers": 123
- }
- },
- "base": {
- "label": "octocat:master",
- "ref": "master",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_merge_commit": true,
- "forks": 123,
- "open_issues": 123,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "watchers": 123
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1347"
- },
- "issue": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- },
- "comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- }
- },
- "author_association": "OWNER",
- "auto_merge": null,
- "draft": false,
- "merged": false,
- "mergeable": true,
- "rebaseable": true,
- "mergeable_state": "clean",
- "merged_by": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "comments": 10,
- "review_comments": 0,
- "maintainer_can_modify": true,
- "commits": 3,
- "additions": 100,
- "deletions": 3,
- "changed_files": 5
- },
- "schema": {
- "type": "object",
- "title": "Pull Request",
- "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOlB1bGxSZXF1ZXN0MQ=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347"
- ]
- },
- "diff_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.diff"
- ]
- },
- "patch_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.patch"
- ]
- },
- "issue_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- },
- "commits_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- ]
- },
- "review_comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- ]
- },
- "review_comment_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- ]
+ "description": "The content represented by the item."
},
- "statuses_url": {
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "number": {
- "description": "Number uniquely identifying the pull request within its repository.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
"enum": [
- "open",
- "closed"
- ],
- "type": "string",
- "examples": [
- "open"
- ]
- },
- "locked": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "title": {
- "description": "The title of the pull request.",
- "type": "string",
- "examples": [
- "Amazing new feature"
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
]
},
- "user": {
+ "creator": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -617776,136 +652599,1206 @@
"url"
]
},
- "body": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
"type": [
"string",
"null"
],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
"examples": [
- "Please pull these awesome changes"
+ "2022-04-28T12:00:00Z"
]
},
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "description",
- "color",
- "default"
- ]
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add a pull request using its unique ID",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "PullRequest",
+ "id": 3
+ },
+ "parameters": {
+ "username": "USERNAME",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "issue_with_nwo",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for adding an issue using repository owner, name, and issue number
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
}
},
- "milestone": {
- "anyOf": [
- {
- "type": "null"
- },
+ "content_type": "DraftIssue",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "content": {
+ "oneOf": [
{
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
"type": "object",
"properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
"url": {
+ "description": "URL for the issue",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ "https://api.github.com/repositories/42/issues/1"
+ ]
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "state_reason": {
+ "description": "The reason for the current state",
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
+ "examples": [
+ "not_planned"
+ ]
+ },
+ "title": {
+ "description": "Title of the issue",
+ "type": "string",
+ "examples": [
+ "Widget creation fails in Safari on OS X 10.8"
+ ]
+ },
+ "body": {
+ "description": "Contents of the issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
+ "examples": [
+ "bug",
+ "registration"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
- ]
+ "locked": {
+ "type": "boolean"
},
- "labels_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
]
},
- "id": {
- "type": "integer",
- "examples": [
- 1002604
- ]
+ "comments": {
+ "type": "integer"
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
]
},
- "number": {
- "description": "The number of the milestone.",
- "type": "integer",
- "examples": [
- 42
- ]
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
},
- "state": {
- "description": "The state of the milestone.",
+ "created_at": {
"type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open",
- "examples": [
- "open"
- ]
+ "format": "date-time"
},
- "title": {
- "description": "The title of the milestone.",
+ "updated_at": {
"type": "string",
- "examples": [
- "v1.0"
- ]
+ "format": "date-time"
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Tracking milestone for version 1.0"
- ]
+ "draft": {
+ "type": "boolean"
},
- "creator": {
+ "closed_by": {
"anyOf": [
{
"type": "null"
@@ -618053,3258 +653946,1728 @@
"user_view_type": {
"type": "string",
"examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
- },
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2012-10-09T23:39:01Z"
- ]
- }
- },
- "required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
- "closed_at",
- "id",
- "node_id",
- "labels_url",
- "html_url",
- "number",
- "open_issues",
- "state",
- "title",
- "url",
- "created_at",
- "updated_at"
- ]
- }
- ]
- },
- "active_lock_reason": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "too heated"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merge_commit_sha": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "e5bd3914e2e596debea16f433f57875b5b90bcd6"
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "assignees": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_reviewers": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_teams": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
+ "body_html": {
+ "type": "string"
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "body_text": {
+ "type": "string"
},
- "name": {
- "description": "The name of the repository.",
+ "timeline_url": {
"type": "string",
- "examples": [
- "Team Environment"
- ]
+ "format": "uri"
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
]
},
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
"type": "object",
"properties": {
- "key": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "mit"
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "MIT License"
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "avatar_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "spdx_id": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "MIT"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat"
]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
},
- "triage": {
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
"type": "boolean"
},
- "push": {
- "type": "boolean"
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
},
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "login": {
+ "archive_url": {
"type": "string",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "assignees_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "node_id": {
+ "blobs_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "avatar_url": {
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "followers_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "following_url": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "gists_url": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "starred_url": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "subscriptions_url": {
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "type": {
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "site_admin": {
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "public"
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
+ "author_association": {
+ "title": "author_association",
"type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "OWNER"
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
+ "reactions": {
+ "title": "Reaction Rollup",
"type": "object",
- "description": "The status of the code search index for this repository",
"properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "lexical_commit_sha": {
- "type": "string"
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
}
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
]
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
]
},
- "gravatar_id": {
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
+ "format": "uri"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
}
},
"required": [
- "avatar_url",
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "commits": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "statuses": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "issue": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comment": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
]
},
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "comments",
- "commits",
- "statuses",
- "html",
- "issue",
- "review_comments",
- "review_comment",
- "self"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "auto_merge": {
- "title": "Auto merge",
- "description": "The status of auto merging a pull request.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "enabled_by": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
]
},
"id": {
@@ -621317,1504 +655680,3912 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
]
},
"html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://github.com/octocat/Hello-World/pull/1347"
]
},
- "received_events_url": {
+ "diff_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "merge_method": {
- "type": "string",
- "description": "The merge method to use.",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- },
- "commit_title": {
- "type": "string",
- "description": "Title for the merge commit message."
- },
- "commit_message": {
- "type": "string",
- "description": "Commit message for the merge commit."
- }
- },
- "required": [
- "enabled_by",
- "merge_method",
- "commit_title",
- "commit_message"
- ]
- },
- "draft": {
- "description": "Indicates whether or not the pull request is a draft.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "rebaseable": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "mergeable_state": {
- "type": "string",
- "examples": [
- "clean"
- ]
- },
- "merged_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
]
},
- "avatar_url": {
+ "patch_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
]
},
- "url": {
+ "issue_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
},
- "html_url": {
+ "commits_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
]
},
- "followers_url": {
+ "review_comments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
]
},
- "subscriptions_url": {
+ "review_comment_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
]
},
- "organizations_url": {
+ "comments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
]
},
- "repos_url": {
+ "statuses_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
]
},
- "events_url": {
- "type": "string",
+ "number": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ 1347
]
},
- "received_events_url": {
+ "state": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "open"
]
},
- "type": {
- "type": "string",
+ "locked": {
+ "type": "boolean",
"examples": [
- "User"
+ true
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "title": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "new-feature"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "comments": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "review_comments": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "maintainer_can_modify": {
- "description": "Indicates whether maintainers can modify the pull request.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "commits": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "additions": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "deletions": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "changed_files": {
- "type": "integer",
- "examples": [
- 5
- ]
- }
- },
- "required": [
- "_links",
- "assignee",
- "labels",
- "base",
- "body",
- "closed_at",
- "comments_url",
- "commits_url",
- "created_at",
- "diff_url",
- "head",
- "html_url",
- "id",
- "node_id",
- "issue_url",
- "merge_commit_sha",
- "merged_at",
- "milestone",
- "number",
- "patch_url",
- "review_comment_url",
- "review_comments_url",
- "statuses_url",
- "state",
- "locked",
- "title",
- "updated_at",
- "url",
- "user",
- "author_association",
- "auto_merge",
- "additions",
- "changed_files",
- "comments",
- "commits",
- "deletions",
- "mergeable",
- "mergeable_state",
- "merged",
- "maintainer_can_modify",
- "merged_by",
- "review_comments"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}",
- "title": "Get a pull request",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create , or edit a pull request, GitHub Enterprise Cloud 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 \".
\nThe value of the mergeable attribute can be true, false, or null. If the value is null, then GitHub Enterprise Cloud 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.
\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\nIf merged as a merge commit , merge_commit_sha represents the SHA of the merge commit. \nIf merged via a squash , merge_commit_sha represents the SHA of the squashed commit on the base branch. \nIf rebased , merge_commit_sha represents the commit that the base branch was updated to. \n \nPass the appropriate media type to fetch diff and patch formats.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \napplication/vnd.github.diff : For more information, see \"git-diff \" in the Git documentation. If a diff is corrupt, contact us through the GitHub Support portal . Include the repository name and pull request ID in your message. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Pass the appropriate media type to fetch diff and patch formats.
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
- "id": 1,
- "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
- "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
- "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
- "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "number": 1347,
- "state": "open",
- "locked": true,
- "title": "Amazing new feature",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Please pull these awesome changes in!",
- "labels": [
- {
- "id": 208045946,
- "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
- "name": "bug",
- "description": "Something isn't working",
- "color": "f29513",
- "default": true
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
- "number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
- "creator": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
- },
- "active_lock_reason": "too heated",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:01:12Z",
- "closed_at": "2011-01-26T19:01:12Z",
- "merged_at": "2011-01-26T19:01:12Z",
- "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
- "assignee": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- {
- "login": "hubot",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/hubot_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/hubot",
- "html_url": "https://github.com/hubot",
- "followers_url": "https://api.github.com/users/hubot/followers",
- "following_url": "https://api.github.com/users/hubot/following{/other_user}",
- "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
- "organizations_url": "https://api.github.com/users/hubot/orgs",
- "repos_url": "https://api.github.com/users/hubot/repos",
- "events_url": "https://api.github.com/users/hubot/events{/privacy}",
- "received_events_url": "https://api.github.com/users/hubot/received_events",
- "type": "User",
- "site_admin": true
- }
- ],
- "requested_reviewers": [
- {
- "login": "other_user",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/other_user_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/other_user",
- "html_url": "https://github.com/other_user",
- "followers_url": "https://api.github.com/users/other_user/followers",
- "following_url": "https://api.github.com/users/other_user/following{/other_user}",
- "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
- "organizations_url": "https://api.github.com/users/other_user/orgs",
- "repos_url": "https://api.github.com/users/other_user/repos",
- "events_url": "https://api.github.com/users/other_user/events{/privacy}",
- "received_events_url": "https://api.github.com/users/other_user/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "requested_teams": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- }
- ],
- "head": {
- "label": "octocat:new-topic",
- "ref": "new-topic",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "forks": 123,
- "open_issues": 123,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "watchers": 123
- }
- },
- "base": {
- "label": "octocat:master",
- "ref": "master",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_merge_commit": true,
- "forks": 123,
- "open_issues": 123,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "watchers": 123
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1347"
- },
- "issue": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- },
- "comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- }
- },
- "author_association": "OWNER",
- "auto_merge": null,
- "draft": false,
- "merged": false,
- "mergeable": true,
- "rebaseable": true,
- "mergeable_state": "clean",
- "merged_by": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "comments": 10,
- "review_comments": 0,
- "maintainer_can_modify": true,
- "commits": 3,
- "additions": 100,
- "deletions": 3,
- "changed_files": 5
- },
- "schema": {
- "type": "object",
- "title": "Pull Request",
- "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOlB1bGxSZXF1ZXN0MQ=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347"
- ]
- },
- "diff_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.diff"
- ]
- },
- "patch_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.patch"
- ]
- },
- "issue_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- },
- "commits_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- ]
- },
- "review_comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- ]
- },
- "review_comment_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- ]
- },
- "statuses_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "number": {
- "description": "Number uniquely identifying the pull request within its repository.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
- "enum": [
- "open",
- "closed"
- ],
- "type": "string",
- "examples": [
- "open"
- ]
- },
- "locked": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "title": {
- "description": "The title of the pull request.",
- "type": "string",
- "examples": [
- "Amazing new feature"
- ]
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Please pull these awesome changes"
- ]
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "description",
- "color",
- "default"
- ]
- }
- },
- "milestone": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ "Please pull these awesome changes"
]
},
- "html_url": {
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
+ "2011-01-26T19:01:12Z"
]
},
- "labels_url": {
+ "updated_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ "2011-01-26T19:01:12Z"
]
},
- "id": {
- "type": "integer",
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- 1002604
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "number": {
- "description": "The number of the milestone.",
- "type": "integer",
- "examples": [
- 42
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
]
},
- "state": {
- "description": "The state of the milestone.",
+ "author_association": {
+ "title": "author_association",
"type": "string",
+ "description": "How the author is associated with the repository.",
"enum": [
- "open",
- "closed"
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
],
- "default": "open",
- "examples": [
- "open"
- ]
- },
- "title": {
- "description": "The title of the milestone.",
- "type": "string",
"examples": [
- "v1.0"
+ "OWNER"
]
},
- "description": {
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
"type": [
- "string",
+ "object",
"null"
],
- "examples": [
- "Tracking milestone for version 1.0"
- ]
- },
- "creator": {
- "anyOf": [
- {
- "type": "null"
- },
- {
+ "properties": {
+ "enabled_by": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -622981,4797 +659752,4243 @@
"type",
"url"
]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
}
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
]
},
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
- },
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
"examples": [
- "2012-10-09T23:39:01Z"
+ false
]
}
},
"required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
"closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
"id",
"node_id",
- "labels_url",
- "html_url",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
"number",
- "open_issues",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
"state",
+ "locked",
"title",
+ "updated_at",
"url",
- "created_at",
- "updated_at"
+ "user",
+ "author_association",
+ "auto_merge"
]
- }
- ]
- },
- "active_lock_reason": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "too heated"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merge_commit_sha": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "e5bd3914e2e596debea16f433f57875b5b90bcd6"
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "type": "number",
+ "description": "The ID of the draft issue"
},
"node_id": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "description": "The node ID of the draft issue"
},
- "avatar_url": {
+ "title": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "description": "The title of the draft issue"
},
- "gravatar_id": {
+ "body": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "assignees": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_reviewers": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_teams": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "description": "The body content of the draft issue"
},
- "license": {
+ "user": {
"anyOf": [
{
"type": "null"
},
{
- "title": "License Simple",
- "description": "License Simple",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "key": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
"type": "string",
"examples": [
- "mit"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "name": {
+ "gists_url": {
"type": "string",
"examples": [
- "MIT License"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "MIT"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "node_id": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat/repos"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
+ "format": "date-time",
+ "description": "The time the draft issue was created"
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ],
+ "description": "The content represented by the item."
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add an issue using repository owner, name, and issue number",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "Issue",
+ "owner": "octocat",
+ "repo": "hello-world",
+ "number": 42
+ },
+ "parameters": {
+ "username": "USERNAME",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "pull_request_with_nwo",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for adding a pull request using repository owner, name, and PR number
",
+ "example": {
+ "value": {
+ "id": 17,
+ "node_id": "PVTI_lADOANN5s84ACbL0zgBueEI",
+ "content": {
+ "id": 38,
+ "node_id": "I_kwDOANN5s85FtLts",
+ "title": "Example Draft Issue",
+ "body": "This is a draft issue in the project.",
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "content_type": "DraftIssue",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "archived_at": null,
+ "project_url": "https://api.github.com/users/octocat/projectsV2/1",
+ "item_url": "https://api.github.com/users/octocat/projectsV2/items/17"
+ }
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "content": {
+ "oneOf": [
+ {
+ "title": "Issue",
+ "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
},
- "fork": {
- "type": "boolean"
+ "node_id": {
+ "type": "string"
},
"url": {
+ "description": "URL for the issue",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "https://api.github.com/repositories/42/issues/1"
]
},
- "branches_url": {
+ "repository_url": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
+ "format": "uri"
},
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
+ "labels_url": {
+ "type": "string"
},
"comments_url": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
+ "format": "uri"
},
"events_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
+ "format": "uri"
},
- "teams_url": {
+ "html_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ "format": "uri"
},
- "trees_url": {
- "type": "string",
+ "number": {
+ "description": "Number uniquely identifying the issue within its repository",
+ "type": "integer",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ 42
]
},
- "clone_url": {
+ "state": {
+ "description": "State of the issue; either 'open' or 'closed'",
"type": "string",
"examples": [
- "https://github.com/octocat/Hello-World.git"
+ "open"
]
},
- "mirror_url": {
+ "state_reason": {
+ "description": "The reason for the current state",
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
+ "enum": [
+ "completed",
+ "reopened",
+ "not_planned",
+ "duplicate",
+ null
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "not_planned"
]
},
- "svn_url": {
+ "title": {
+ "description": "Title of the issue",
"type": "string",
- "format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
+ "Widget creation fails in Safari on OS X 10.8"
]
},
- "homepage": {
+ "body": {
+ "description": "Contents of the issue",
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
"examples": [
- 0
+ "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?"
]
},
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "topics": {
+ "labels": {
+ "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository",
"type": "array",
"items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "default": {
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ },
"examples": [
- "2011-01-26T19:06:43Z"
+ "bug",
+ "registration"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "updated_at": {
+ "assignees": {
"type": [
- "string",
+ "array",
"null"
],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "lexical_commit_sha": {
- "type": "string"
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
}
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
]
},
- "email": {
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
"type": [
"string",
"null"
]
},
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "comments": {
+ "type": "integer"
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
]
},
- "gravatar_id": {
+ "closed_at": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "format": "date-time"
},
- "received_events_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "format": "date-time"
},
- "type": {
+ "updated_at": {
"type": "string",
- "examples": [
- "User"
- ]
+ "format": "date-time"
},
- "site_admin": {
+ "draft": {
"type": "boolean"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
+ "closed_by": {
"anyOf": [
{
"type": "null"
},
{
- "title": "License Simple",
- "description": "License Simple",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "key": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "mit"
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "MIT License"
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "avatar_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "spdx_id": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "MIT"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat"
]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
]
},
- "forks": {
- "type": "integer"
+ "body_html": {
+ "type": "string"
},
- "permissions": {
- "type": "object",
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
},
- "push": {
- "type": "boolean"
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
},
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
"name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
"type": [
"string",
"null"
- ]
+ ],
+ "description": "The description of the issue type."
},
- "email": {
+ "color": {
"type": [
"string",
"null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
]
},
- "login": {
+ "created_at": {
"type": "string",
- "examples": [
- "octocat"
- ]
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
},
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
"id": {
+ "description": "Unique identifier of the repository",
"type": "integer",
"format": "int64",
"examples": [
- 1
+ 42
]
},
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "avatar_url": {
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "description": {
"type": [
"string",
"null"
],
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean"
+ },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "html_url": {
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "followers_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "following_url": {
+ "downloads_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "gists_url": {
+ "events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "starred_url": {
+ "forks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "subscriptions_url": {
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "type": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "site_admin": {
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "public"
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "commits": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "statuses": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "issue": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comment": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "comments",
- "commits",
- "statuses",
- "html",
- "issue",
- "review_comments",
- "review_comment",
- "self"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "auto_merge": {
- "title": "Auto merge",
- "description": "The status of auto merging a pull request.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "enabled_by": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "merge_method": {
- "type": "string",
- "description": "The merge method to use.",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- },
- "commit_title": {
- "type": "string",
- "description": "Title for the merge commit message."
- },
- "commit_message": {
- "type": "string",
- "description": "Commit message for the merge commit."
- }
- },
- "required": [
- "enabled_by",
- "merge_method",
- "commit_title",
- "commit_message"
- ]
- },
- "draft": {
- "description": "Indicates whether or not the pull request is a draft.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "rebaseable": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "mergeable_state": {
- "type": "string",
- "examples": [
- "clean"
- ]
- },
- "merged_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "comments": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "review_comments": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "maintainer_can_modify": {
- "description": "Indicates whether maintainers can modify the pull request.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "commits": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "additions": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "deletions": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "changed_files": {
- "type": "integer",
- "examples": [
- 5
- ]
- }
- },
- "required": [
- "_links",
- "assignee",
- "labels",
- "base",
- "body",
- "closed_at",
- "comments_url",
- "commits_url",
- "created_at",
- "diff_url",
- "head",
- "html_url",
- "id",
- "node_id",
- "issue_url",
- "merge_commit_sha",
- "merged_at",
- "milestone",
- "number",
- "patch_url",
- "review_comment_url",
- "review_comments_url",
- "statuses_url",
- "state",
- "locked",
- "title",
- "updated_at",
- "url",
- "user",
- "author_association",
- "auto_merge",
- "additions",
- "changed_files",
- "comments",
- "commits",
- "deletions",
- "mergeable",
- "mergeable_state",
- "merged",
- "maintainer_can_modify",
- "merged_by",
- "review_comments"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Pass the appropriate media type to fetch diff and patch formats.
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "406",
- "description": "Unacceptable
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- },
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}",
- "title": "Update a pull request",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The title of the pull request.
"
- },
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The contents of the pull request.
"
- },
- {
- "type": "string",
- "name": "state",
- "in": "body",
- "description": "State of this Pull Request. Either open or closed.
",
- "enum": [
- "open",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "base",
- "in": "body",
- "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": "boolean",
- "name": "maintainer_can_modify",
- "in": "body",
- "description": "Indicates whether maintainers can modify the pull request.
"
- }
- ],
- "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "new title",
- "body": "updated body",
- "state": "open",
- "base": "master"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
- "id": 1,
- "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
- "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
- "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
- "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "number": 1347,
- "state": "open",
- "locked": true,
- "title": "Amazing new feature",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Please pull these awesome changes in!",
- "labels": [
- {
- "id": 208045946,
- "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
- "name": "bug",
- "description": "Something isn't working",
- "color": "f29513",
- "default": true
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
- "number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
- "creator": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
- },
- "active_lock_reason": "too heated",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:01:12Z",
- "closed_at": "2011-01-26T19:01:12Z",
- "merged_at": "2011-01-26T19:01:12Z",
- "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
- "assignee": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- {
- "login": "hubot",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/hubot_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/hubot",
- "html_url": "https://github.com/hubot",
- "followers_url": "https://api.github.com/users/hubot/followers",
- "following_url": "https://api.github.com/users/hubot/following{/other_user}",
- "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
- "organizations_url": "https://api.github.com/users/hubot/orgs",
- "repos_url": "https://api.github.com/users/hubot/repos",
- "events_url": "https://api.github.com/users/hubot/events{/privacy}",
- "received_events_url": "https://api.github.com/users/hubot/received_events",
- "type": "User",
- "site_admin": true
- }
- ],
- "requested_reviewers": [
- {
- "login": "other_user",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/other_user_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/other_user",
- "html_url": "https://github.com/other_user",
- "followers_url": "https://api.github.com/users/other_user/followers",
- "following_url": "https://api.github.com/users/other_user/following{/other_user}",
- "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
- "organizations_url": "https://api.github.com/users/other_user/orgs",
- "repos_url": "https://api.github.com/users/other_user/repos",
- "events_url": "https://api.github.com/users/other_user/events{/privacy}",
- "received_events_url": "https://api.github.com/users/other_user/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "requested_teams": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- }
- ],
- "head": {
- "label": "octocat:new-topic",
- "ref": "new-topic",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "forks": 123,
- "open_issues": 123,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "watchers": 123
- }
- },
- "base": {
- "label": "octocat:master",
- "ref": "master",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_merge_commit": true,
- "forks": 123,
- "open_issues": 123,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "watchers": 123
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1347"
- },
- "issue": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- },
- "comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- }
- },
- "author_association": "OWNER",
- "auto_merge": null,
- "draft": false,
- "merged": false,
- "mergeable": true,
- "rebaseable": true,
- "mergeable_state": "clean",
- "merged_by": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "comments": 10,
- "review_comments": 0,
- "maintainer_can_modify": true,
- "commits": 3,
- "additions": 100,
- "deletions": 3,
- "changed_files": 5
- },
- "schema": {
- "type": "object",
- "title": "Pull Request",
- "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOlB1bGxSZXF1ZXN0MQ=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347"
- ]
- },
- "diff_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.diff"
- ]
- },
- "patch_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.patch"
- ]
- },
- "issue_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- },
- "commits_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- ]
- },
- "review_comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- ]
- },
- "review_comment_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- ]
- },
- "statuses_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "number": {
- "description": "Number uniquely identifying the pull request within its repository.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
- "enum": [
- "open",
- "closed"
- ],
- "type": "string",
- "examples": [
- "open"
- ]
- },
- "locked": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "title": {
- "description": "The title of the pull request.",
- "type": "string",
- "examples": [
- "Amazing new feature"
- ]
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Please pull these awesome changes"
- ]
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": "string"
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "parent_issue_url": {
+ "description": "URL to get the parent issue of this issue, if it is a sub-issue",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ }
},
- "default": {
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "description",
- "color",
- "default"
- ]
- }
- },
- "milestone": {
- "anyOf": [
- {
- "type": "null"
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
},
{
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
]
},
"html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
+ "https://github.com/octocat/Hello-World/pull/1347"
]
},
- "labels_url": {
+ "diff_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
]
},
- "id": {
- "type": "integer",
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 1002604
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
]
},
- "node_id": {
+ "issue_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
]
},
"number": {
- "description": "The number of the milestone.",
"type": "integer",
"examples": [
- 42
+ 1347
]
},
"state": {
- "description": "The state of the milestone.",
"type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open",
"examples": [
"open"
]
},
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
"title": {
- "description": "The title of the milestone.",
"type": "string",
"examples": [
- "v1.0"
+ "new-feature"
]
},
- "description": {
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
"type": [
"string",
"null"
],
"examples": [
- "Tracking milestone for version 1.0"
+ "Please pull these awesome changes"
]
},
- "creator": {
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
"anyOf": [
{
"type": "null"
@@ -627787,3858 +664004,5019 @@
"null"
]
},
- "email": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
]
},
- "login": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "archive_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "node_id": {
+ "assignees_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "avatar_url": {
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "followers_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "following_url": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "gists_url": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "starred_url": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "subscriptions_url": {
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "type": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "site_admin": {
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "public"
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
}
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
- },
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2012-10-09T23:39:01Z"
- ]
- }
- },
- "required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
- "closed_at",
- "id",
- "node_id",
- "labels_url",
- "html_url",
- "number",
- "open_issues",
- "state",
- "title",
- "url",
- "created_at",
- "updated_at"
- ]
- }
- ]
- },
- "active_lock_reason": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "too heated"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "merge_commit_sha": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "e5bd3914e2e596debea16f433f57875b5b90bcd6"
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "assignees": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_reviewers": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "requested_teams": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "key": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "mit"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
"name": {
+ "description": "The name of the repository.",
"type": "string",
"examples": [
- "MIT License"
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "url": {
+ "homepage": {
"type": [
"string",
"null"
],
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com"
]
},
- "spdx_id": {
+ "language": {
"type": [
"string",
"null"
- ],
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
"examples": [
- "MIT"
+ 9
]
},
- "node_id": {
- "type": "string",
+ "stargazers_count": {
+ "type": "integer",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ 80
]
},
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
+ "watchers_count": {
+ "type": "integer",
"examples": [
- "mit"
+ 80
]
},
- "name": {
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
"examples": [
- "MIT License"
+ "master"
]
},
- "url": {
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
"type": [
"string",
"null"
],
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/licenses/mit"
+ "2011-01-26T19:06:43Z"
]
},
- "spdx_id": {
+ "created_at": {
"type": [
"string",
"null"
],
+ "format": "date-time",
"examples": [
- "MIT"
+ "2011-01-26T19:01:12Z"
]
},
- "node_id": {
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ true
]
},
- "html_url": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "key",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "sha": {
+ "type": "string"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
],
- "format": "date-time",
"examples": [
- "2011-01-26T19:01:12Z"
+ "OWNER"
]
},
- "updated_at": {
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
]
},
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
"type": "boolean",
"examples": [
false
]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
"comments_url",
"commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "created_at",
+ "diff_url",
+ "head",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
"statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
"url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "user",
+ "author_association",
+ "auto_merge"
]
},
- "sha": {
- "type": "string"
- },
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ {
+ "title": "Draft Issue",
+ "description": "A draft issue in a project",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "type": "number",
+ "description": "The ID of the draft issue"
},
"node_id": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "description": "The node ID of the draft issue"
},
- "avatar_url": {
+ "title": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "description": "The title of the draft issue"
},
- "gravatar_id": {
+ "body": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "description": "The body content of the draft issue"
},
- "type": {
- "type": "string",
- "examples": [
- "User"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "created_at": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "format": "date-time",
+ "description": "The time the draft issue was created"
},
- "user_view_type": {
+ "updated_at": {
"type": "string",
- "examples": [
- "public"
- ]
+ "format": "date-time",
+ "description": "The time the draft issue was last updated"
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "title",
+ "user",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ],
+ "description": "The content represented by the item."
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
},
"required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
]
},
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the project this item belongs to."
+ },
+ "item_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL of the item in the project."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Add a pull request using repository owner, name, and PR number",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "type": "PullRequest",
+ "owner": "octocat",
+ "repo": "hello-world",
+ "number": 123
+ },
+ "parameters": {
+ "username": "USERNAME",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/users/{username}/projectsV2/{project_number}/items/{item_id}",
+ "title": "Get an item for a user owned project",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "item_id",
+ "description": "The unique identifier of the project item.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "fields",
+ "description": "Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 50,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get a specific item from a user-owned project.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
+ "id": 10,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
+ "user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
"_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
+ },
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
+ }
+ },
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
+ },
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
+ },
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ]
+ },
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
+ },
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
+ },
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
+ },
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
+ },
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
+ }
+ ]
+ },
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
+ }
+ ]
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "commits": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "statuses": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "issue": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "review_comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
]
},
- "review_comment": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
]
},
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
]
- }
- },
- "required": [
- "comments",
- "commits",
- "statuses",
- "html",
- "issue",
- "review_comments",
- "review_comment",
- "self"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "auto_merge": {
- "title": "Auto merge",
- "description": "The status of auto merging a pull request.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "enabled_by": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
]
},
- "merge_method": {
+ "type": {
"type": "string",
- "description": "The merge method to use.",
- "enum": [
- "merge",
- "squash",
- "rebase"
+ "examples": [
+ "User"
]
},
- "commit_title": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "description": "Title for the merge commit message."
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
},
- "commit_message": {
+ "user_view_type": {
"type": "string",
- "description": "Commit message for the merge commit."
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "enabled_by",
- "merge_method",
- "commit_title",
- "commit_message"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "draft": {
- "description": "Indicates whether or not the pull request is a draft.",
- "type": "boolean",
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
"examples": [
- false
+ "2022-04-28T12:00:00Z"
]
},
- "merged": {
- "type": "boolean"
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
},
- "mergeable": {
+ "archived_at": {
"type": [
- "boolean",
+ "string",
"null"
],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
"examples": [
- true
+ "2022-04-28T12:00:00Z"
]
},
- "rebaseable": {
+ "item_url": {
"type": [
- "boolean",
+ "string",
"null"
],
+ "format": "uri",
+ "description": "The API URL of this item.",
"examples": [
- true
- ]
- },
- "mergeable_state": {
- "type": "string",
- "examples": [
- "clean"
- ]
- },
- "merged_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "comments": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "review_comments": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "maintainer_can_modify": {
- "description": "Indicates whether maintainers can modify the pull request.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "commits": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "additions": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "deletions": {
- "type": "integer",
- "examples": [
- 3
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
]
},
- "changed_files": {
- "type": "integer",
- "examples": [
- 5
- ]
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
}
},
"required": [
- "_links",
- "assignee",
- "labels",
- "base",
- "body",
- "closed_at",
- "comments_url",
- "commits_url",
- "created_at",
- "diff_url",
- "head",
- "html_url",
"id",
- "node_id",
- "issue_url",
- "merge_commit_sha",
- "merged_at",
- "milestone",
- "number",
- "patch_url",
- "review_comment_url",
- "review_comments_url",
- "statuses_url",
- "state",
- "locked",
- "title",
+ "content_type",
+ "created_at",
"updated_at",
- "url",
- "user",
- "author_association",
- "auto_merge",
- "additions",
- "changed_files",
- "comments",
- "commits",
- "deletions",
- "mergeable",
- "mergeable_state",
- "merged",
- "maintainer_can_modify",
- "merged_by",
- "review_comments"
+ "archived_at"
]
}
}
@@ -631650,46 +669028,46 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
}
],
"previews": [],
"progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/commits",
- "title": "List commits on a pull request",
- "category": "pulls",
- "subcategory": "pulls",
+ "verb": "patch",
+ "requestPath": "/users/{username}/projectsV2/{project_number}/items/{item_id}",
+ "title": "Update project item for user",
+ "category": "projects",
+ "subcategory": "items",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "project_number",
+ "description": "The project's number.
",
"in": "path",
"required": true,
"schema": {
- "type": "string"
+ "type": "integer"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
"in": "path",
"required": true,
"schema": {
@@ -631697,108 +669075,111 @@
}
},
{
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
+ "name": "item_id",
+ "description": "The unique identifier of the project item.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
+ }
+ ],
+ "bodyParameters": [
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "array of objects",
+ "name": "fields",
+ "in": "body",
+ "description": "A list of field updates to apply.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "id",
+ "description": "The ID of the project field to update.
",
+ "isRequired": true
+ },
+ {
+ "type": "null or string or number",
+ "name": "value",
+ "description": "The new value for the field:
\n\nFor text, number, and date fields, provide the new value directly. \nFor single select and iteration fields, provide the ID of the option or iteration. \nTo clear the field, set this to null. \n ",
+ "isRequired": true
+ }
+ ]
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete\ncommit list for pull requests with more than 250 commits, use the List commits \nendpoint.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "descriptionHTML": "Update a specific item in a user-owned project.
",
"codeExamples": [
{
- "key": "default",
+ "key": "text_field",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Update a text field",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "fields": [
+ {
+ "id": 123,
+ "value": "Updated text value"
+ }
+ ]
+ },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==",
- "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments",
- "commit": {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "author": {
- "name": "Monalisa Octocat",
- "email": "support@github.com",
- "date": "2011-04-14T16:00:49Z"
- },
- "committer": {
- "name": "Monalisa Octocat",
- "email": "support@github.com",
- "date": "2011-04-14T16:00:49Z"
- },
- "message": "Fix all the bugs",
- "tree": {
- "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- },
- "comment_count": 0,
- "verification": {
- "verified": false,
- "reason": "unsigned",
- "signature": null,
- "payload": null,
- "verified_at": null
- }
- },
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "example": {
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
+ "id": 10,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
+ "user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
"type": "User",
+ "user_view_type": "public",
"site_admin": false
},
- "committer": {
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
"login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "id": 175,
+ "node_id": "U_kgDMrw",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
@@ -631813,1447 +669194,2068 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
+ "user_view_type": "public",
"site_admin": false
},
- "parents": [
+ "assignees": [
{
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
}
- ]
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Commit",
- "description": "Commit",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "sha": {
- "type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ=="
- ]
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
},
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments"
- ]
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "commit": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "\"Chris Wanstrath\""
- ]
- },
- "email": {
- "type": "string",
- "examples": [
- "\"chris@ozmm.org\""
- ]
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "\"2007-10-29T02:42:39.000-07:00\""
- ]
- }
- }
- }
- ]
- },
- "committer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "\"Chris Wanstrath\""
- ]
- },
- "email": {
- "type": "string",
- "examples": [
- "\"chris@ozmm.org\""
- ]
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "\"2007-10-29T02:42:39.000-07:00\""
- ]
- }
- }
- }
- ]
- },
- "message": {
- "type": "string",
- "examples": [
- "Fix all the bugs"
- ]
- },
- "comment_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tree/827efc6d56897b048c772eb4087f854f46256132"
- ]
- }
- },
- "required": [
- "sha",
- "url"
- ]
- },
- "verification": {
- "title": "Verification",
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "payload": {
- "type": [
- "string",
- "null"
- ]
- },
- "signature": {
- "type": [
- "string",
- "null"
- ]
- },
- "verified_at": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "verified",
- "reason",
- "payload",
- "signature",
- "verified_at"
- ]
- }
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "required": [
- "author",
- "committer",
- "comment_count",
- "message",
- "tree",
- "url"
- ]
- },
- "author": {
- "oneOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- {
- "title": "Empty Object",
- "description": "An object without any properties.",
- "type": "object",
- "properties": {},
- "additionalProperties": false
- }
- ],
- "type": [
- "null",
- "object"
- ]
- },
- "committer": {
- "oneOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- {
- "title": "Empty Object",
- "description": "An object without any properties.",
- "type": "object",
- "properties": {},
- "additionalProperties": false
- }
- ],
- "type": [
- "null",
- "object"
- ]
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string",
- "examples": [
- "7638417db6d59f3c431d3e1f261cc637155684cd"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits/7638417db6d59f3c431d3e1f261cc637155684cd"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd"
- ]
- }
- },
- "required": [
- "sha",
- "url"
- ]
- }
- },
- "stats": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "integer"
- },
- "deletions": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
- }
- }
- },
- "files": {
- "type": "array",
- "items": {
- "title": "Diff Entry",
- "description": "Diff Entry",
- "type": "object",
- "properties": {
- "sha": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "bbcd538c8e72b8c175046e27cc8f907076331401"
- ]
- },
- "filename": {
- "type": "string",
- "examples": [
- "file1.txt"
- ]
- },
- "status": {
- "type": "string",
- "enum": [
- "added",
- "removed",
- "modified",
- "renamed",
- "copied",
- "changed",
- "unchanged"
- ],
- "examples": [
- "added"
- ]
- },
- "additions": {
- "type": "integer",
- "examples": [
- 103
- ]
- },
- "deletions": {
- "type": "integer",
- "examples": [
- 21
- ]
- },
- "changes": {
- "type": "integer",
- "examples": [
- 124
- ]
- },
- "blob_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
- ]
- },
- "raw_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
- ]
- },
- "contents_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "patch": {
- "type": "string",
- "examples": [
- "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
- ]
- },
- "previous_filename": {
- "type": "string",
- "examples": [
- "file.txt"
- ]
- }
- },
- "required": [
- "additions",
- "blob_url",
- "changes",
- "contents_url",
- "deletions",
- "filename",
- "raw_url",
- "sha",
- "status"
- ]
- }
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
}
},
- "required": [
- "url",
- "sha",
- "node_id",
- "html_url",
- "comments_url",
- "commit",
- "author",
- "committer",
- "parents"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/files",
- "title": "List pull requests files",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists the files in a specified pull request.
\n Note
\n
\nResponses include a maximum of 3000 files. The paginated response returns 30 files per page by default.
\n
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "sha": "bbcd538c8e72b8c175046e27cc8f907076331401",
- "filename": "file1.txt",
- "status": "added",
- "additions": 103,
- "deletions": 21,
- "changes": 124,
- "blob_url": "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt",
- "raw_url": "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "patch": "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Diff Entry",
- "description": "Diff Entry",
- "type": "object",
- "properties": {
- "sha": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "bbcd538c8e72b8c175046e27cc8f907076331401"
- ]
- },
- "filename": {
- "type": "string",
- "examples": [
- "file1.txt"
- ]
- },
- "status": {
- "type": "string",
- "enum": [
- "added",
- "removed",
- "modified",
- "renamed",
- "copied",
- "changed",
- "unchanged"
- ],
- "examples": [
- "added"
- ]
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "additions": {
- "type": "integer",
- "examples": [
- 103
- ]
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
},
- "deletions": {
- "type": "integer",
- "examples": [
- 21
- ]
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
},
- "changes": {
- "type": "integer",
- "examples": [
- 124
- ]
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
},
- "blob_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
- ]
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
},
- "raw_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
- ]
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
},
- "contents_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
},
- "patch": {
- "type": "string",
- "examples": [
- "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
- ]
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
},
- "previous_filename": {
- "type": "string",
- "examples": [
- "file.txt"
- ]
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
}
},
- "required": [
- "additions",
- "blob_url",
- "changes",
- "contents_url",
- "deletions",
- "filename",
- "raw_url",
- "sha",
- "status"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/merge",
- "title": "Check if a pull request has been merged",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Checks if a pull request has been merged into the base branch. The HTTP status of the response indicates whether or not the pull request has been merged; the response body is empty.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response if pull request has been merged
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "Response if pull request has been merged
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if pull request has not been merged
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/merge",
- "title": "Merge a pull request",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "commit_title",
- "in": "body",
- "description": "Title for the automatic commit message.
"
- },
- {
- "type": "string",
- "name": "commit_message",
- "in": "body",
- "description": "Extra detail to append to automatic commit message.
"
- },
- {
- "type": "string",
- "name": "sha",
- "in": "body",
- "description": "SHA that pull request head must match to allow merge.
"
- },
- {
- "type": "string",
- "name": "merge_method",
- "in": "body",
- "description": "The merge method to use.
",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- ],
- "descriptionHTML": "Merges a pull request into the base branch.\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
",
- "codeExamples": [
- {
- "key": "response-if-merge-was-successful",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "commit_title": "Expand enum",
- "commit_message": "Add a new value to the merge_method enum"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "if merge was successful
",
- "example": {
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "merged": true,
- "message": "Pull Request successfully merged"
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
+ },
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
+ },
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ]
+ },
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
+ },
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
+ },
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
+ },
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
+ },
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
+ }
+ ]
+ },
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
+ }
+ ]
},
"schema": {
- "title": "Pull Request Merge Result",
- "description": "Pull Request Merge Result",
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
"type": "object",
"properties": {
- "sha": {
- "type": "string"
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
},
- "merged": {
- "type": "boolean"
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
},
- "message": {
- "type": "string"
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
+ ]
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
}
},
"required": [
- "merged",
- "message",
- "sha"
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "if merge was successful
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "405",
- "description": "Method Not Allowed if merge cannot be performed
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict if sha was provided and pull request head did not match
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch",
- "title": "Update a pull request branch",
- "category": "pulls",
- "subcategory": "pulls",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
},
{
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "expected_head_sha",
- "in": "body",
- "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity status. You can use the \"List commits \" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
"
- }
- ],
- "descriptionHTML": "Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch.\nNote: If making a request on behalf of a GitHub App you must also have permissions to write the contents of the head repository.
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "number_field",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Update a number field",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "expected_head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ "fields": [
+ {
+ "id": 456,
+ "value": 42.5
+ }
+ ]
},
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
}
},
"response": {
- "statusCode": "202",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "message": "Updating pull request branch.",
- "url": "https://github.com/repos/octocat/Hello-World/pulls/53"
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
+ "id": 10,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
+ "user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
+ },
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
+ }
+ },
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
+ },
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
+ },
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ]
+ },
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
+ },
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
+ },
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
+ },
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
+ },
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
+ }
+ ]
+ },
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
+ }
+ ]
},
"schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
"type": "object",
"properties": {
- "message": {
- "type": "string"
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
},
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "comments": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments",
- "title": "List review comments in a repository",
- "category": "pulls",
- "subcategory": "comments",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "created_at"
- ]
- },
- "description": ""
- },
- {
- "name": "direction",
- "description": "The direction to sort results. Ignored without sort parameter.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- }
- },
- {
- "name": "since",
- "description": "Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "format": "date-time"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
+ ]
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
}
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists review comments for all pull requests in a repository. By default,\nreview comments are in ascending order by ID.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
+ "key": "date_field",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Update a date field",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "fields": [
+ {
+ "id": 789,
+ "value": "2023-10-05"
+ }
+ ]
+ },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO"
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
+ "example": {
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
"id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 8,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
"user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
"login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "id": 175,
+ "node_id": "U_kgDMrw",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
@@ -633268,767 +671270,735 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
+ "user_view_type": "public",
"site_admin": false
},
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
}
- },
- "start_line": 1,
- "original_start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "original_line": 2,
- "side": "RIGHT"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Pull Request Review Comment",
- "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
- "type": "object",
- "properties": {
- "url": {
- "description": "URL for the pull request review comment",
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- },
- "pull_request_review_id": {
- "description": "The ID of the pull request review to which the comment belongs.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "id": {
- "description": "The ID of the pull request review comment.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "description": "The node ID of the pull request review comment.",
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
- },
- "diff_hunk": {
- "description": "The diff of the line that the comment refers to.",
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
- },
- "path": {
- "description": "The relative path of the file to which the comment applies.",
- "type": "string",
- "examples": [
- "config/database.yaml"
- ]
- },
- "position": {
- "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "original_position": {
- "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "commit_id": {
- "description": "The SHA of the commit to which the comment applies.",
- "type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
},
- "original_commit_id": {
- "description": "The SHA of the original commit to which the comment applies.",
- "type": "string",
- "examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
- ]
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
},
- "in_reply_to_id": {
- "description": "The comment ID to reply to.",
- "type": "integer",
- "examples": [
- 8
- ]
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
},
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
"user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "body": {
- "description": "The text of the comment.",
- "type": "string",
- "examples": [
- "We should probably include a check for null values here."
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "html_url": {
- "description": "HTML URL for the pull request review comment.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- },
- "pull_request_url": {
- "description": "URL for the pull request that the review comment belongs to.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- }
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "required": [
- "self",
- "html",
- "pull_request"
- ]
- },
- "start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
- ]
- },
- "original_start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
- ]
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "start_side": {
- "type": [
- "string",
- "null"
- ],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
},
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
},
- "original_line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
},
- "side": {
- "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
},
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
- ]
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
},
- "body_html": {
- "type": "string",
- "examples": [
- "\"comment body
\""
- ]
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
},
- "body_text": {
- "type": "string",
- "examples": [
- "\"comment body\""
- ]
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
}
},
- "required": [
- "url",
- "id",
- "node_id",
- "pull_request_review_id",
- "diff_hunk",
- "path",
- "commit_id",
- "original_commit_id",
- "user",
- "body",
- "created_at",
- "updated_at",
- "html_url",
- "pull_request_url",
- "author_association",
- "_links"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
- "title": "Get a review comment for a pull request",
- "category": "pulls",
- "subcategory": "comments",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Provides details for a specified review comment.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
- "id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 8,
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
"type": "User",
+ "user_view_type": "public",
"site_admin": false
},
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
},
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- }
- },
- "start_line": 1,
- "original_start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "original_line": 2,
- "side": "RIGHT"
- },
- "schema": {
- "title": "Pull Request Review Comment",
- "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
- "type": "object",
- "properties": {
- "url": {
- "description": "URL for the pull request review comment",
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
]
},
- "pull_request_review_id": {
- "description": "The ID of the pull request review to which the comment belongs.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
},
- "id": {
- "description": "The ID of the pull request review comment.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
]
},
- "node_id": {
- "description": "The node ID of the pull request review comment.",
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
},
- "diff_hunk": {
- "description": "The diff of the line that the comment refers to.",
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
},
- "path": {
- "description": "The relative path of the file to which the comment applies.",
- "type": "string",
- "examples": [
- "config/database.yaml"
- ]
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
},
- "position": {
- "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
- "type": "integer",
- "examples": [
- 1
- ]
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
},
- "original_position": {
- "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
- "type": "integer",
- "examples": [
- 4
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
+ }
]
},
- "commit_id": {
- "description": "The SHA of the commit to which the comment applies.",
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
+ }
+ ]
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
"type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ "description": "The node ID of the project item."
},
- "original_commit_id": {
- "description": "The SHA of the original commit to which the comment applies.",
+ "project_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
"examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
]
},
- "in_reply_to_id": {
- "description": "The comment ID to reply to.",
- "type": "integer",
- "examples": [
- 8
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
]
},
- "user": {
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -634196,498 +672166,877 @@
"url"
]
},
- "body": {
- "description": "The text of the comment.",
+ "created_at": {
"type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
"examples": [
- "We should probably include a check for null values here."
+ "2022-04-28T12:00:00Z"
]
},
- "created_at": {
+ "updated_at": {
"type": "string",
"format": "date-time",
+ "description": "The time when the item was last updated.",
"examples": [
- "2011-04-14T16:00:49Z"
+ "2022-04-28T12:00:00Z"
]
},
- "updated_at": {
- "type": "string",
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
+ "description": "The time when the item was archived.",
"examples": [
- "2011-04-14T16:00:49Z"
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
]
},
- "html_url": {
- "description": "HTML URL for the pull request review comment.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
+ }
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
+ }
+ },
+ {
+ "key": "single_select_field",
+ "request": {
+ "contentType": "application/json",
+ "description": "Update a single select field",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "fields": [
+ {
+ "id": 789,
+ "value": "47fc9ee4"
+ }
+ ]
+ },
+ "parameters": {
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
+ "id": 10,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
+ "user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
+ },
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
+ }
},
- "pull_request_url": {
- "description": "URL for the pull request that the review comment belongs to.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
},
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
]
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- }
- },
- "required": [
- "href"
- ]
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
},
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- }
- },
- "required": [
- "href"
- ]
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
}
- },
- "required": [
- "self",
- "html",
- "pull_request"
- ]
- },
- "start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
- ]
+ }
},
- "original_start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
]
},
- "start_side": {
- "type": [
- "string",
- "null"
- ],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
- },
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
},
- "original_line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
},
- "side": {
- "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
},
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
- ]
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
}
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
]
},
- "body_html": {
- "type": "string",
- "examples": [
- "\"comment body
\""
- ]
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
},
- "body_text": {
- "type": "string",
- "examples": [
- "\"comment body\""
- ]
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
}
- },
- "required": [
- "url",
- "id",
- "node_id",
- "pull_request_review_id",
- "diff_hunk",
- "path",
- "commit_id",
- "original_commit_id",
- "user",
- "body",
- "created_at",
- "updated_at",
- "html_url",
- "pull_request_url",
- "author_association",
- "_links"
]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
- "title": "Update a review comment for a pull request",
- "category": "pulls",
- "subcategory": "comments",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The text of the reply to the review comment.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Edits the content of a specified review comment.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "I like this too!"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
- "id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 8,
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- }
- },
- "start_line": 1,
- "original_start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "original_line": 2,
- "side": "RIGHT"
},
"schema": {
- "title": "Pull Request Review Comment",
- "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
"type": "object",
"properties": {
- "url": {
- "description": "URL for the pull request review comment",
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- },
- "pull_request_review_id": {
- "description": "The ID of the pull request review to which the comment belongs.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
- },
"id": {
- "description": "The ID of the pull request review comment.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "type": "number",
+ "description": "The unique identifier of the project item."
},
"node_id": {
- "description": "The node ID of the pull request review comment.",
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
- },
- "diff_hunk": {
- "description": "The diff of the line that the comment refers to.",
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
- },
- "path": {
- "description": "The relative path of the file to which the comment applies.",
"type": "string",
- "examples": [
- "config/database.yaml"
- ]
- },
- "position": {
- "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "original_position": {
- "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
- "type": "integer",
- "examples": [
- 4
- ]
+ "description": "The node ID of the project item."
},
- "commit_id": {
- "description": "The SHA of the commit to which the comment applies.",
+ "project_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
"examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
]
},
- "original_commit_id": {
- "description": "The SHA of the original commit to which the comment applies.",
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
"type": "string",
- "examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
]
},
- "in_reply_to_id": {
- "description": "The comment ID to reply to.",
- "type": "integer",
- "examples": [
- 8
- ]
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
},
- "user": {
+ "creator": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -634855,487 +673204,134 @@
"url"
]
},
- "body": {
- "description": "The text of the comment.",
- "type": "string",
- "examples": [
- "We should probably include a check for null values here."
- ]
- },
"created_at": {
"type": "string",
"format": "date-time",
+ "description": "The time when the item was created.",
"examples": [
- "2011-04-14T16:00:49Z"
+ "2022-04-28T12:00:00Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
+ "description": "The time when the item was last updated.",
"examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "html_url": {
- "description": "HTML URL for the pull request review comment.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- },
- "pull_request_url": {
- "description": "URL for the pull request that the review comment belongs to.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "self",
- "html",
- "pull_request"
- ]
- },
- "start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
+ "2022-04-28T12:00:00Z"
]
},
- "original_start_line": {
+ "archived_at": {
"type": [
- "integer",
+ "string",
"null"
],
- "description": "The first line of the range for a multi-line comment.",
+ "format": "date-time",
+ "description": "The time when the item was archived.",
"examples": [
- 2
+ "2022-04-28T12:00:00Z"
]
},
- "start_side": {
+ "item_url": {
"type": [
"string",
"null"
],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
- },
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "original_line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
+ "format": "uri",
+ "description": "The API URL of this item.",
"examples": [
- 2
- ]
- },
- "side": {
- "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
- },
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
},
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "\"comment body
\""
- ]
- },
- "body_text": {
- "type": "string",
- "examples": [
- "\"comment body\""
- ]
+ "description": "The fields and values associated with this item."
}
},
"required": [
- "url",
"id",
- "node_id",
- "pull_request_review_id",
- "diff_hunk",
- "path",
- "commit_id",
- "original_commit_id",
- "user",
- "body",
+ "content_type",
"created_at",
"updated_at",
- "html_url",
- "pull_request_url",
- "author_association",
- "_links"
+ "archived_at"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
- "title": "Delete a review comment for a pull request",
- "category": "pulls",
- "subcategory": "comments",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Deletes a review comment.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments",
- "title": "List review comments on a pull request",
- "category": "pulls",
- "subcategory": "comments",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort results. Ignored without sort parameter.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- }
- },
- {
- "name": "since",
- "description": "Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "format": "date-time"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists all review comments for a specified pull request. By default, review comments\nare in ascending order by ID.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
+ "key": "iteration_field",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Update an iteration field",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "fields": [
+ {
+ "id": 1011,
+ "value": "866ee5b8"
+ }
+ ]
+ },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
+ "example": {
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
"id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 8,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
"user": {
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
"login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "id": 175,
+ "node_id": "U_kgDMrw",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
@@ -635350,853 +673346,735 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
+ "user_view_type": "public",
"site_admin": false
},
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
}
- },
- "start_line": 1,
- "original_start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "original_line": 2,
- "side": "RIGHT"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Pull Request Review Comment",
- "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
- "type": "object",
- "properties": {
- "url": {
- "description": "URL for the pull request review comment",
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- },
- "pull_request_review_id": {
- "description": "The ID of the pull request review to which the comment belongs.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "id": {
- "description": "The ID of the pull request review comment.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "description": "The node ID of the pull request review comment.",
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
- },
- "diff_hunk": {
- "description": "The diff of the line that the comment refers to.",
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
- },
- "path": {
- "description": "The relative path of the file to which the comment applies.",
- "type": "string",
- "examples": [
- "config/database.yaml"
- ]
- },
- "position": {
- "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "original_position": {
- "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "commit_id": {
- "description": "The SHA of the commit to which the comment applies.",
- "type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
},
- "original_commit_id": {
- "description": "The SHA of the original commit to which the comment applies.",
- "type": "string",
- "examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
- ]
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
},
- "in_reply_to_id": {
- "description": "The comment ID to reply to.",
- "type": "integer",
- "examples": [
- 8
- ]
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
},
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
"user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "body": {
- "description": "The text of the comment.",
- "type": "string",
- "examples": [
- "We should probably include a check for null values here."
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "html_url": {
- "description": "HTML URL for the pull request review comment.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- },
- "pull_request_url": {
- "description": "URL for the pull request that the review comment belongs to.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- }
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "required": [
- "self",
- "html",
- "pull_request"
- ]
- },
- "start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
- ]
- },
- "original_start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
- ]
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
},
- "start_side": {
- "type": [
- "string",
- "null"
- ],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
},
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
},
- "original_line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
},
- "side": {
- "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
},
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
- ]
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
},
- "body_html": {
- "type": "string",
- "examples": [
- "\"comment body
\""
- ]
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
},
- "body_text": {
- "type": "string",
- "examples": [
- "\"comment body\""
- ]
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
}
},
- "required": [
- "url",
- "id",
- "node_id",
- "pull_request_review_id",
- "diff_hunk",
- "path",
- "commit_id",
- "original_commit_id",
- "user",
- "body",
- "created_at",
- "updated_at",
- "html_url",
- "pull_request_url",
- "author_association",
- "_links"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments",
- "title": "Create a review comment for a pull request",
- "category": "pulls",
- "subcategory": "comments",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The text of the review comment.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "commit_id",
- "in": "body",
- "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.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "path",
- "in": "body",
- "description": "The relative path to the file that necessitates a comment.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "position",
- "in": "body",
- "description": "This parameter is closing down. Use line instead . 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. The 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.
"
- },
- {
- "type": "string",
- "name": "side",
- "in": "body",
- "description": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be LEFT or RIGHT. Use LEFT for deletions that appear in red. Use RIGHT for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"Diff view options \" in the GitHub Help documentation.
",
- "enum": [
- "LEFT",
- "RIGHT"
- ]
- },
- {
- "type": "integer",
- "name": "line",
- "in": "body",
- "description": "Required unless using subject_type:file . The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
- },
- {
- "type": "integer",
- "name": "start_line",
- "in": "body",
- "description": "Required when using multi-line comments unless using in_reply_to . The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request \" in the GitHub Help documentation.
"
- },
- {
- "type": "string",
- "name": "start_side",
- "in": "body",
- "description": "Required when using multi-line comments unless using in_reply_to . The start_side is the starting side of the diff that the comment applies to. Can be LEFT or RIGHT. To learn more about multi-line comments, see \"Commenting on a pull request \" in the GitHub Help documentation. See side in this table for additional context.
",
- "enum": [
- "LEFT",
- "RIGHT",
- "side"
- ]
- },
- {
- "type": "integer",
- "name": "in_reply_to",
- "in": "body",
- "description": "The ID of the review comment to reply to. To find the ID of a review comment with \"List review comments on a pull request\" . When specified, all parameters other than body in the request body are ignored.
"
- },
- {
- "type": "string",
- "name": "subject_type",
- "in": "body",
- "description": "The level at which the comment is targeted.
",
- "enum": [
- "line",
- "file"
- ]
- }
- ],
- "descriptionHTML": "Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see \"Create an issue comment .\"
\nIf your comment applies to more than one line in the pull request diff, you should use the parameters line, side, and optionally start_line and start_side in your request.
\nThe position parameter is closing down. If you use position, the line, side, start_line, and start_side parameters are not required.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \"\nand \"Best practices for using the REST API .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "example-for-a-multi-line-comment",
- "request": {
- "contentType": "application/json",
- "description": "Example for a multi-line comment",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Great stuff!",
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "path": "file1.txt",
- "start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "side": "RIGHT"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
- "id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 8,
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
"type": "User",
+ "user_view_type": "public",
"site_admin": false
},
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
},
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- }
- },
- "start_line": 1,
- "original_start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "original_line": 2,
- "side": "RIGHT"
- },
- "schema": {
- "title": "Pull Request Review Comment",
- "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
- "type": "object",
- "properties": {
- "url": {
- "description": "URL for the pull request review comment",
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
]
},
- "pull_request_review_id": {
- "description": "The ID of the pull request review to which the comment belongs.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
},
- "id": {
- "description": "The ID of the pull request review comment.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
]
},
- "node_id": {
- "description": "The node ID of the pull request review comment.",
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
},
- "diff_hunk": {
- "description": "The diff of the line that the comment refers to.",
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
},
- "path": {
- "description": "The relative path of the file to which the comment applies.",
- "type": "string",
- "examples": [
- "config/database.yaml"
- ]
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
},
- "position": {
- "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
- "type": "integer",
- "examples": [
- 1
- ]
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
},
- "original_position": {
- "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
- "type": "integer",
- "examples": [
- 4
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
+ }
]
},
- "commit_id": {
- "description": "The SHA of the commit to which the comment applies.",
+ {
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
+ {
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
+ }
+ ]
+ },
+ "schema": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
"type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
+ "description": "The node ID of the project item."
},
- "original_commit_id": {
- "description": "The SHA of the original commit to which the comment applies.",
+ "project_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
"examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
]
},
- "in_reply_to_id": {
- "description": "The comment ID to reply to.",
- "type": "integer",
- "examples": [
- 8
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
]
},
- "user": {
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -636364,259 +674242,59 @@
"url"
]
},
- "body": {
- "description": "The text of the comment.",
- "type": "string",
- "examples": [
- "We should probably include a check for null values here."
- ]
- },
"created_at": {
"type": "string",
"format": "date-time",
+ "description": "The time when the item was created.",
"examples": [
- "2011-04-14T16:00:49Z"
+ "2022-04-28T12:00:00Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
+ "description": "The time when the item was last updated.",
"examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "html_url": {
- "description": "HTML URL for the pull request review comment.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- },
- "pull_request_url": {
- "description": "URL for the pull request that the review comment belongs to.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "self",
- "html",
- "pull_request"
- ]
- },
- "start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
+ "2022-04-28T12:00:00Z"
]
},
- "original_start_line": {
+ "archived_at": {
"type": [
- "integer",
+ "string",
"null"
],
- "description": "The first line of the range for a multi-line comment.",
+ "format": "date-time",
+ "description": "The time when the item was archived.",
"examples": [
- 2
+ "2022-04-28T12:00:00Z"
]
},
- "start_side": {
+ "item_url": {
"type": [
"string",
"null"
],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
- },
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "original_line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
+ "format": "uri",
+ "description": "The API URL of this item.",
"examples": [
- 2
- ]
- },
- "side": {
- "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
- },
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
},
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "\"comment body
\""
- ]
- },
- "body_text": {
- "type": "string",
- "examples": [
- "\"comment body\""
- ]
+ "description": "The fields and values associated with this item."
}
},
"required": [
- "url",
"id",
- "node_id",
- "pull_request_review_id",
- "diff_hunk",
- "path",
- "commit_id",
- "original_commit_id",
- "user",
- "body",
+ "content_type",
"created_at",
"updated_at",
- "html_url",
- "pull_request_url",
- "author_association",
- "_links"
+ "archived_at"
]
}
}
@@ -636624,13 +674302,21 @@
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
},
{
"httpStatusCode": "403",
"description": "Forbidden
"
},
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
{
"httpStatusCode": "422",
"description": "Validation failed, or the endpoint has been spammed.
"
@@ -636638,36 +674324,32 @@
],
"previews": [],
"progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies",
- "title": "Create a reply for a review comment",
- "category": "pulls",
- "subcategory": "comments",
+ "verb": "delete",
+ "requestPath": "/users/{username}/projectsV2/{project_number}/items/{item_id}",
+ "title": "Delete project item for user",
+ "category": "projects",
+ "subcategory": "items",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "project_number",
+ "description": "The project's number.
",
"in": "path",
"required": true,
"schema": {
- "type": "string"
+ "type": "integer"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
"in": "path",
"required": true,
"schema": {
@@ -636675,752 +674357,950 @@
}
},
{
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
+ "name": "item_id",
+ "description": "The unique identifier of the project item.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Delete a specific item from a user-owned project.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "item_id": "ITEM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/users/{username}/projectsV2/{project_number}/views/{view_number}/items",
+ "title": "List items for a user project view",
+ "category": "projects",
+ "subcategory": "items",
+ "parameters": [
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer",
- "format": "int64"
+ "type": "integer"
}
- }
- ],
- "bodyParameters": [
+ },
{
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The text of the review comment.
",
- "isRequired": true
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "view_number",
+ "description": "The number that identifies the project view.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "fields",
+ "description": "Limit results to specific fields, by their IDs. If not specified, the\ntitle field will be returned.
\nExample: fields[]=123&fields[]=456&fields[]=789 or fields=123,456,789
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 50,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
}
],
- "descriptionHTML": "Creates a reply to a review comment for a pull request. For the comment_id, provide the ID of the review comment you are replying to. This must be the ID of a top-level review comment , not a reply to that comment. Replies to replies are not supported.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \"\nand \"Best practices for using the REST API .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "bodyParameters": [],
+ "descriptionHTML": "List items in a user project with the saved view's filter applied.
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Great stuff!"
- },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "comment_id": "COMMENT_ID"
+ "project_number": "PROJECT_NUMBER",
+ "username": "USERNAME",
+ "view_number": "VIEW_NUMBER"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
- "id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 426899381,
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- }
- },
- "start_line": 1,
- "original_start_line": 1,
- "start_side": "RIGHT",
- "line": 2,
- "original_line": 2,
- "side": "RIGHT"
- },
- "schema": {
- "title": "Pull Request Review Comment",
- "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
- "type": "object",
- "properties": {
- "url": {
- "description": "URL for the pull request review comment",
- "type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- },
- "pull_request_review_id": {
- "description": "The ID of the pull request review to which the comment belongs.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "id": {
- "description": "The ID of the pull request review comment.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "description": "The node ID of the pull request review comment.",
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
- },
- "diff_hunk": {
- "description": "The diff of the line that the comment refers to.",
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
- },
- "path": {
- "description": "The relative path of the file to which the comment applies.",
- "type": "string",
- "examples": [
- "config/database.yaml"
- ]
- },
- "position": {
- "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "original_position": {
- "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "commit_id": {
- "description": "The SHA of the commit to which the comment applies.",
- "type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "original_commit_id": {
- "description": "The SHA of the original commit to which the comment applies.",
- "type": "string",
- "examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
- ]
- },
- "in_reply_to_id": {
- "description": "The comment ID to reply to.",
- "type": "integer",
- "examples": [
- 8
- ]
- },
+ "id": 13,
+ "node_id": "PVTI_lAAFAQ0",
+ "project_url": "https://api.github.com/orgs/github/projectsV2/1",
+ "content": {
+ "url": "https://api.github.com/repos/github/Hello-World/pulls/6",
+ "id": 10,
+ "node_id": "PR_kwABCg",
+ "html_url": "https://github.com/github/Hello-World/pull/6",
+ "diff_url": "https://github.com/github/Hello-World/pull/6.diff",
+ "patch_url": "https://github.com/github/Hello-World/pull/6.patch",
+ "issue_url": "https://api.github.com/repos/github/Hello-World/issues/6",
+ "number": 6,
+ "state": "open",
+ "locked": false,
+ "title": "Issue title",
"user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ "login": "monalisa",
+ "id": 161,
+ "node_id": "U_kgDMoQ",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
},
- "body": {
- "description": "The text of the comment.",
- "type": "string",
- "examples": [
- "We should probably include a check for null values here."
- ]
+ "body": "Issue body",
+ "created_at": "2025-08-01T18:44:50Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "98e25bad5878e54d22e5338cbc905dd2deedfa34",
+ "assignee": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
},
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/github/Hello-World/pulls/6/commits",
+ "review_comments_url": "https://api.github.com/repos/github/Hello-World/pulls/6/comments",
+ "review_comment_url": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/issues/6/comments",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "head": {
+ "label": "github:branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "ref": "branch-2ee3da8fde8a1adfe6d0809a1a414e4f",
+ "sha": "a3258d3434ecb2058b2784c8eb8610c2e9937a0d",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
},
- "html_url": {
- "description": "HTML URL for the pull request review comment.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
+ "base": {
+ "label": "github:branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "ref": "branch-0f4ceb14cbe39e4786ffbabb776da599",
+ "sha": "9a9f5a8d77bdc2540412900d3c930fe36a82b5ed",
+ "user": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments",
+ "created_at": "2025-08-01T18:44:14Z",
+ "updated_at": "2025-08-01T18:48:38Z",
+ "pushed_at": "2025-08-01T18:44:50Z",
+ "git_url": "git://github.localhost/github/Hello-World.git",
+ "ssh_url": "ssh://git@localhost:3035/github/Hello-World.git",
+ "clone_url": "https://github.com/github/Hello-World.git",
+ "svn_url": "https://github.com/github/Hello-World",
+ "homepage": null,
+ "size": 6,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 3,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 3,
+ "watchers": 0,
+ "default_branch": "main"
+ }
},
- "pull_request_url": {
- "description": "URL for the pull request that the review comment belongs to.",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6"
+ },
+ "html": {
+ "href": "https://github.com/github/Hello-World/pull/6"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/issues/6/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/github/Hello-World/pulls/6/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/github/Hello-World/statuses/a3258d3434ecb2058b2784c8eb8610c2e9937a0d"
+ }
},
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
+ "author_association": "MEMBER",
+ "auto_merge": null,
+ "active_lock_reason": null
+ },
+ "content_type": "PullRequest",
+ "creator": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "U_kgAC",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "created_at": "2025-08-01T18:44:51Z",
+ "updated_at": "2025-08-06T19:25:18Z",
+ "archived_at": null,
+ "item_url": "https://api.github.com/orgs/github/projectsV2/1/items/13",
+ "fields": [
+ {
+ "id": 1,
+ "name": "Title",
+ "type": "title",
+ "value": {
+ "raw": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "html": "It seemed to me that any civilization that had so far lost its head as to need to include a set of detailed instructions for use in a packet of toothpicks, was no longer a civilization in which I could live and stay sane.",
+ "number": 6,
+ "url": "https://github.com/5/1/pull/6",
+ "issue_id": 12,
+ "state": "open",
+ "state_reason": null,
+ "is_draft": false
+ }
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- }
- },
- "required": [
- "href"
- ]
+ {
+ "id": 2,
+ "name": "Assignees",
+ "type": "assignees",
+ "value": [
+ {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
}
- },
- "required": [
- "self",
- "html",
- "pull_request"
]
},
- "start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
- ]
+ {
+ "id": 3,
+ "name": "Status",
+ "type": "single_select",
+ "value": {
+ "id": "98236657",
+ "name": {
+ "raw": "Done",
+ "html": "Done"
+ },
+ "color": "PURPLE",
+ "description": {
+ "raw": "This has been completed",
+ "html": "This has been completed"
+ }
+ }
},
- "original_start_line": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The first line of the range for a multi-line comment.",
- "examples": [
- 2
+ {
+ "id": 4,
+ "name": "Labels",
+ "type": "labels",
+ "value": [
+ {
+ "id": 19,
+ "node_id": "LA_kwABEw",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/bug%20:bug:",
+ "name": "bug :bug:",
+ "color": "efe24f",
+ "default": false,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 26,
+ "node_id": "LA_kwABGg",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/fun%20size%20%F0%9F%8D%AB",
+ "name": "fun size 🍫",
+ "color": "f29c24",
+ "default": false,
+ "description": "Extra attention is needed"
+ },
+ {
+ "id": 33,
+ "node_id": "LA_kwABIQ",
+ "url": "https://api.github.com/repos/github/Hello-World/labels/%F0%9F%9A%92%20wontfix",
+ "name": "🚒 wontfix",
+ "color": "5891ce",
+ "default": false,
+ "description": "This will not be worked on"
+ }
]
},
- "start_side": {
- "type": [
- "string",
- "null"
- ],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
- },
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ {
+ "id": 5,
+ "name": "Linked pull requests",
+ "type": "linked_pull_requests",
+ "value": []
},
- "original_line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
+ {
+ "id": 6,
+ "name": "Milestone",
+ "type": "milestone",
+ "value": {
+ "url": "https://api.github.com/repos/github/Hello-World/milestones/1",
+ "html_url": "https://github.com/github/Hello-World/milestone/1",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/milestones/1/labels",
+ "id": 1,
+ "node_id": "MI_kwABAQ",
+ "number": 1,
+ "title": "Open milestone",
+ "description": null,
+ "creator": {
+ "login": "octocat",
+ "id": 175,
+ "node_id": "U_kgDMrw",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 2,
+ "closed_issues": 1,
+ "state": "open",
+ "created_at": "2025-08-01T18:44:30Z",
+ "updated_at": "2025-08-06T19:14:15Z",
+ "due_on": null,
+ "closed_at": null
+ }
},
- "side": {
- "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
+ {
+ "id": 7,
+ "name": "Repository",
+ "type": "repository",
+ "value": {
+ "id": 1,
+ "node_id": "R_kgAB",
+ "name": "Hello-World",
+ "full_name": "github/Hello-World",
+ "private": false,
+ "owner": {
+ "login": "github",
+ "id": 5,
+ "node_id": "O_kgAF",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/github",
+ "html_url": "https://github.com/github",
+ "followers_url": "https://api.github.com/users/github/followers",
+ "following_url": "https://api.github.com/users/github/following{/other_user}",
+ "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/github/subscriptions",
+ "organizations_url": "https://api.github.com/users/github/orgs",
+ "repos_url": "https://api.github.com/users/github/repos",
+ "events_url": "https://api.github.com/users/github/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/github/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/github/Hello-World",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/github/Hello-World",
+ "forks_url": "https://api.github.com/repos/github/Hello-World/forks",
+ "keys_url": "https://api.github.com/repos/github/Hello-World/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/github/Hello-World/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/github/Hello-World/teams",
+ "hooks_url": "https://api.github.com/repos/github/Hello-World/hooks",
+ "issue_events_url": "https://api.github.com/repos/github/Hello-World/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/github/Hello-World/events",
+ "assignees_url": "https://api.github.com/repos/github/Hello-World/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/github/Hello-World/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/github/Hello-World/tags",
+ "blobs_url": "https://api.github.com/repos/github/Hello-World/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/github/Hello-World/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/github/Hello-World/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/github/Hello-World/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/github/Hello-World/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/github/Hello-World/languages",
+ "stargazers_url": "https://api.github.com/repos/github/Hello-World/stargazers",
+ "contributors_url": "https://api.github.com/repos/github/Hello-World/contributors",
+ "subscribers_url": "https://api.github.com/repos/github/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/github/Hello-World/subscription",
+ "commits_url": "https://api.github.com/repos/github/Hello-World/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/github/Hello-World/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/github/Hello-World/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/github/Hello-World/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/github/Hello-World/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/github/Hello-World/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/github/Hello-World/merges",
+ "archive_url": "https://api.github.com/repos/github/Hello-World/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/github/Hello-World/downloads",
+ "issues_url": "https://api.github.com/repos/github/Hello-World/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/github/Hello-World/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/github/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/github/Hello-World/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/github/Hello-World/labels{/name}",
+ "releases_url": "https://api.github.com/repos/github/Hello-World/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/github/Hello-World/deployments"
+ }
},
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
- ]
+ {
+ "id": 8,
+ "name": "Type",
+ "type": "issue_type",
+ "value": null
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
+ {
+ "id": 9,
+ "name": "Reviewers",
+ "type": "reviewers",
+ "value": [
+ {
+ "type": "ReviewRequest",
+ "status": "pending",
+ "reviewer": {
+ "avatarUrl": "https://github.com/images/error/octocat_happy.gif",
+ "id": 2,
+ "login": "monalisa",
+ "url": "https://github.com/monalisa",
+ "name": "monalisa",
+ "type": "User"
+ }
}
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "\"comment body
\""
]
},
- "body_text": {
- "type": "string",
- "examples": [
- "\"comment body\""
- ]
- }
- },
- "required": [
- "url",
- "id",
- "node_id",
- "pull_request_review_id",
- "diff_hunk",
- "path",
- "commit_id",
- "original_commit_id",
- "user",
- "body",
- "created_at",
- "updated_at",
- "html_url",
- "pull_request_url",
- "author_association",
- "_links"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "review-requests": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "Get all requested reviewers for a pull request",
- "category": "pulls",
- "subcategory": "review-requests",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "users": [
{
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "teams": [
+ "id": 10,
+ "name": "Parent issue",
+ "type": "parent_issue",
+ "value": null
+ },
{
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
+ "id": 11,
+ "name": "Sub-issues progress",
+ "type": "sub_issues_progress",
+ "value": null
}
]
},
"schema": {
- "title": "Pull Request Review Request",
- "description": "Pull Request Review Request",
- "type": "object",
- "properties": {
- "users": {
- "type": "array",
- "items": {
+ "type": "array",
+ "items": {
+ "title": "Projects v2 Item",
+ "description": "An item belonging to a project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number",
+ "description": "The unique identifier of the project item."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the project item."
+ },
+ "project_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL of the project that contains this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/3"
+ ]
+ },
+ "content_type": {
+ "title": "Projects v2 Item Content Type",
+ "description": "The type of content tracked in a project item",
+ "type": "string",
+ "enum": [
+ "Issue",
+ "PullRequest",
+ "DraftIssue"
+ ]
+ },
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true,
+ "description": "The content of the item, which varies by content type."
+ },
+ "creator": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -637587,272 +675467,62 @@
"type",
"url"
]
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the item was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time when the item was archived.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "item_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL of this item.",
+ "examples": [
+ "https://api.github.com/users/monalisa/2/projectsV2/items/3"
]
+ },
+ "fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "description": "The fields and values associated with this item."
}
- }
- },
- "required": [
- "users",
- "teams"
- ]
+ },
+ "required": [
+ "id",
+ "content_type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ }
}
}
}
@@ -637861,41 +675531,45 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
"progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
}
- },
+ }
+ ],
+ "views": [
{
"serverUrl": "https://api.github.com",
"verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "Request reviewers for a pull request",
- "category": "pulls",
- "subcategory": "review-requests",
+ "requestPath": "/orgs/{org}/projectsV2/{project_number}/views",
+ "title": "Create a view for an organization-owned project",
+ "category": "projects",
+ "subcategory": "views",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -637903,8 +675577,8 @@
}
},
{
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
+ "name": "project_number",
+ "description": "The project's number.
",
"in": "path",
"required": true,
"schema": {
@@ -637914,105 +675588,54 @@
],
"bodyParameters": [
{
- "type": "array of strings",
- "name": "reviewers",
+ "type": "string",
+ "name": "name",
"in": "body",
- "description": "An array of user logins that will be requested.
"
+ "description": "The name of the view.
",
+ "isRequired": true
},
{
- "type": "array of strings",
- "name": "team_reviewers",
+ "type": "string",
+ "name": "layout",
"in": "body",
- "description": "An array of team slugs that will be requested.
"
+ "description": "The layout of the view.
",
+ "isRequired": true,
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "filter",
+ "in": "body",
+ "description": "The filter query for the view. See Filtering projects for more information.
"
+ },
+ {
+ "type": "array of integers",
+ "name": "visible_fields",
+ "in": "body",
+ "description": "visible_fields is not applicable to roadmap layout views.\nFor table and board layouts, this represents the field IDs that should be visible in the view. If not provided, the default visible fields will be used.
"
}
],
- "descriptionHTML": "Requests reviews for a pull request from a given set of users and/or teams.\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
",
+ "descriptionHTML": "Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.
",
"codeExamples": [
{
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "reviewers": [
- "octocat",
- "hubot",
- "other_user"
- ],
- "team_reviewers": [
- "justice-league"
- ]
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
+ "key": "table_view",
"response": {
"statusCode": "201",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Response for creating a table view
",
"example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
- "id": 1,
- "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
- "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
- "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
- "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "number": 1347,
- "state": "open",
- "locked": true,
- "title": "Amazing new feature",
- "user": {
- "login": "octocat",
+ "value": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Please pull these awesome changes in!",
- "labels": [
- {
- "id": 208045946,
- "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
- "name": "bug",
- "description": "Something isn't working",
- "color": "f29513",
- "default": true
- }
- ],
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
"number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
+ "name": "Sprint Board",
+ "layout": "board",
+ "node_id": "PVTV_lADOANN5s84ACbL0zgBueEI",
+ "project_url": "https://api.github.com/orgs/octocat/projectsV2/1",
+ "html_url": "https://github.com/orgs/octocat/projects/1/views/1",
"creator": {
"login": "octocat",
"id": 1,
@@ -638033,602 +675656,79 @@
"type": "User",
"site_admin": false
},
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
- },
- "active_lock_reason": "too heated",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:01:12Z",
- "closed_at": "2011-01-26T19:01:12Z",
- "merged_at": "2011-01-26T19:01:12Z",
- "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
- "assignee": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assignees": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- {
- "login": "hubot",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/hubot_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/hubot",
- "html_url": "https://github.com/hubot",
- "followers_url": "https://api.github.com/users/hubot/followers",
- "following_url": "https://api.github.com/users/hubot/following{/other_user}",
- "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
- "organizations_url": "https://api.github.com/users/hubot/orgs",
- "repos_url": "https://api.github.com/users/hubot/repos",
- "events_url": "https://api.github.com/users/hubot/events{/privacy}",
- "received_events_url": "https://api.github.com/users/hubot/received_events",
- "type": "User",
- "site_admin": true
- }
- ],
- "requested_reviewers": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- {
- "login": "hubot",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/hubot_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/hubot",
- "html_url": "https://github.com/hubot",
- "followers_url": "https://api.github.com/users/hubot/followers",
- "following_url": "https://api.github.com/users/hubot/following{/other_user}",
- "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
- "organizations_url": "https://api.github.com/users/hubot/orgs",
- "repos_url": "https://api.github.com/users/hubot/repos",
- "events_url": "https://api.github.com/users/hubot/events{/privacy}",
- "received_events_url": "https://api.github.com/users/hubot/received_events",
- "type": "User",
- "site_admin": true
- },
- {
- "login": "other_user",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/other_user_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/other_user",
- "html_url": "https://github.com/other_user",
- "followers_url": "https://api.github.com/users/other_user/followers",
- "following_url": "https://api.github.com/users/other_user/following{/other_user}",
- "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
- "organizations_url": "https://api.github.com/users/other_user/orgs",
- "repos_url": "https://api.github.com/users/other_user/repos",
- "events_url": "https://api.github.com/users/other_user/events{/privacy}",
- "received_events_url": "https://api.github.com/users/other_user/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "requested_teams": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
- }
- ],
- "head": {
- "label": "octocat:new-topic",
- "ref": "new-topic",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "template_repository": null,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "base": {
- "label": "octocat:master",
- "ref": "master",
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "repo": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "filter": "is:issue is:open",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ],
+ "sort_by": [
+ [
+ 123,
+ "asc"
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "template_repository": null,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1347"
- },
- "issue": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- },
- "comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
- },
- "review_comment": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- }
- },
- "author_association": "OWNER",
- "auto_merge": null,
- "draft": false
+ [
+ 456,
+ "desc"
+ ]
+ ],
+ "group_by": [
+ 123
+ ],
+ "vertical_group_by": [
+ 456
+ ]
+ }
},
"schema": {
- "title": "Pull Request Simple",
- "description": "Pull Request Simple",
+ "title": "Projects v2 View",
+ "description": "A view inside a projects v2 project",
"type": "object",
"properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
- ]
- },
"id": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOlB1bGxSZXF1ZXN0MQ=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347"
- ]
+ "description": "The unique identifier of the view."
},
- "diff_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.diff"
- ]
- },
- "patch_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1347.patch"
- ]
- },
- "issue_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
+ "number": {
+ "type": "integer",
+ "description": "The number of the view within the project."
},
- "commits_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
- ]
+ "description": "The name of the view."
},
- "review_comments_url": {
+ "layout": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ "description": "The layout of the view.",
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
]
},
- "review_comment_url": {
+ "node_id": {
"type": "string",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
- ]
+ "description": "The node ID of the view."
},
- "comments_url": {
+ "project_url": {
"type": "string",
- "format": "uri",
+ "description": "The API URL of the project that contains the view.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ "https://api.github.com/orgs/octocat/projectsV2/1"
]
},
- "statuses_url": {
+ "html_url": {
"type": "string",
"format": "uri",
+ "description": "The web URL of the view.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "number": {
- "type": "integer",
- "examples": [
- 1347
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "open"
- ]
- },
- "locked": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "title": {
- "type": "string",
- "examples": [
- "new-feature"
+ "https://github.com/orgs/octocat/projects/1/views/1"
]
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
+ "creator": {
+ "allOf": [
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -638799,432 +675899,219 @@
}
]
},
- "body": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "filter": {
"type": [
"string",
"null"
],
+ "description": "The filter query for the view.",
"examples": [
- "Please pull these awesome changes"
+ "is:issue is:open"
]
},
- "labels": {
+ "visible_fields": {
"type": "array",
+ "description": "The list of field IDs that are visible in the view.",
"items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "description",
- "color",
- "default"
- ]
+ "type": "integer"
}
},
- "milestone": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
- ]
- },
- "labels_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1002604
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
- ]
- },
- "number": {
- "description": "The number of the milestone.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "The state of the milestone.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open",
- "examples": [
- "open"
- ]
- },
- "title": {
- "description": "The title of the milestone.",
- "type": "string",
- "examples": [
- "v1.0"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Tracking milestone for version 1.0"
- ]
- },
- "creator": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
+ "sort_by": {
+ "type": "array",
+ "description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\".",
+ "items": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "oneOf": [
+ {
+ "type": "integer"
},
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2012-10-09T23:39:01Z"
- ]
+ {
+ "type": "string"
}
- },
- "required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
- "closed_at",
- "id",
- "node_id",
- "labels_url",
- "html_url",
- "number",
- "open_issues",
- "state",
- "title",
- "url",
- "created_at",
- "updated_at"
]
}
- ]
+ }
},
- "active_lock_reason": {
- "type": [
- "string",
- "null"
+ "group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for horizontal grouping.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "vertical_group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for vertical grouping (board layout).",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "number",
+ "name",
+ "layout",
+ "node_id",
+ "project_url",
+ "html_url",
+ "creator",
+ "created_at",
+ "updated_at",
+ "visible_fields",
+ "sort_by",
+ "group_by",
+ "vertical_group_by"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Create a table view",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "All Issues",
+ "layout": "table",
+ "filter": "is:issue",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ]
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "board_view",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for creating a board view with filter
",
+ "example": {
+ "value": {
+ "id": 1,
+ "number": 1,
+ "name": "Sprint Board",
+ "layout": "board",
+ "node_id": "PVTV_lADOANN5s84ACbL0zgBueEI",
+ "project_url": "https://api.github.com/orgs/octocat/projectsV2/1",
+ "html_url": "https://github.com/orgs/octocat/projects/1/views/1",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "filter": "is:issue is:open",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ],
+ "sort_by": [
+ [
+ 123,
+ "asc"
],
- "examples": [
- "too heated"
+ [
+ 456,
+ "desc"
]
+ ],
+ "group_by": [
+ 123
+ ],
+ "vertical_group_by": [
+ 456
+ ]
+ }
+ },
+ "schema": {
+ "title": "Projects v2 View",
+ "description": "A view inside a projects v2 project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the view."
},
- "created_at": {
+ "number": {
+ "type": "integer",
+ "description": "The number of the view within the project."
+ },
+ "name": {
"type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "description": "The name of the view."
},
- "updated_at": {
+ "layout": {
"type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
+ "description": "The layout of the view.",
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
]
},
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the view."
},
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "project_url": {
+ "type": "string",
+ "description": "The API URL of the project that contains the view.",
"examples": [
- "2011-01-26T19:01:12Z"
+ "https://api.github.com/orgs/octocat/projectsV2/1"
]
},
- "merge_commit_sha": {
- "type": [
- "string",
- "null"
- ],
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The web URL of the view.",
"examples": [
- "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ "https://github.com/orgs/octocat/projects/1/views/1"
]
},
- "assignee": {
- "anyOf": [
- {
- "type": "null"
- },
+ "creator": {
+ "allOf": [
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -639395,3301 +676282,6604 @@
}
]
},
- "assignees": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "filter": {
"type": [
- "array",
+ "string",
"null"
],
+ "description": "The filter query for the view.",
+ "examples": [
+ "is:issue is:open"
+ ]
+ },
+ "visible_fields": {
+ "type": "array",
+ "description": "The list of field IDs that are visible in the view.",
"items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ "type": "integer"
}
},
- "requested_reviewers": {
- "type": [
- "array",
- "null"
- ],
+ "sort_by": {
+ "type": "array",
+ "description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\".",
"items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "oneOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "string"
+ }
+ ]
+ }
}
},
- "requested_teams": {
- "type": [
- "array",
- "null"
- ],
+ "group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for horizontal grouping.",
"items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
+ "type": "integer"
}
},
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "vertical_group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for vertical grouping (board layout).",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "number",
+ "name",
+ "layout",
+ "node_id",
+ "project_url",
+ "html_url",
+ "creator",
+ "created_at",
+ "updated_at",
+ "visible_fields",
+ "sort_by",
+ "group_by",
+ "vertical_group_by"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Create a board view with filter",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "Sprint Board",
+ "layout": "board",
+ "filter": "is:issue is:open label:sprint",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ]
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "roadmap_view",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for creating a roadmap view
",
+ "example": {
+ "value": {
+ "id": 1,
+ "number": 1,
+ "name": "Sprint Board",
+ "layout": "board",
+ "node_id": "PVTV_lADOANN5s84ACbL0zgBueEI",
+ "project_url": "https://api.github.com/orgs/octocat/projectsV2/1",
+ "html_url": "https://github.com/orgs/octocat/projects/1/views/1",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "filter": "is:issue is:open",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ],
+ "sort_by": [
+ [
+ 123,
+ "asc"
+ ],
+ [
+ 456,
+ "desc"
+ ]
+ ],
+ "group_by": [
+ 123
+ ],
+ "vertical_group_by": [
+ 456
+ ]
+ }
+ },
+ "schema": {
+ "title": "Projects v2 View",
+ "description": "A view inside a projects v2 project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the view."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number of the view within the project."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the view."
+ },
+ "layout": {
+ "type": "string",
+ "description": "The layout of the view.",
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the view."
+ },
+ "project_url": {
+ "type": "string",
+ "description": "The API URL of the project that contains the view.",
+ "examples": [
+ "https://api.github.com/orgs/octocat/projectsV2/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The web URL of the view.",
+ "examples": [
+ "https://github.com/orgs/octocat/projects/1/views/1"
+ ]
+ },
+ "creator": {
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "name": {
- "description": "The name of the repository.",
+ "login": {
"type": "string",
"examples": [
- "Team Environment"
+ "octocat"
]
},
- "full_name": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
+ 1
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "description": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "This your first repo!"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "fork": {
- "type": "boolean"
- },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "https://api.github.com/users/octocat"
]
},
- "archive_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "https://github.com/octocat"
]
},
- "assignees_url": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "blobs_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "branches_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "collaborators_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "comments_url": {
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "commits_url": {
+ "organizations_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "compare_url": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "contents_url": {
+ "events_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "contributors_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "deployments_url": {
+ "type": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "User"
]
},
- "downloads_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "events_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "filter": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The filter query for the view.",
+ "examples": [
+ "is:issue is:open"
+ ]
+ },
+ "visible_fields": {
+ "type": "array",
+ "description": "The list of field IDs that are visible in the view.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "sort_by": {
+ "type": "array",
+ "description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\".",
+ "items": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "oneOf": [
+ {
+ "type": "integer"
},
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
+ {
+ "type": "string"
+ }
+ ]
+ }
+ }
+ },
+ "group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for horizontal grouping.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "vertical_group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for vertical grouping (board layout).",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "number",
+ "name",
+ "layout",
+ "node_id",
+ "project_url",
+ "html_url",
+ "creator",
+ "created_at",
+ "updated_at",
+ "visible_fields",
+ "sort_by",
+ "group_by",
+ "vertical_group_by"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Create a roadmap view",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "Product Roadmap",
+ "layout": "roadmap"
+ },
+ "parameters": {
+ "org": "ORG",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Response for creating a view in an organization-owned project.
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Projects\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/users/{user_id}/projectsV2/{project_number}/views",
+ "title": "Create a view for a user-owned project",
+ "category": "projects",
+ "subcategory": "views",
+ "parameters": [
+ {
+ "name": "user_id",
+ "description": "The unique identifier of the user.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "project_number",
+ "description": "The project's number.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the view.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "layout",
+ "in": "body",
+ "description": "The layout of the view.
",
+ "isRequired": true,
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "filter",
+ "in": "body",
+ "description": "The filter query for the view. See Filtering projects for more information.
"
+ },
+ {
+ "type": "array of integers",
+ "name": "visible_fields",
+ "in": "body",
+ "description": "visible_fields is not applicable to roadmap layout views.\nFor table and board layouts, this represents the field IDs that should be visible in the view. If not provided, the default visible fields will be used.
"
+ }
+ ],
+ "descriptionHTML": "Create a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered.
",
+ "codeExamples": [
+ {
+ "key": "table_view",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for creating a table view
",
+ "example": {
+ "value": {
+ "id": 1,
+ "number": 1,
+ "name": "Sprint Board",
+ "layout": "board",
+ "node_id": "PVTV_lADOANN5s84ACbL0zgBueEI",
+ "project_url": "https://api.github.com/orgs/octocat/projectsV2/1",
+ "html_url": "https://github.com/orgs/octocat/projects/1/views/1",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "filter": "is:issue is:open",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ],
+ "sort_by": [
+ [
+ 123,
+ "asc"
+ ],
+ [
+ 456,
+ "desc"
+ ]
+ ],
+ "group_by": [
+ 123
+ ],
+ "vertical_group_by": [
+ 456
+ ]
+ }
+ },
+ "schema": {
+ "title": "Projects v2 View",
+ "description": "A view inside a projects v2 project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the view."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number of the view within the project."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the view."
+ },
+ "layout": {
+ "type": "string",
+ "description": "The layout of the view.",
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the view."
+ },
+ "project_url": {
+ "type": "string",
+ "description": "The API URL of the project that contains the view.",
+ "examples": [
+ "https://api.github.com/orgs/octocat/projectsV2/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The web URL of the view.",
+ "examples": [
+ "https://github.com/orgs/octocat/projects/1/views/1"
+ ]
+ },
+ "creator": {
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "git_refs_url": {
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "octocat"
]
},
- "git_tags_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ 1
]
},
- "git_url": {
+ "node_id": {
"type": "string",
"examples": [
- "git:github.com/octocat/Hello-World.git"
+ "MDQ6VXNlcjE="
]
},
- "issue_comment_url": {
+ "avatar_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "issue_events_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "issues_url": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "https://api.github.com/users/octocat"
]
},
- "keys_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/octocat"
]
},
- "labels_url": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "languages_url": {
+ "following_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "merges_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "milestones_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notifications_url": {
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "pulls_url": {
+ "organizations_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "releases_url": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "ssh_url": {
+ "events_url": {
"type": "string",
"examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "stargazers_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "statuses_url": {
+ "type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "User"
]
},
- "subscribers_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "subscription_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "filter": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The filter query for the view.",
+ "examples": [
+ "is:issue is:open"
+ ]
+ },
+ "visible_fields": {
+ "type": "array",
+ "description": "The list of field IDs that are visible in the view.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "sort_by": {
+ "type": "array",
+ "description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\".",
+ "items": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "oneOf": [
+ {
+ "type": "integer"
},
- "tags_url": {
+ {
+ "type": "string"
+ }
+ ]
+ }
+ }
+ },
+ "group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for horizontal grouping.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "vertical_group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for vertical grouping (board layout).",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "number",
+ "name",
+ "layout",
+ "node_id",
+ "project_url",
+ "html_url",
+ "creator",
+ "created_at",
+ "updated_at",
+ "visible_fields",
+ "sort_by",
+ "group_by",
+ "vertical_group_by"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Create a table view",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "All Issues",
+ "layout": "table",
+ "filter": "is:issue",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ]
+ },
+ "parameters": {
+ "user_id": "USER_ID",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "board_view",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for creating a board view with filter
",
+ "example": {
+ "value": {
+ "id": 1,
+ "number": 1,
+ "name": "Sprint Board",
+ "layout": "board",
+ "node_id": "PVTV_lADOANN5s84ACbL0zgBueEI",
+ "project_url": "https://api.github.com/orgs/octocat/projectsV2/1",
+ "html_url": "https://github.com/orgs/octocat/projects/1/views/1",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "filter": "is:issue is:open",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ],
+ "sort_by": [
+ [
+ 123,
+ "asc"
+ ],
+ [
+ 456,
+ "desc"
+ ]
+ ],
+ "group_by": [
+ 123
+ ],
+ "vertical_group_by": [
+ 456
+ ]
+ }
+ },
+ "schema": {
+ "title": "Projects v2 View",
+ "description": "A view inside a projects v2 project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the view."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number of the view within the project."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the view."
+ },
+ "layout": {
+ "type": "string",
+ "description": "The layout of the view.",
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the view."
+ },
+ "project_url": {
+ "type": "string",
+ "description": "The API URL of the project that contains the view.",
+ "examples": [
+ "https://api.github.com/orgs/octocat/projectsV2/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The web URL of the view.",
+ "examples": [
+ "https://github.com/orgs/octocat/projects/1/views/1"
+ ]
+ },
+ "creator": {
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "octocat"
]
},
- "teams_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ 1
]
},
- "trees_url": {
+ "node_id": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "MDQ6VXNlcjE="
]
},
- "clone_url": {
+ "avatar_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World.git"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "mirror_url": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "hooks_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat"
]
},
- "svn_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
+ "https://github.com/octocat"
]
},
- "homepage": {
- "type": [
- "string",
- "null"
- ],
+ "followers_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
+ "https://api.github.com/users/octocat/followers"
]
},
- "stargazers_count": {
- "type": "integer",
+ "following_url": {
+ "type": "string",
"examples": [
- 80
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "watchers_count": {
- "type": "integer",
+ "gists_url": {
+ "type": "string",
"examples": [
- 80
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
+ "starred_url": {
+ "type": "string",
"examples": [
- 108
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "master"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "open_issues_count": {
- "type": "integer",
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 0
+ "https://api.github.com/users/octocat/orgs"
]
},
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/repos"
]
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
+ "events_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/received_events"
]
},
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
+ "type": {
+ "type": "string",
"examples": [
- true
+ "User"
]
},
- "has_pages": {
+ "site_admin": {
"type": "boolean"
},
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
+ "starred_at": {
+ "type": "string",
"examples": [
- true
+ "\"2020-07-09T00:17:55Z\""
]
},
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
+ "user_view_type": {
+ "type": "string",
"examples": [
- true
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "filter": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The filter query for the view.",
+ "examples": [
+ "is:issue is:open"
+ ]
+ },
+ "visible_fields": {
+ "type": "array",
+ "description": "The list of field IDs that are visible in the view.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "sort_by": {
+ "type": "array",
+ "description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\".",
+ "items": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "oneOf": [
+ {
+ "type": "integer"
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
+ {
"type": "string"
- },
- "pushed_at": {
+ }
+ ]
+ }
+ }
+ },
+ "group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for horizontal grouping.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "vertical_group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for vertical grouping (board layout).",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "number",
+ "name",
+ "layout",
+ "node_id",
+ "project_url",
+ "html_url",
+ "creator",
+ "created_at",
+ "updated_at",
+ "visible_fields",
+ "sort_by",
+ "group_by",
+ "vertical_group_by"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Create a board view with filter",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "Sprint Board",
+ "layout": "board",
+ "filter": "is:issue is:open label:sprint",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ]
+ },
+ "parameters": {
+ "user_id": "USER_ID",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ },
+ {
+ "key": "roadmap_view",
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for creating a roadmap view
",
+ "example": {
+ "value": {
+ "id": 1,
+ "number": 1,
+ "name": "Sprint Board",
+ "layout": "board",
+ "node_id": "PVTV_lADOANN5s84ACbL0zgBueEI",
+ "project_url": "https://api.github.com/orgs/octocat/projectsV2/1",
+ "html_url": "https://github.com/orgs/octocat/projects/1/views/1",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "created_at": "2022-04-28T12:00:00Z",
+ "updated_at": "2022-04-28T12:00:00Z",
+ "filter": "is:issue is:open",
+ "visible_fields": [
+ 123,
+ 456,
+ 789
+ ],
+ "sort_by": [
+ [
+ 123,
+ "asc"
+ ],
+ [
+ 456,
+ "desc"
+ ]
+ ],
+ "group_by": [
+ 123
+ ],
+ "vertical_group_by": [
+ 456
+ ]
+ }
+ },
+ "schema": {
+ "title": "Projects v2 View",
+ "description": "A view inside a projects v2 project",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the view."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number of the view within the project."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the view."
+ },
+ "layout": {
+ "type": "string",
+ "description": "The layout of the view.",
+ "enum": [
+ "table",
+ "board",
+ "roadmap"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node ID of the view."
+ },
+ "project_url": {
+ "type": "string",
+ "description": "The API URL of the project that contains the view.",
+ "examples": [
+ "https://api.github.com/orgs/octocat/projectsV2/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The web URL of the view.",
+ "examples": [
+ "https://github.com/orgs/octocat/projects/1/views/1"
+ ]
+ },
+ "creator": {
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
]
},
- "created_at": {
+ "email": {
"type": [
"string",
"null"
- ],
- "format": "date-time",
+ ]
+ },
+ "login": {
+ "type": "string",
"examples": [
- "2011-01-26T19:01:12Z"
+ "octocat"
]
},
- "updated_at": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "format": "date-time",
"examples": [
- "2011-01-26T19:14:43Z"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
+ "url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat"
]
},
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://github.com/octocat"
]
},
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- false
+ "https://api.github.com/users/octocat/followers"
]
},
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
+ "following_url": {
+ "type": "string",
"examples": [
- false
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
+ "gists_url": {
+ "type": "string",
"examples": [
- false
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
},
- "squash_merge_commit_title": {
+ "subscriptions_url": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
},
- "squash_merge_commit_message": {
+ "organizations_url": {
"type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
},
- "merge_commit_title": {
+ "repos_url": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
},
- "merge_commit_message": {
+ "events_url": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
},
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/received_events"
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
},
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
+ "site_admin": {
"type": "boolean"
},
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
"starred_at": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "\"2020-07-09T00:17:55Z\""
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "anyOf": [
+ }
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was created.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the view was last updated.",
+ "examples": [
+ "2022-04-28T12:00:00Z"
+ ]
+ },
+ "filter": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The filter query for the view.",
+ "examples": [
+ "is:issue is:open"
+ ]
+ },
+ "visible_fields": {
+ "type": "array",
+ "description": "The list of field IDs that are visible in the view.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "sort_by": {
+ "type": "array",
+ "description": "The sorting configuration for the view. Each element is a tuple of [field_id, direction] where direction is \"asc\" or \"desc\".",
+ "items": {
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "oneOf": [
{
- "type": "null"
+ "type": "integer"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "type": "string"
+ }
+ ]
+ }
+ }
+ },
+ "group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for horizontal grouping.",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "vertical_group_by": {
+ "type": "array",
+ "description": "The list of field IDs used for vertical grouping (board layout).",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "number",
+ "name",
+ "layout",
+ "node_id",
+ "project_url",
+ "html_url",
+ "creator",
+ "created_at",
+ "updated_at",
+ "visible_fields",
+ "sort_by",
+ "group_by",
+ "vertical_group_by"
+ ]
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Create a roadmap view",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "Product Roadmap",
+ "layout": "roadmap"
+ },
+ "parameters": {
+ "user_id": "USER_ID",
+ "project_number": "PROJECT_NUMBER"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Response for creating a view in a user-owned project.
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ }
+ ]
+ },
+ "pulls": {
+ "pulls": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls",
+ "title": "List pull requests",
+ "category": "pulls",
+ "subcategory": "pulls",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "state",
+ "description": "Either open, closed, or all to filter by state.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "open",
+ "closed",
+ "all"
+ ],
+ "default": "open"
+ }
+ },
+ {
+ "name": "head",
+ "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.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "base",
+ "description": "Filter pulls by base branch name. Example: gh-pages.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "description": "What to sort results by. popularity will sort by the number of comments. long-running will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "popularity",
+ "long-running"
+ ],
+ "default": "created"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction of the sort. Default: desc when sort is created or sort is not specified, otherwise asc.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists pull requests in a specified repository.
\nDraft pull requests are available in public repositories with GitHub\nFree and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing\nplans, and in public and private repositories with GitHub Team and GitHub Enterprise\nCloud. For more information, see GitHub's products \nin the GitHub Help documentation.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
+ "id": 1,
+ "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
+ "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
+ "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
+ "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "number": 1347,
+ "state": "open",
+ "locked": true,
+ "title": "Amazing new feature",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Please pull these awesome changes in!",
+ "labels": [
+ {
+ "id": 208045946,
+ "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
+ "name": "bug",
+ "description": "Something isn't working",
+ "color": "f29513",
+ "default": true
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
+ },
+ "active_lock_reason": "too heated",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:01:12Z",
+ "closed_at": "2011-01-26T19:01:12Z",
+ "merged_at": "2011-01-26T19:01:12Z",
+ "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
+ "assignee": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ {
+ "login": "hubot",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/hubot_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/hubot",
+ "html_url": "https://github.com/hubot",
+ "followers_url": "https://api.github.com/users/hubot/followers",
+ "following_url": "https://api.github.com/users/hubot/following{/other_user}",
+ "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
+ "organizations_url": "https://api.github.com/users/hubot/orgs",
+ "repos_url": "https://api.github.com/users/hubot/repos",
+ "events_url": "https://api.github.com/users/hubot/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/hubot/received_events",
+ "type": "User",
+ "site_admin": true
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "other_user",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/other_user_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/other_user",
+ "html_url": "https://github.com/other_user",
+ "followers_url": "https://api.github.com/users/other_user/followers",
+ "following_url": "https://api.github.com/users/other_user/following{/other_user}",
+ "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
+ "organizations_url": "https://api.github.com/users/other_user/orgs",
+ "repos_url": "https://api.github.com/users/other_user/repos",
+ "events_url": "https://api.github.com/users/other_user/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/other_user/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "permission": "admin",
+ "notification_setting": "notifications_enabled",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
+ }
+ ],
+ "head": {
+ "label": "octocat:new-topic",
+ "ref": "new-topic",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "base": {
+ "label": "octocat:master",
+ "ref": "master",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1347"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "draft": false
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "too heated"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "name": {
- "description": "The name of the repository.",
+ "login": {
"type": "string",
"examples": [
- "Team Environment"
+ "octocat"
]
},
- "full_name": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
+ 1
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "description": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "This your first repo!"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "fork": {
- "type": "boolean"
- },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://api.github.com/users/octocat"
]
},
- "collaborators_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "https://github.com/octocat"
]
},
- "comments_url": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "commits_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "compare_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "contents_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "contributors_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "deployments_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "downloads_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat/repos"
]
},
"events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "forks_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "git_refs_url": {
+ "type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "User"
]
},
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "git_url": {
+ "starred_at": {
"type": "string",
"examples": [
- "git:github.com/octocat/Hello-World.git"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "issue_comment_url": {
+ "user_view_type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "public"
]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "keys_url": {
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "octocat"
]
},
- "labels_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ 1
]
},
- "languages_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "MDQ6VXNlcjE="
]
},
- "merges_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "pulls_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "releases_url": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat"
]
},
- "ssh_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://github.com/octocat"
]
},
- "stargazers_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/followers"
]
},
- "statuses_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "subscribers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "subscription_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "tags_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "teams_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "clone_url": {
+ "repos_url": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
"format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/repos"
]
},
- "hooks_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "svn_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ "https://api.github.com/users/octocat/received_events"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "type": {
"type": "string",
"examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
+ "User"
]
},
- "has_pages": {
+ "site_admin": {
"type": "boolean"
},
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
+ "starred_at": {
+ "type": "string",
"examples": [
- true
+ "\"2020-07-09T00:17:55Z\""
]
},
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
+ "user_view_type": {
+ "type": "string",
"examples": [
- true
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
+ "node_id": {
"type": "string"
},
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
+ "name": {
+ "type": "string"
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "slug": {
+ "type": "string"
},
- "updated_at": {
+ "description": {
"type": [
"string",
"null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
]
},
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "privacy": {
+ "type": "string"
},
- "temp_clone_token": {
+ "notification_setting": {
"type": "string"
},
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "permission": {
+ "type": "string"
},
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
]
},
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- false
+ "https://github.com/orgs/rails/teams/core"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ "members_url": {
+ "type": "string"
},
- "merge_commit_title": {
+ "repositories_url": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ "format": "uri"
},
- "merge_commit_message": {
+ "type": {
+ "description": "The ownership type of the team",
"type": "string",
"enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ "enterprise",
+ "organization"
+ ]
},
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- true
+ 37
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ 42
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
},
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "lexical_commit_sha": {
- "type": "string"
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
+ ]
+ }
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "commits": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "statuses": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "issue": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- "required": [
- "href"
- ]
- },
- "review_comment": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "sha": {
+ "type": "string"
},
- "required": [
- "href"
- ]
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
},
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
},
- "required": [
- "comments",
- "commits",
- "statuses",
- "html",
- "issue",
- "review_comments",
- "review_comment",
- "self"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "auto_merge": {
- "title": "Auto merge",
- "description": "The status of auto merging a pull request.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "enabled_by": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "site_admin": {
- "type": "boolean"
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "merge_method": {
- "type": "string",
- "description": "The merge method to use.",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- },
- "commit_title": {
- "type": "string",
- "description": "Title for the merge commit message."
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
},
- "commit_message": {
- "type": "string",
- "description": "Commit message for the merge commit."
- }
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
},
- "required": [
- "enabled_by",
- "merge_method",
- "commit_title",
- "commit_message"
- ]
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
},
- "draft": {
- "description": "Indicates whether or not the pull request is a draft.",
- "type": "boolean",
- "examples": [
- false
- ]
- }
- },
- "required": [
- "_links",
- "assignee",
- "labels",
- "base",
- "body",
- "closed_at",
- "comments_url",
- "commits_url",
- "created_at",
- "diff_url",
- "head",
- "html_url",
- "id",
- "node_id",
- "issue_url",
- "merge_commit_sha",
- "merged_at",
- "milestone",
- "number",
- "patch_url",
- "review_comment_url",
- "review_comments_url",
- "statuses_url",
- "state",
- "locked",
- "title",
- "updated_at",
- "url",
- "user",
- "author_association",
- "auto_merge"
- ]
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "422",
- "description": "Unprocessable Entity if user is not a collaborator
"
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -642699,18 +682889,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Pull requests\" repository permissions": "write"
+ "\"Pull requests\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "Remove requested reviewers from a pull request",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/pulls",
+ "title": "Create a pull request",
"category": "pulls",
- "subcategory": "review-requests",
+ "subcategory": "pulls",
"parameters": [
{
"name": "owner",
@@ -642729,33 +682920,61 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [
{
- "type": "array of strings",
- "name": "reviewers",
+ "type": "string",
+ "name": "title",
"in": "body",
- "description": "An array of user logins that will be removed.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
"
+ },
+ {
+ "type": "string",
+ "name": "head",
+ "in": "body",
+ "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.
",
"isRequired": true
},
{
- "type": "array of strings",
- "name": "team_reviewers",
+ "type": "string",
+ "name": "head_repo",
"in": "body",
- "description": "An array of team slugs that will be removed.
"
+ "description": "The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.
"
+ },
+ {
+ "type": "string",
+ "name": "base",
+ "in": "body",
+ "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.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "The contents of the pull request.
"
+ },
+ {
+ "type": "boolean",
+ "name": "maintainer_can_modify",
+ "in": "body",
+ "description": "Indicates whether maintainers can modify the pull request.
"
+ },
+ {
+ "type": "boolean",
+ "name": "draft",
+ "in": "body",
+ "description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests \" in the GitHub Help documentation to learn more.
"
+ },
+ {
+ "type": "integer",
+ "name": "issue",
+ "in": "body",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
"
}
],
- "descriptionHTML": "Removes review requests from a pull request for a given set of users and/or teams.
",
+ "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
"codeExamples": [
{
"key": "default",
@@ -642764,23 +682983,18 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "reviewers": [
- "octocat",
- "hubot",
- "other_user"
- ],
- "team_reviewers": [
- "justice-league"
- ]
+ "title": "Amazing new feature",
+ "body": "Please pull these awesome changes in!",
+ "head": "octocat:new-feature",
+ "base": "master"
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
@@ -642972,8 +683186,7 @@
"notification_setting": "notifications_enabled",
"permission": "admin",
"members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
+ "repositories_url": "https://api.github.com/teams/1/repos"
}
],
"head": {
@@ -643079,7 +683292,6 @@
"size": 108,
"default_branch": "master",
"open_issues_count": 0,
- "is_template": true,
"topics": [
"octocat",
"atom",
@@ -643091,9 +683303,9 @@
"has_wiki": true,
"has_pages": false,
"has_downloads": true,
+ "has_discussions": false,
"archived": false,
"disabled": false,
- "visibility": "public",
"pushed_at": "2011-01-26T19:06:43Z",
"created_at": "2011-01-26T19:01:12Z",
"updated_at": "2011-01-26T19:14:43Z",
@@ -643103,25 +683315,20 @@
"pull": true
},
"allow_rebase_merge": true,
- "template_repository": null,
"temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
"allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
"allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
+ "allow_forking": true,
+ "forks": 123,
+ "open_issues": 123,
"license": {
"key": "mit",
"name": "MIT License",
"url": "https://api.github.com/licenses/mit",
"spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
+ "node_id": "MDc6TGljZW5zZW1pdA=="
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "watchers": 123
}
},
"base": {
@@ -643227,7 +683434,6 @@
"size": 108,
"default_branch": "master",
"open_issues_count": 0,
- "is_template": true,
"topics": [
"octocat",
"atom",
@@ -643239,9 +683445,9 @@
"has_wiki": true,
"has_pages": false,
"has_downloads": true,
+ "has_discussions": false,
"archived": false,
"disabled": false,
- "visibility": "public",
"pushed_at": "2011-01-26T19:06:43Z",
"created_at": "2011-01-26T19:01:12Z",
"updated_at": "2011-01-26T19:14:43Z",
@@ -643251,25 +683457,19 @@
"pull": true
},
"allow_rebase_merge": true,
- "template_repository": null,
"temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
"allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
"allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
+ "forks": 123,
+ "open_issues": 123,
"license": {
"key": "mit",
"name": "MIT License",
"url": "https://api.github.com/licenses/mit",
"spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
+ "node_id": "MDc6TGljZW5zZW1pdA=="
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "watchers": 123
}
},
"_links": {
@@ -643300,12 +683500,43 @@
},
"author_association": "OWNER",
"auto_merge": null,
- "draft": false
+ "draft": false,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "comments": 10,
+ "review_comments": 0,
+ "maintainer_can_modify": true,
+ "commits": 3,
+ "additions": 100,
+ "deletions": 3,
+ "changed_files": 5
},
"schema": {
- "title": "Pull Request Simple",
- "description": "Pull Request Simple",
"type": "object",
+ "title": "Pull Request",
+ "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
"properties": {
"url": {
"type": "string",
@@ -643390,12 +683621,18 @@
]
},
"number": {
+ "description": "Number uniquely identifying the pull request within its repository.",
"type": "integer",
"examples": [
- 1347
+ 42
]
},
"state": {
+ "description": "State of this Pull Request. Either `open` or `closed`.",
+ "enum": [
+ "open",
+ "closed"
+ ],
"type": "string",
"examples": [
"open"
@@ -643408,184 +683645,178 @@
]
},
"title": {
+ "description": "The title of the pull request.",
"type": "string",
"examples": [
- "new-feature"
+ "Amazing new feature"
]
},
"user": {
- "anyOf": [
- {
- "type": "null"
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
"body": {
@@ -643616,7 +683847,10 @@
"type": "string"
},
"description": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"color": {
"type": "string"
@@ -644538,1408 +684772,141 @@
"null"
],
"items": {
- "title": "Team",
+ "title": "Team Simple",
"description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
"id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
]
},
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
]
},
"url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/organizations/1/team/1"
]
},
"members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- 37
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
"examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
+ "Justice League"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "repo": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
},
- "base": {
+ "head": {
"type": "object",
"properties": {
"label": {
@@ -646791,1784 +685758,116 @@
},
"open_issues": {
"type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "label",
- "ref",
- "repo",
- "sha",
- "user"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "commits": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "statuses": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "issue": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comments": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "review_comment": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "comments",
- "commits",
- "statuses",
- "html",
- "issue",
- "review_comments",
- "review_comment",
- "self"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "auto_merge": {
- "title": "Auto merge",
- "description": "The status of auto merging a pull request.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "enabled_by": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "merge_method": {
- "type": "string",
- "description": "The merge method to use.",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- },
- "commit_title": {
- "type": "string",
- "description": "Title for the merge commit message."
- },
- "commit_message": {
- "type": "string",
- "description": "Commit message for the merge commit."
- }
- },
- "required": [
- "enabled_by",
- "merge_method",
- "commit_title",
- "commit_message"
- ]
- },
- "draft": {
- "description": "Indicates whether or not the pull request is a draft.",
- "type": "boolean",
- "examples": [
- false
- ]
- }
- },
- "required": [
- "_links",
- "assignee",
- "labels",
- "base",
- "body",
- "closed_at",
- "comments_url",
- "commits_url",
- "created_at",
- "diff_url",
- "head",
- "html_url",
- "id",
- "node_id",
- "issue_url",
- "merge_commit_sha",
- "merged_at",
- "milestone",
- "number",
- "patch_url",
- "review_comment_url",
- "review_comments_url",
- "statuses_url",
- "state",
- "locked",
- "title",
- "updated_at",
- "url",
- "user",
- "author_association",
- "auto_merge"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "reviews": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews",
- "title": "List reviews for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists all reviews for a specified pull request. The list of reviews returns in chronological order.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "The list of reviews returns in chronological order.
",
- "example": [
- {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Here is the body for the review.",
- "state": "APPROVED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "CHANGES_REQUESTED"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "html",
- "pull_request"
- ]
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "The list of reviews returns in chronological order.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews",
- "title": "Create a review for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "commit_id",
- "in": "body",
- "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",
- "name": "body",
- "in": "body",
- "description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
"
- },
- {
- "type": "string",
- "name": "event",
- "in": "body",
- "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 when you are ready.
",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- },
- {
- "type": "array of objects",
- "name": "comments",
- "in": "body",
- "description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "path",
- "description": "The relative path to the file that necessitates a review comment.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "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. The 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.
"
- },
- {
- "type": "string",
- "name": "body",
- "description": "Text of the review comment.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "line",
- "description": ""
- },
- {
- "type": "string",
- "name": "side",
- "description": ""
- },
- {
- "type": "integer",
- "name": "start_line",
- "description": ""
- },
- {
- "type": "string",
- "name": "start_side",
- "description": ""
- }
- ]
- }
- ],
- "descriptionHTML": "Creates a review on a specified pull request.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nPull request reviews created in the PENDING state are not submitted and therefore do not include the submitted_at property in the response. To create a pending review for a pull request, leave the event parameter blank. For more information about submitting a PENDING review, see \"Submit a review for a pull request .\"
\n Note
\n
\nTo comment on a specific line in a file, you need to first determine the position of that line in the diff. To see a pull request diff, add the application/vnd.github.v3.diff media type to the Accept header of a call to the Get a 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.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "body": "This is close to perfect! Please address the suggested inline change.",
- "event": "REQUEST_CHANGES",
- "comments": [
- {
- "path": "file.md",
- "position": 6,
- "body": "Please add more information here, and fix this typo."
- }
- ]
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "This is close to perfect! Please address the suggested inline change.",
- "state": "CHANGES_REQUESTED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- },
- "schema": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "CHANGES_REQUESTED"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "html",
- "pull_request"
- ]
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
- "title": "Get a review for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "review_id",
- "description": "The unique identifier of the review.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Retrieves a pull request review by its ID.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "review_id": "REVIEW_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Here is the body for the review.",
- "state": "APPROVED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- },
- "schema": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- {
+ "sha": {
+ "type": "string"
+ },
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -648736,1834 +686035,977 @@
"url"
]
}
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "CHANGES_REQUESTED"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- ]
- },
- "_links": {
+ "base": {
"type": "object",
"properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
+ "label": {
+ "type": "string"
},
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "html",
- "pull_request"
- ]
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
- "title": "Update a review for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "review_id",
- "description": "The unique identifier of the review.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The body text of the pull request review.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Updates the contents of a specified review summary comment.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "This is close to perfect! Please address the suggested inline change. And add more about this."
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "review_id": "REVIEW_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "This is close to perfect! Please address the suggested inline change. And add more about this.",
- "state": "CHANGES_REQUESTED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- },
- "schema": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "ref": {
+ "type": "string"
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
]
},
- "login": {
+ "node_id": {
"type": "string",
"examples": [
- "octocat"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
"examples": [
- 1
+ "Team Environment"
]
},
- "node_id": {
+ "full_name": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "octocat/Hello-World"
]
},
- "avatar_url": {
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "description": {
"type": [
"string",
"null"
],
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean"
+ },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "html_url": {
+ "archive_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "followers_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "following_url": {
+ "blobs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "gists_url": {
+ "branches_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "starred_url": {
+ "collaborators_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "subscriptions_url": {
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "organizations_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "repos_url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
"events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "received_events_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "type": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "site_admin": {
- "type": "boolean"
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
},
- "starred_at": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "user_view_type": {
+ "git_url": {
"type": "string",
"examples": [
- "public"
+ "git:github.com/octocat/Hello-World.git"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "CHANGES_REQUESTED"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "html",
- "pull_request"
- ]
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
- "title": "Delete a pending review for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "review_id",
- "description": "The unique identifier of the review.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Deletes a pull request review that has not been submitted. Submitted reviews cannot be deleted.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "review_id": "REVIEW_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "This is close to perfect! Please address the suggested inline change.",
- "state": "CHANGES_REQUESTED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- },
- "schema": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "login": {
+ "issues_url": {
"type": "string",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "keys_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "node_id": {
+ "labels_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "avatar_url": {
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "url": {
+ "milestones_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "html_url": {
+ "notifications_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "followers_url": {
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "following_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "gists_url": {
+ "subscribers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "starred_url": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "subscriptions_url": {
+ "tags_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "organizations_url": {
+ "teams_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "repos_url": {
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
"type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "git:git.example.com/octocat/Hello-World"
]
},
- "events_url": {
+ "hooks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "received_events_url": {
+ "svn_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "type": {
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
"examples": [
- "User"
+ "master"
]
},
- "site_admin": {
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
- "type": "string",
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
- "type": "string",
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "public"
+ true
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "CHANGES_REQUESTED"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
"type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
"type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "html",
- "pull_request"
- ]
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
- "title": "List comments for a pull request review",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "review_id",
- "description": "The unique identifier of the review.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists comments for a specific pull request review.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "review_id": "REVIEW_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
- "pull_request_review_id": 42,
- "id": 10,
- "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
- "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
- "path": "file1.txt",
- "position": 1,
- "original_position": 4,
- "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
- "in_reply_to_id": 8,
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Great stuff!",
- "created_at": "2011-04-14T16:00:49Z",
- "updated_at": "2011-04-14T16:00:49Z",
- "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
- "author_association": "NONE",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- },
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- }
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Legacy Review Comment",
- "description": "Legacy Review Comment",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
- ]
- },
- "pull_request_review_id": {
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 10
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
- ]
- },
- "diff_hunk": {
- "type": "string",
- "examples": [
- "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
- ]
- },
- "path": {
- "type": "string",
- "examples": [
- "file1.txt"
- ]
- },
- "position": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 1
- ]
- },
- "original_position": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "commit_id": {
- "type": "string",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "original_commit_id": {
- "type": "string",
- "examples": [
- "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
- ]
- },
- "in_reply_to_id": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "Great stuff"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-14T16:00:49Z"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/1"
- ]
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
- "required": [
- "href"
- ]
- },
- "html": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "title": "Link",
- "description": "Hypermedia Link",
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "self",
- "html",
- "pull_request"
- ]
- },
- "body_text": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
},
- "rocket": {
- "type": "integer"
- }
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- },
- "side": {
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT"
- ],
- "default": "RIGHT",
- "type": "string"
- },
- "start_side": {
- "type": [
- "string",
- "null"
- ],
- "description": "The side of the first line of the range for a multi-line comment.",
- "enum": [
- "LEFT",
- "RIGHT",
- null
- ],
- "default": "RIGHT"
- },
- "line": {
- "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "original_line": {
- "description": "The original line of the blob to which the comment applies. The last line of the range for a multi-line comment",
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "start_line": {
- "description": "The first line of the range for a multi-line comment.",
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 2
- ]
- },
- "original_start_line": {
- "description": "The original first line of the range for a multi-line comment.",
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 2
- ]
- },
- "subject_type": {
- "description": "The level at which the comment is targeted, can be a diff line or a file.",
- "type": "string",
- "enum": [
- "line",
- "file"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "body",
- "diff_hunk",
- "path",
- "position",
- "original_position",
- "commit_id",
- "original_commit_id",
- "user",
- "pull_request_review_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals",
- "title": "Dismiss a review for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "review_id",
- "description": "The unique identifier of the review.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "message",
- "in": "body",
- "description": "The message for the pull request review dismissal
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "event",
- "in": "body",
- "description": "",
- "enum": [
- "DISMISS"
- ]
- }
- ],
- "descriptionHTML": "Dismisses a specified review on a pull request.
\n Note
\n
\nTo dismiss a pull request review on a protected branch , you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
\n
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "message": "You are dismissed",
- "event": "DISMISS"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "review_id": "REVIEW_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Here is the body for the review.",
- "state": "DISMISSED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- },
- "schema": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "sha": {
+ "type": "string"
},
- {
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -650731,39 +687173,60 @@
"url"
]
}
- ]
- },
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
- "examples": [
- "CHANGES_REQUESTED"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
- },
- "pull_request_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
"_links": {
"type": "object",
"properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
"html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
"type": "object",
"properties": {
"href": {
@@ -650774,7 +687237,48 @@
"href"
]
},
- "pull_request": {
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
"type": "object",
"properties": {
"href": {
@@ -650787,30 +687291,16 @@
}
},
"required": [
+ "comments",
+ "commits",
+ "statuses",
"html",
- "pull_request"
- ]
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
]
},
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
"author_association": {
"title": "author_association",
"type": "string",
@@ -650828,202 +687318,16 @@
"examples": [
"OWNER"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events",
- "title": "Submit a review for a pull request",
- "category": "pulls",
- "subcategory": "reviews",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "pull_number",
- "description": "The number that identifies the pull request.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "review_id",
- "description": "The unique identifier of the review.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The body text of the pull request review
"
- },
- {
- "type": "string",
- "name": "event",
- "in": "body",
- "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.
",
- "isRequired": true,
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- }
- ],
- "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Here is the body for the review.",
- "event": "REQUEST_CHANGES"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "pull_number": "PULL_NUMBER",
- "review_id": "REVIEW_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 80,
- "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Here is the body for the review.",
- "state": "APPROVED",
- "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
- "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
- "_links": {
- "html": {
- "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- },
- "pull_request": {
- "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- }
- },
- "submitted_at": "2019-11-17T17:43:43Z",
- "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
- "author_association": "COLLABORATOR"
- },
- "schema": {
- "title": "Pull Request Review",
- "description": "Pull Request Reviews are reviews on pull requests.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the review",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
- ]
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -651190,583 +687494,328 @@
"type",
"url"
]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
}
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
]
},
- "body": {
- "description": "The text of the review.",
- "type": "string",
- "examples": [
- "This looks great."
- ]
- },
- "state": {
- "type": "string",
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
"examples": [
- "CHANGES_REQUESTED"
+ false
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
- ]
+ "merged": {
+ "type": "boolean"
},
- "pull_request_url": {
- "type": "string",
- "format": "uri",
+ "mergeable": {
+ "type": [
+ "boolean",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/12"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- },
- "required": [
- "href"
- ]
- }
- },
- "required": [
- "html",
- "pull_request"
+ true
]
},
- "submitted_at": {
- "type": "string",
- "format": "date-time"
- },
- "commit_id": {
- "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "rebaseable": {
"type": [
- "string",
+ "boolean",
"null"
],
"examples": [
- "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ true
]
},
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "author_association": {
- "title": "author_association",
+ "mergeable_state": {
"type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
"examples": [
- "OWNER"
+ "clean"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "body",
- "state",
- "commit_id",
- "html_url",
- "pull_request_url",
- "_links",
- "author_association"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- }
- ]
- },
- "rate-limit": {
- "rate-limit": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/rate_limit",
- "title": "Get rate limit status for the authenticated user",
- "category": "rate-limit",
- "subcategory": "rate-limit",
- "parameters": [],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nAccessing this endpoint does not count against your REST API rate limit.
\n
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources, you'll see objects relating to different categories:
\n\nThe core object provides your rate limit status for all non-search-related resources in the REST API. \nThe search object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search .\" \nThe code_search object provides your rate limit status for the REST API for searching code. For more information, see \"Search code .\" \nThe graphql object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations .\" \nThe integration_manifest object provides your rate limit status for the POST /app-manifests/{code}/conversions operation. For more information, see \"Creating a GitHub App from a manifest .\" \nThe dependency_snapshots object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph .\" \nThe dependency_sbom object provides your rate limit status for requesting SBOMs from the dependency graph. For more information, see \"Dependency graph .\" \nThe code_scanning_upload object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub .\" \nThe actions_runner_registration object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners .\" \nThe source_import object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions .\" \n \n Note
\n
\nThe rate object is closing down. If 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.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "resources": {
- "core": {
- "limit": 5000,
- "used": 1,
- "remaining": 4999,
- "reset": 1691591363
- },
- "search": {
- "limit": 30,
- "used": 12,
- "remaining": 18,
- "reset": 1691591091
- },
- "graphql": {
- "limit": 5000,
- "used": 7,
- "remaining": 4993,
- "reset": 1691593228
- },
- "integration_manifest": {
- "limit": 5000,
- "used": 1,
- "remaining": 4999,
- "reset": 1691594631
- },
- "source_import": {
- "limit": 100,
- "used": 1,
- "remaining": 99,
- "reset": 1691591091
- },
- "code_scanning_upload": {
- "limit": 500,
- "used": 1,
- "remaining": 499,
- "reset": 1691594631
- },
- "actions_runner_registration": {
- "limit": 10000,
- "used": 0,
- "remaining": 10000,
- "reset": 1691594631
- },
- "scim": {
- "limit": 15000,
- "used": 0,
- "remaining": 15000,
- "reset": 1691594631
- },
- "dependency_snapshots": {
- "limit": 100,
- "used": 0,
- "remaining": 100,
- "reset": 1691591091
- },
- "code_search": {
- "limit": 10,
- "used": 0,
- "remaining": 10,
- "reset": 1691591091
},
- "code_scanning_autofix": {
- "limit": 10,
- "used": 0,
- "remaining": 10,
- "reset": 1691591091
- }
- },
- "rate": {
- "limit": 5000,
- "used": 1,
- "remaining": 4999,
- "reset": 1372700873
- }
- },
- "schema": {
- "title": "Rate Limit Overview",
- "description": "Rate Limit Overview",
- "type": "object",
- "properties": {
- "resources": {
- "type": "object",
- "properties": {
- "core": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset": {
- "type": "integer"
- },
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "graphql": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset": {
- "type": "integer"
- },
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "search": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset": {
- "type": "integer"
- },
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "code_search": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset": {
- "type": "integer"
- },
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "source_import": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset": {
- "type": "integer"
- },
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
+ "merged_by": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "integration_manifest": {
- "title": "Rate Limit",
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "limit": {
- "type": "integer"
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "remaining": {
- "type": "integer"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "reset": {
- "type": "integer"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "code_scanning_upload": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "remaining": {
- "type": "integer"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
},
- "reset": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "actions_runner_registration": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
- "remaining": {
- "type": "integer"
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
},
- "reset": {
- "type": "integer"
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
},
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "scim": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
},
- "remaining": {
- "type": "integer"
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
},
- "reset": {
- "type": "integer"
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
},
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "dependency_snapshots": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
},
- "remaining": {
- "type": "integer"
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
},
- "reset": {
- "type": "integer"
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
},
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "dependency_sbom": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
},
- "remaining": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
},
- "reset": {
- "type": "integer"
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
},
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
- ]
- },
- "code_scanning_autofix": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
},
- "remaining": {
- "type": "integer"
+ "site_admin": {
+ "type": "boolean"
},
- "reset": {
- "type": "integer"
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
},
- "used": {
- "type": "integer"
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "limit",
- "remaining",
- "reset",
- "used"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "core",
- "search"
]
},
- "rate": {
- "title": "Rate Limit",
- "type": "object",
- "properties": {
- "limit": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset": {
- "type": "integer"
- },
- "used": {
- "type": "integer"
- }
- },
- "required": [
- "limit",
- "remaining",
- "reset",
- "used"
+ "comments": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "review_comments": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "maintainer_can_modify": {
+ "description": "Indicates whether maintainers can modify the pull request.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "commits": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "additions": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "deletions": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "changed_files": {
+ "type": "integer",
+ "examples": [
+ 5
]
}
},
"required": [
- "rate",
- "resources"
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge",
+ "additions",
+ "changed_files",
+ "comments",
+ "commits",
+ "deletions",
+ "mergeable",
+ "mergeable_state",
+ "merged",
+ "maintainer_can_modify",
+ "merged_by",
+ "review_comments"
]
}
}
@@ -651774,16 +687823,16 @@
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -651791,26 +687840,24 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
}
- }
- ]
- },
- "reactions": {
- "reactions": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "title": "List reactions for a team discussion comment",
- "category": "reactions",
- "subcategory": "reactions",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}",
+ "title": "Get a pull request",
+ "category": "pulls",
+ "subcategory": "pulls",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -651818,8 +687865,8 @@
}
},
{
- "name": "team_slug",
- "description": "The slug of the team name.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -651827,63 +687874,17 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a team discussion comment.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
}
],
"bodyParameters": [],
- "descriptionHTML": "List the reactions to a team discussion comment .
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create , or edit a pull request, GitHub Enterprise Cloud 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 \".
\nThe value of the mergeable attribute can be true, false, or null. If the value is null, then GitHub Enterprise Cloud 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.
\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\nIf merged as a merge commit , merge_commit_sha represents the SHA of the merge commit. \nIf merged via a squash , merge_commit_sha represents the SHA of the squashed commit on the base branch. \nIf rebased , merge_commit_sha represents the commit that the base branch was updated to. \n \nPass the appropriate media type to fetch diff and patch formats.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \napplication/vnd.github.diff : For more information, see \"git-diff \" in the Git documentation. If a diff is corrupt, contact us through the GitHub Support portal . Include the repository name and pull request ID in your message. \n ",
"codeExamples": [
{
"key": "default",
@@ -651891,20 +687892,353 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
- "example": [
- {
+ "description": "Pass the appropriate media type to fetch diff and patch formats.
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
+ "id": 1,
+ "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
+ "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
+ "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
+ "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "number": 1347,
+ "state": "open",
+ "locked": true,
+ "title": "Amazing new feature",
+ "user": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Please pull these awesome changes in!",
+ "labels": [
+ {
+ "id": 208045946,
+ "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
+ "name": "bug",
+ "description": "Something isn't working",
+ "color": "f29513",
+ "default": true
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
+ },
+ "active_lock_reason": "too heated",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:01:12Z",
+ "closed_at": "2011-01-26T19:01:12Z",
+ "merged_at": "2011-01-26T19:01:12Z",
+ "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
+ "assignee": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ {
+ "login": "hubot",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/hubot_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/hubot",
+ "html_url": "https://github.com/hubot",
+ "followers_url": "https://api.github.com/users/hubot/followers",
+ "following_url": "https://api.github.com/users/hubot/following{/other_user}",
+ "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
+ "organizations_url": "https://api.github.com/users/hubot/orgs",
+ "repos_url": "https://api.github.com/users/hubot/repos",
+ "events_url": "https://api.github.com/users/hubot/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/hubot/received_events",
+ "type": "User",
+ "site_admin": true
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "other_user",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/other_user_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/other_user",
+ "html_url": "https://github.com/other_user",
+ "followers_url": "https://api.github.com/users/other_user/followers",
+ "following_url": "https://api.github.com/users/other_user/following{/other_user}",
+ "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
+ "organizations_url": "https://api.github.com/users/other_user/orgs",
+ "repos_url": "https://api.github.com/users/other_user/repos",
+ "events_url": "https://api.github.com/users/other_user/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/other_user/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos"
+ }
+ ],
+ "head": {
+ "label": "octocat:new-topic",
+ "ref": "new-topic",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "forks": 123,
+ "open_issues": 123,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
+ },
+ "watchers": 123
+ }
+ },
+ "base": {
+ "label": "octocat:master",
+ "ref": "master",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"user": {
"login": "octocat",
"id": 1,
@@ -651925,339 +688259,157 @@
"type": "User",
"site_admin": false
},
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "forks": 123,
+ "open_issues": 123,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
+ "watchers": 123
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
},
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "title": "Create reaction for a team discussion comment",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the team discussion comment.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to a team discussion comment .
\nA response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response when the reaction type has already been added to this team discussion comment
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1347"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "draft": false,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -652277,16 +688429,29 @@
"type": "User",
"site_admin": false
},
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
+ "comments": 10,
+ "review_comments": 0,
+ "maintainer_can_modify": true,
+ "commits": 3,
+ "additions": 100,
+ "deletions": 3,
+ "changed_files": 5
},
"schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
+ "title": "Pull Request",
+ "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
"properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
"id": {
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -652294,283 +688459,695 @@
"node_id": {
"type": "string",
"examples": [
- "MDg6UmVhY3Rpb24x"
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "description": "Number uniquely identifying the pull request within its repository.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of this Pull Request. Either `open` or `closed`.",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "description": "The title of the pull request.",
+ "type": "string",
+ "examples": [
+ "Amazing new feature"
]
},
"user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDQ6VXNlcjE="
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
]
},
- "avatar_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
]
},
- "url": {
+ "labels_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
"examples": [
- "https://github.com/octocat"
+ 1002604
]
},
- "followers_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
]
},
- "following_url": {
- "type": "string",
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ 42
]
},
- "gists_url": {
+ "state": {
+ "description": "The state of the milestone.",
"type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "open"
]
},
- "starred_url": {
+ "title": {
+ "description": "The title of the milestone.",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "v1.0"
]
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "Tracking milestone for version 1.0"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
+ "open_issues": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ 4
]
},
- "events_url": {
- "type": "string",
+ "closed_issues": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ 8
]
},
- "received_events_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "2011-04-10T20:09:31Z"
]
},
- "type": {
+ "updated_at": {
"type": "string",
+ "format": "date-time",
"examples": [
- "User"
+ "2014-03-03T18:58:10Z"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "2013-02-12T13:22:01Z"
]
},
- "user_view_type": {
- "type": "string",
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "public"
+ "2012-10-09T23:39:01Z"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
]
}
]
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
],
"examples": [
- "heart"
+ "too heated"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2016-05-20T20:09:31Z"
+ "2011-01-26T19:01:12Z"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
"examples": [
- 1
+ "2011-01-26T19:01:12Z"
]
},
- "node_id": {
- "type": "string",
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "MDg6UmVhY3Rpb24x"
+ "2011-01-26T19:01:12Z"
]
},
- "user": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
"anyOf": [
{
"type": "null"
@@ -652745,1956 +689322,1456 @@
}
]
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
+ "assignees": {
+ "type": [
+ "array",
+ "null"
],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response when the reaction type has already been added to this team discussion comment
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",
- "title": "Delete team discussion comment reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id.
\n
\nDelete a reaction to a team discussion comment .
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
- "title": "List reactions for a team discussion",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a team discussion.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List the reactions to a team discussion .
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
},
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
- "title": "Create reaction for a team discussion",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the team discussion.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to a team discussion .
\nA response with an HTTP 200 status means that you already added the reaction type to this team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
]
},
- "login": {
+ "node_id": {
"type": "string",
"examples": [
- "octocat"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
"examples": [
- 1
+ "Team Environment"
]
},
- "node_id": {
+ "full_name": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "octocat/Hello-World"
]
},
- "avatar_url": {
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "description": {
"type": [
"string",
"null"
],
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean"
+ },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "html_url": {
+ "archive_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "followers_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "following_url": {
+ "blobs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "gists_url": {
+ "branches_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "starred_url": {
+ "collaborators_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "subscriptions_url": {
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "organizations_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "repos_url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
"events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "received_events_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "type": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "user_view_type": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
]
},
- "login": {
+ "issue_comment_url": {
"type": "string",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "issue_events_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "node_id": {
+ "issues_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "avatar_url": {
+ "keys_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "labels_url": {
+ "type": "string",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "url": {
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "html_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "followers_url": {
+ "milestones_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "following_url": {
+ "notifications_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "gists_url": {
+ "pulls_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "starred_url": {
+ "releases_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "subscriptions_url": {
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "organizations_url": {
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "repos_url": {
+ "subscription_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "events_url": {
+ "tags_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "received_events_url": {
+ "teams_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "type": {
+ "trees_url": {
"type": "string",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "site_admin": {
- "type": "boolean"
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
},
- "starred_at": {
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "user_view_type": {
+ "svn_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "public"
+ "https://svn.github.com/octocat/Hello-World"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",
- "title": "Delete team discussion reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id.
\n
\nDelete a reaction to a team discussion .
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions",
- "title": "List reactions for a commit comment",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a commit comment.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List the reactions to a commit comment .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions",
- "title": "Create reaction for a commit comment",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the commit comment.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to a commit comment . A response with an HTTP 200 status means that you already added the reaction type to this commit comment.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Reaction exists
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
+ "homepage": {
"type": [
"string",
"null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
]
},
- "email": {
+ "language": {
"type": [
"string",
"null"
]
},
- "login": {
- "type": "string",
+ "forks_count": {
+ "type": "integer",
"examples": [
- "octocat"
+ 9
]
},
- "id": {
+ "stargazers_count": {
"type": "integer",
- "format": "int64",
"examples": [
- 1
+ 80
]
},
- "node_id": {
- "type": "string",
+ "watchers_count": {
+ "type": "integer",
"examples": [
- "MDQ6VXNlcjE="
+ 80
]
},
- "avatar_url": {
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "master"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "open_issues_count": {
+ "type": "integer",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ 0
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat"
+ true
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://github.com/octocat"
+ true
]
},
- "followers_url": {
- "type": "string",
- "format": "uri",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ true
]
},
- "following_url": {
- "type": "string",
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ true
]
},
- "gists_url": {
- "type": "string",
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ true
]
},
- "starred_url": {
- "type": "string",
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ true
]
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "2011-01-26T19:06:43Z"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "2011-01-26T19:01:12Z"
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "2011-01-26T19:14:43Z"
]
},
- "events_url": {
- "type": "string",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ true
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ true
]
},
- "type": {
- "type": "string",
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "User"
+ false
]
},
- "site_admin": {
- "type": "boolean"
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "starred_at": {
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "public"
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Reaction created
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- {
+ "sha": {
+ "type": "string"
+ },
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -654862,1745 +690939,1299 @@
"url"
]
}
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Reaction exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Reaction created
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",
- "title": "Delete a commit comment reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- },
- {
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id.
\n
\nDelete a reaction to a commit comment .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
- "title": "List reactions for an issue comment",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to an issue comment.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List the reactions to an issue comment .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Issues\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
- "title": "Create reaction for an issue comment",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the issue comment.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to an issue comment . A response with an HTTP 200 status means that you already added the reaction type to this issue comment.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Reaction exists
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
]
},
- "login": {
+ "node_id": {
"type": "string",
"examples": [
- "octocat"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
"examples": [
- 1
+ "Team Environment"
]
},
- "node_id": {
+ "full_name": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "octocat/Hello-World"
]
},
- "avatar_url": {
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "description": {
"type": [
"string",
"null"
],
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean"
+ },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "html_url": {
+ "archive_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "followers_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "following_url": {
+ "blobs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "gists_url": {
+ "branches_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "starred_url": {
+ "collaborators_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "subscriptions_url": {
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "organizations_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "repos_url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
"events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "received_events_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "type": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "site_admin": {
- "type": "boolean"
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
},
- "starred_at": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "user_view_type": {
+ "git_url": {
"type": "string",
"examples": [
- "public"
+ "git:github.com/octocat/Hello-World.git"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Reaction created
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "login": {
+ "issues_url": {
"type": "string",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "keys_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "node_id": {
+ "labels_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "avatar_url": {
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "url": {
+ "milestones_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "html_url": {
+ "notifications_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "followers_url": {
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "following_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "gists_url": {
+ "subscribers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "starred_url": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "subscriptions_url": {
+ "tags_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "organizations_url": {
+ "teams_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "repos_url": {
+ "trees_url": {
"type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "git:git.example.com/octocat/Hello-World"
]
},
- "events_url": {
+ "hooks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "received_events_url": {
+ "svn_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "type": {
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
"examples": [
- "User"
+ "master"
]
},
- "site_admin": {
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
- "type": "string",
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
- "type": "string",
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "public"
+ true
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Reaction exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Reaction created
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Issues\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",
- "title": "Delete an issue comment reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- },
- {
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id.
\n
\nDelete a reaction to an issue comment .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Issues\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions",
- "title": "List reactions for an issue",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "issue_number",
- "description": "The number that identifies the issue.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to an issue.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List the reactions to an issue .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "issue_number": "ISSUE_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
}
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
},
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "410",
- "description": "Gone
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Issues\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions",
- "title": "Create reaction for an issue",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "issue_number",
- "description": "The number that identifies the issue.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the issue.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to an issue . A response with an HTTP 200 status means that you already added the reaction type to this issue.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "issue_number": "ISSUE_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
]
},
- "node_id": {
+ "author_association": {
+ "title": "author_association",
"type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
"examples": [
- "MDg6UmVhY3Rpb24x"
+ "OWNER"
]
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -656767,107 +692398,67 @@
"type",
"url"
]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
}
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
]
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
"examples": [
- "heart"
+ false
]
},
- "created_at": {
- "type": "string",
- "format": "date-time",
+ "merged": {
+ "type": "boolean"
+ },
+ "mergeable": {
+ "type": [
+ "boolean",
+ "null"
+ ],
"examples": [
- "2016-05-20T20:09:31Z"
+ true
]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "issue_number": "ISSUE_NUMBER"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
+ },
+ "rebaseable": {
+ "type": [
+ "boolean",
+ "null"
+ ],
"examples": [
- 1
+ true
]
},
- "node_id": {
+ "mergeable_state": {
"type": "string",
"examples": [
- "MDg6UmVhY3Rpb24x"
+ "clean"
]
},
- "user": {
+ "merged_by": {
"anyOf": [
{
"type": "null"
@@ -657042,37 +692633,93 @@
}
]
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
+ "comments": {
+ "type": "integer",
"examples": [
- "heart"
+ 10
]
},
- "created_at": {
- "type": "string",
- "format": "date-time",
+ "review_comments": {
+ "type": "integer",
"examples": [
- "2016-05-20T20:09:31Z"
+ 0
+ ]
+ },
+ "maintainer_can_modify": {
+ "description": "Indicates whether maintainers can modify the pull request.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "commits": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "additions": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "deletions": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "changed_files": {
+ "type": "integer",
+ "examples": [
+ 5
]
}
},
"required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
"id",
"node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
"user",
- "content",
- "created_at"
+ "author_association",
+ "auto_merge",
+ "additions",
+ "changed_files",
+ "comments",
+ "commits",
+ "deletions",
+ "mergeable",
+ "mergeable_state",
+ "merged",
+ "maintainer_can_modify",
+ "merged_by",
+ "review_comments"
]
}
}
@@ -657081,99 +692728,27 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Pass the appropriate media type to fetch diff and patch formats.
"
},
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Issues\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",
- "title": "Delete an issue reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "httpStatusCode": "406",
+ "description": "Unacceptable
"
},
{
- "name": "issue_number",
- "description": "The number that identifies the issue.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
},
{
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id.
\n
\nDelete a reaction to an issue .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "issue_number": "ISSUE_NUMBER",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -657183,18 +692758,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Issues\" repository permissions": "write"
+ "\"Pull requests\" repository permissions": "read"
+ },
+ {
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
- "title": "List reactions for a pull request review comment",
- "category": "reactions",
- "subcategory": "reactions",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}",
+ "title": "Update a pull request",
+ "category": "pulls",
+ "subcategory": "pulls",
"parameters": [
{
"name": "owner",
@@ -657215,75 +692794,271 @@
}
},
{
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer",
- "format": "int64"
+ "type": "integer"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "title",
+ "in": "body",
+ "description": "The title of the pull request.
"
},
{
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a pull request review comment.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "The contents of the pull request.
"
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "string",
+ "name": "state",
+ "in": "body",
+ "description": "State of this Pull Request. Either open or closed.
",
+ "enum": [
+ "open",
+ "closed"
+ ]
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "string",
+ "name": "base",
+ "in": "body",
+ "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": "boolean",
+ "name": "maintainer_can_modify",
+ "in": "body",
+ "description": "Indicates whether maintainers can modify the pull request.
"
}
],
- "bodyParameters": [],
- "descriptionHTML": "List the reactions to a pull request review comment .
",
+ "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "title": "new title",
+ "body": "updated body",
+ "state": "open",
+ "base": "master"
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "comment_id": "COMMENT_ID"
+ "pull_number": "PULL_NUMBER"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
+ "id": 1,
+ "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
+ "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
+ "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
+ "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "number": 1347,
+ "state": "open",
+ "locked": true,
+ "title": "Amazing new feature",
+ "user": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Please pull these awesome changes in!",
+ "labels": [
+ {
+ "id": 208045946,
+ "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
+ "name": "bug",
+ "description": "Something isn't working",
+ "color": "f29513",
+ "default": true
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
+ },
+ "active_lock_reason": "too heated",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:01:12Z",
+ "closed_at": "2011-01-26T19:01:12Z",
+ "merged_at": "2011-01-26T19:01:12Z",
+ "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
+ "assignee": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ {
+ "login": "hubot",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/hubot_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/hubot",
+ "html_url": "https://github.com/hubot",
+ "followers_url": "https://api.github.com/users/hubot/followers",
+ "following_url": "https://api.github.com/users/hubot/following{/other_user}",
+ "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
+ "organizations_url": "https://api.github.com/users/hubot/orgs",
+ "repos_url": "https://api.github.com/users/hubot/repos",
+ "events_url": "https://api.github.com/users/hubot/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/hubot/received_events",
+ "type": "User",
+ "site_admin": true
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "other_user",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/other_user_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/other_user",
+ "html_url": "https://github.com/other_user",
+ "followers_url": "https://api.github.com/users/other_user/followers",
+ "following_url": "https://api.github.com/users/other_user/following{/other_user}",
+ "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
+ "organizations_url": "https://api.github.com/users/other_user/orgs",
+ "repos_url": "https://api.github.com/users/other_user/repos",
+ "events_url": "https://api.github.com/users/other_user/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/other_user/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos"
+ }
+ ],
+ "head": {
+ "label": "octocat:new-topic",
+ "ref": "new-topic",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"user": {
"login": "octocat",
"id": 1,
@@ -657304,345 +693079,299 @@
"type": "User",
"site_admin": false
},
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
},
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "forks": 123,
+ "open_issues": 123,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
+ "watchers": 123
+ }
+ },
+ "base": {
+ "label": "octocat:master",
+ "ref": "master",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "forks": 123,
+ "open_issues": 123,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
+ },
+ "watchers": 123
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
},
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
- "title": "Create reaction for a pull request review comment",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the pull request review comment.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to a pull request review comment . A response with an HTTP 200 status means that you already added the reaction type to this pull request review comment.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Reaction exists
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1347"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "draft": false,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -657662,299 +693391,725 @@
"type": "User",
"site_admin": false
},
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
+ "comments": 10,
+ "review_comments": 0,
+ "maintainer_can_modify": true,
+ "commits": 3,
+ "additions": 100,
+ "deletions": 3,
+ "changed_files": 5
},
"schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
+ "title": "Pull Request",
+ "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.",
"properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
"id": {
"type": "integer",
+ "format": "int64",
"examples": [
1
]
},
- "node_id": {
- "type": "string",
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "description": "Number uniquely identifying the pull request within its repository.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "State of this Pull Request. Either `open` or `closed`.",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "description": "The title of the pull request.",
+ "type": "string",
+ "examples": [
+ "Amazing new feature"
+ ]
+ },
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "MDg6UmVhY3Rpb24x"
+ "Please pull these awesome changes"
]
},
- "user": {
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDQ6VXNlcjE="
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
]
},
- "avatar_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
]
},
- "url": {
+ "labels_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
"examples": [
- "https://github.com/octocat"
+ 1002604
]
},
- "followers_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
]
},
- "following_url": {
- "type": "string",
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ 42
]
},
- "gists_url": {
+ "state": {
+ "description": "The state of the milestone.",
"type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "open"
]
},
- "starred_url": {
+ "title": {
+ "description": "The title of the milestone.",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "v1.0"
]
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "Tracking milestone for version 1.0"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
+ "open_issues": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ 4
]
},
- "events_url": {
- "type": "string",
+ "closed_issues": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ 8
]
},
- "received_events_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "2011-04-10T20:09:31Z"
]
},
- "type": {
+ "updated_at": {
"type": "string",
+ "format": "date-time",
"examples": [
- "User"
+ "2014-03-03T18:58:10Z"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "2013-02-12T13:22:01Z"
]
},
- "user_view_type": {
- "type": "string",
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "public"
+ "2012-10-09T23:39:01Z"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
]
}
]
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
],
"examples": [
- "heart"
+ "too heated"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2016-05-20T20:09:31Z"
+ "2011-01-26T19:01:12Z"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Reaction created
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
"examples": [
- 1
+ "2011-01-26T19:01:12Z"
]
},
- "node_id": {
- "type": "string",
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "MDg6UmVhY3Rpb24x"
+ "2011-01-26T19:01:12Z"
]
},
- "user": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
+ ]
+ },
+ "assignee": {
"anyOf": [
{
"type": "null"
@@ -658129,915 +694284,1456 @@
}
]
},
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
+ "assignees": {
+ "type": [
+ "array",
+ "null"
],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Reaction exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Reaction created
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",
- "title": "Delete a pull request comment reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "comment_id",
- "description": "The unique identifier of the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer",
- "format": "int64"
- }
- },
- {
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
\n
\nDelete a reaction to a pull request review comment .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "comment_id": "COMMENT_ID",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Pull requests\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/reactions",
- "title": "List reactions for a release",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "release_id",
- "description": "The unique identifier of the release.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a release.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "laugh",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List the reactions to a release .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "release_id": "RELEASE_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
},
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/reactions",
- "title": "Create reaction for a release",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "release_id",
- "description": "The unique identifier of the release.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the release.
",
- "isRequired": true,
- "enum": [
- "+1",
- "laugh",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": "Create a reaction to a release . A response with a Status: 200 OK means that you already added the reaction type to this release.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "release_id": "RELEASE_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Reaction exists
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
},
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
"name": {
- "type": [
- "string",
- "null"
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "email": {
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
]
},
- "login": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "archive_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "node_id": {
+ "assignees_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "avatar_url": {
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "followers_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "following_url": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "gists_url": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "starred_url": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "subscriptions_url": {
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "type": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "site_admin": {
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
"type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "public"
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "release_id": "RELEASE_ID"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Reaction created
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
},
- {
+ "sha": {
+ "type": "string"
+ },
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -659205,1307 +695901,977 @@
"url"
]
}
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Reaction exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Reaction created
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}",
- "title": "Delete a release reaction",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "release_id",
- "description": "The unique identifier of the release.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "reaction_id",
- "description": "The unique identifier of the reaction.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id.
\n
\nDelete a reaction to a release .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "release_id": "RELEASE_ID",
- "reaction_id": "REACTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "title": "List reactions for a team discussion comment (Legacy)",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a team discussion comment.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment endpoint.
\n
\nList the reactions to a team discussion comment .
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "title": "Create reaction for a team discussion comment (Legacy)",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the team discussion comment.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment \" endpoint.
\n
\nCreate a reaction to a team discussion comment .
\nA response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "user": {
- "anyOf": [
- {
- "type": "null"
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
"name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
]
},
- "email": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
"type": [
"string",
"null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
]
},
- "login": {
+ "hooks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "id": {
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer",
- "format": "int64",
"examples": [
- 1
+ 9
]
},
- "node_id": {
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
]
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "2011-01-26T19:01:12Z"
]
},
- "gravatar_id": {
+ "updated_at": {
"type": [
"string",
"null"
],
+ "format": "date-time",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "2011-01-26T19:14:43Z"
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat"
+ true
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "temp_clone_token": {
+ "type": "string"
},
- "followers_url": {
- "type": "string",
- "format": "uri",
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ true
]
},
- "following_url": {
- "type": "string",
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ false
]
},
- "gists_url": {
- "type": "string",
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ false
]
},
- "starred_url": {
- "type": "string",
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ false
]
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
},
- "organizations_url": {
+ "squash_merge_commit_title": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
- "repos_url": {
+ "squash_merge_commit_message": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
- "events_url": {
+ "merge_commit_title": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
- "received_events_url": {
+ "merge_commit_message": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
- "type": {
- "type": "string",
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "User"
+ true
]
},
- "site_admin": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
"type": "boolean"
},
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
"starred_at": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "\"2020-07-09T00:17:42Z\""
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/reactions",
- "title": "List reactions for a team discussion (Legacy)",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "content",
- "description": "Returns a single reaction type . Omit this parameter to list all reactions to a team discussion.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion endpoint.
\n
\nList the reactions to a team discussion .
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": []
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/reactions",
- "title": "Create reaction for a team discussion (Legacy)",
- "category": "reactions",
- "subcategory": "reactions",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The reaction type to add to the team discussion.
",
- "isRequired": true,
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion endpoint.
\n
\nCreate a reaction to a team discussion .
\nA response with an HTTP 200 status means that you already added the reaction type to this team discussion.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "content": "heart"
- },
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDg6UmVhY3Rpb24x",
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "content": "heart",
- "created_at": "2016-05-20T20:09:31Z"
- },
- "schema": {
- "title": "Reaction",
- "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDg6UmVhY3Rpb24x"
- ]
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
},
- {
+ "sha": {
+ "type": "string"
+ },
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -660605,3387 +696971,717 @@
},
"organizations_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "content": {
- "description": "The reaction to use",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ],
- "examples": [
- "heart"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2016-05-20T20:09:31Z"
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "user",
- "content",
- "created_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": []
- }
- ]
- },
- "releases": {
- "releases": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases",
- "title": "List releases",
- "category": "releases",
- "subcategory": "releases",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "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 .
\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
- "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
- "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
- "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
- "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
- "id": 1,
- "node_id": "MDc6UmVsZWFzZTE=",
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "immutable": false,
- "created_at": "2013-02-27T19:35:32Z",
- "published_at": "2013-02-27T19:35:32Z",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assets": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ]
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Release",
- "description": "A release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "assets_url": {
- "type": "string",
- "format": "uri"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "zipball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string",
- "examples": [
- "v1.0.0"
- ]
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "draft": {
- "description": "true to create a draft (unpublished) release, false to create a published one.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "prerelease": {
- "description": "Whether to identify the release as a prerelease or a full release.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "immutable": {
- "description": "Whether or not the release is immutable.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "author": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "assets": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
- ]
- },
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "uploader": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
- ]
- }
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "mentions_count": {
- "type": "integer"
- },
- "discussion_url": {
- "description": "The URL of the release discussion.",
- "type": "string",
- "format": "uri"
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "assets_url",
- "upload_url",
- "tarball_url",
- "zipball_url",
- "created_at",
- "published_at",
- "draft",
- "id",
- "node_id",
- "author",
- "html_url",
- "name",
- "prerelease",
- "tag_name",
- "target_commitish",
- "assets",
- "url"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/releases",
- "title": "Create a release",
- "category": "releases",
- "subcategory": "releases",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "tag_name",
- "in": "body",
- "description": "The name of the tag.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "target_commitish",
- "in": "body",
- "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.
"
- },
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the release.
"
- },
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "Text describing the contents of the tag.
"
- },
- {
- "type": "boolean",
- "name": "draft",
- "in": "body",
- "description": "true to create a draft (unpublished) release, false to create a published one.
",
- "default": false
- },
- {
- "type": "boolean",
- "name": "prerelease",
- "in": "body",
- "description": "true to identify the release as a prerelease. false to identify the release as a full release.
",
- "default": false
- },
- {
- "type": "string",
- "name": "discussion_category_name",
- "in": "body",
- "description": "If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see \"Managing categories for discussions in your repository .\"
"
- },
- {
- "type": "boolean",
- "name": "generate_release_notes",
- "in": "body",
- "description": "Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes.
",
- "default": false
- },
- {
- "type": "string",
- "name": "make_latest",
- "in": "body",
- "description": "Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to true for newly published releases. legacy specifies that the latest release should be determined based on the release creation date and higher semantic version.
",
- "enum": [
- "true",
- "false",
- "legacy"
- ],
- "default": "true"
- }
- ],
- "descriptionHTML": "Users with push access to the repository can create a release.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "generate_release_notes": false
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
- "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
- "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
- "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
- "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
- "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
- "id": 1,
- "node_id": "MDc6UmVsZWFzZTE=",
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "immutable": false,
- "created_at": "2013-02-27T19:35:32Z",
- "published_at": "2013-02-27T19:35:32Z",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assets": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ]
- },
- "schema": {
- "title": "Release",
- "description": "A release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "assets_url": {
- "type": "string",
- "format": "uri"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "zipball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string",
- "examples": [
- "v1.0.0"
- ]
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "draft": {
- "description": "true to create a draft (unpublished) release, false to create a published one.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "prerelease": {
- "description": "Whether to identify the release as a prerelease or a full release.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "immutable": {
- "description": "Whether or not the release is immutable.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "author": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "type": {
- "type": "string",
- "examples": [
- "User"
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "assets": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
- ]
- },
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
},
- "uploader": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
- ]
- }
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "mentions_count": {
- "type": "integer"
- },
- "discussion_url": {
- "description": "The URL of the release discussion.",
- "type": "string",
- "format": "uri"
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
+ "required": [
+ "href"
+ ]
}
},
"required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "assets_url",
- "upload_url",
- "tarball_url",
- "zipball_url",
- "created_at",
- "published_at",
- "draft",
- "id",
- "node_id",
- "author",
- "html_url",
- "name",
- "prerelease",
- "tag_name",
- "target_commitish",
- "assets",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if the discussion category name is invalid
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- },
- {
- "\"Contents\" repository permissions": "write",
- "\"Workflows\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/releases/generate-notes",
- "title": "Generate release notes content for a release",
- "category": "releases",
- "subcategory": "releases",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "tag_name",
- "in": "body",
- "description": "The tag name for the release. This can be an existing tag or a new one.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "target_commitish",
- "in": "body",
- "description": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.
"
- },
- {
- "type": "string",
- "name": "previous_tag_name",
- "in": "body",
- "description": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.
"
- },
- {
- "type": "string",
- "name": "configuration_file_path",
- "in": "body",
- "description": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.
"
- }
- ],
- "descriptionHTML": "Generate a name and body describing a release . The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "tag_name": "v1.0.0",
- "target_commitish": "main",
- "previous_tag_name": "v0.9.2",
- "configuration_file_path": ".github/custom_release_config.yml"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Name and body of generated release notes
",
- "example": {
- "name": "Release v1.0.0 is now available!",
- "body": "##Changes in Release v1.0.0 ... ##Contributors @monalisa"
- },
- "schema": {
- "title": "Generated Release Notes Content",
- "description": "Generated name and body describing a release",
- "type": "object",
- "properties": {
- "name": {
- "description": "The generated name of the release",
- "type": "string",
- "examples": [
- "Release v1.0.0 is now available!"
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
]
},
- "body": {
- "description": "The generated body describing the contents of the release supporting markdown formatting",
- "type": "string"
- }
- },
- "required": [
- "name",
- "body"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Name and body of generated release notes
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases/latest",
- "title": "Get the latest release",
- "category": "releases",
- "subcategory": "releases",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "View the latest published full release for the repository.
\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.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
- "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
- "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
- "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
- "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
- "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
- "id": 1,
- "node_id": "MDc6UmVsZWFzZTE=",
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "immutable": false,
- "created_at": "2013-02-27T19:35:32Z",
- "published_at": "2013-02-27T19:35:32Z",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assets": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ]
- },
- "schema": {
- "title": "Release",
- "description": "A release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "assets_url": {
+ "author_association": {
+ "title": "author_association",
"type": "string",
- "format": "uri"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "zipball_url": {
- "type": [
- "string",
- "null"
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
],
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string",
- "examples": [
- "v1.0.0"
- ]
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "draft": {
- "description": "true to create a draft (unpublished) release, false to create a published one.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "prerelease": {
- "description": "Whether to identify the release as a prerelease or a full release.",
- "type": "boolean",
"examples": [
- false
- ]
- },
- "immutable": {
- "description": "Whether or not the release is immutable.",
- "type": "boolean",
- "examples": [
- false
+ "OWNER"
]
},
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "updated_at": {
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time"
- },
- "author": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "type": {
+ "merge_method": {
"type": "string",
- "examples": [
- "User"
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "commit_title": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "description": "Title for the merge commit message."
},
- "user_view_type": {
+ "commit_message": {
"type": "string",
- "examples": [
- "public"
- ]
+ "description": "Commit message for the merge commit."
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
]
},
- "assets": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
- ]
- },
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "uploader": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
- ]
- }
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "mentions_count": {
- "type": "integer"
- },
- "discussion_url": {
- "description": "The URL of the release discussion.",
- "type": "string",
- "format": "uri"
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
]
- }
- },
- "required": [
- "assets_url",
- "upload_url",
- "tarball_url",
- "zipball_url",
- "created_at",
- "published_at",
- "draft",
- "id",
- "node_id",
- "author",
- "html_url",
- "name",
- "prerelease",
- "tag_name",
- "target_commitish",
- "assets",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases/tags/{tag}",
- "title": "Get a release by tag name",
- "category": "releases",
- "subcategory": "releases",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "tag",
- "description": "tag parameter
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a published release with the specified tag.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "tag": "TAG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
- "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
- "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
- "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
- "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
- "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
- "id": 1,
- "node_id": "MDc6UmVsZWFzZTE=",
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "immutable": false,
- "created_at": "2013-02-27T19:35:32Z",
- "published_at": "2013-02-27T19:35:32Z",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assets": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ]
- },
- "schema": {
- "title": "Release",
- "description": "A release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "assets_url": {
- "type": "string",
- "format": "uri"
},
- "upload_url": {
- "type": "string"
+ "merged": {
+ "type": "boolean"
},
- "tarball_url": {
+ "mergeable": {
"type": [
- "string",
+ "boolean",
"null"
],
- "format": "uri"
+ "examples": [
+ true
+ ]
},
- "zipball_url": {
+ "rebaseable": {
"type": [
- "string",
+ "boolean",
"null"
],
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string",
"examples": [
- "v1.0.0"
+ true
]
},
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from.",
+ "mergeable_state": {
"type": "string",
"examples": [
- "master"
+ "clean"
]
},
- "name": {
- "type": [
- "string",
- "null"
+ "merged_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "body": {
- "type": [
- "string",
- "null"
+ "comments": {
+ "type": "integer",
+ "examples": [
+ 10
]
},
- "draft": {
- "description": "true to create a draft (unpublished) release, false to create a published one.",
- "type": "boolean",
+ "review_comments": {
+ "type": "integer",
"examples": [
- false
+ 0
]
},
- "prerelease": {
- "description": "Whether to identify the release as a prerelease or a full release.",
+ "maintainer_can_modify": {
+ "description": "Indicates whether maintainers can modify the pull request.",
"type": "boolean",
"examples": [
- false
+ true
]
},
- "immutable": {
- "description": "Whether or not the release is immutable.",
- "type": "boolean",
+ "commits": {
+ "type": "integer",
"examples": [
- false
+ 3
]
},
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "author": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "additions": {
+ "type": "integer",
+ "examples": [
+ 100
]
},
- "assets": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
- ]
- },
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "uploader": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
- ]
- }
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "mentions_count": {
- "type": "integer"
- },
- "discussion_url": {
- "description": "The URL of the release discussion.",
- "type": "string",
- "format": "uri"
+ "deletions": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "changed_files": {
+ "type": "integer",
+ "examples": [
+ 5
]
}
},
"required": [
- "assets_url",
- "upload_url",
- "tarball_url",
- "zipball_url",
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
"created_at",
- "published_at",
- "draft",
+ "diff_url",
+ "head",
+ "html_url",
"id",
"node_id",
- "author",
- "html_url",
- "name",
- "prerelease",
- "tag_name",
- "target_commitish",
- "assets",
- "url"
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge",
+ "additions",
+ "changed_files",
+ "comments",
+ "commits",
+ "deletions",
+ "mergeable",
+ "mergeable_state",
+ "merged",
+ "maintainer_can_modify",
+ "merged_by",
+ "review_comments"
]
}
}
@@ -663997,8 +697693,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -664008,19 +697708,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "read"
+ "\"Pull requests\" repository permissions": "write"
}
- ],
- "allowsPublicRead": true
+ ]
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
- "title": "Get a release",
- "category": "releases",
- "subcategory": "releases",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/commits",
+ "title": "List commits on a pull request",
+ "category": "pulls",
+ "subcategory": "pulls",
"parameters": [
{
"name": "owner",
@@ -664041,17 +697740,35 @@
}
},
{
- "name": "release_id",
- "description": "The unique identifier of the release.
",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Gets a public release with the specified release ID.
\n Note
\n
\nThis returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"Getting started with the REST API .\"
\n
",
+ "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete\ncommit list for pull requests with more than 250 commits, use the List commits \nendpoint.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
"codeExamples": [
{
"key": "default",
@@ -664061,705 +697778,1028 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "release_id": "RELEASE_ID"
+ "pull_number": "PULL_NUMBER"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Note: This returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"Getting started with the REST API .\"
",
- "example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
- "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
- "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
- "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
- "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
- "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
- "id": 1,
- "node_id": "MDc6UmVsZWFzZTE=",
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "immutable": false,
- "created_at": "2013-02-27T19:35:32Z",
- "published_at": "2013-02-27T19:35:32Z",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "assets": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==",
+ "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments",
+ "commit": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "author": {
+ "name": "Monalisa Octocat",
+ "email": "support@github.com",
+ "date": "2011-04-14T16:00:49Z"
+ },
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "support@github.com",
+ "date": "2011-04-14T16:00:49Z"
+ },
+ "message": "Fix all the bugs",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ },
+ "comment_count": 0,
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
}
- }
- ]
- },
- "schema": {
- "title": "Release",
- "description": "A release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "assets_url": {
- "type": "string",
- "format": "uri"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "zipball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string",
- "examples": [
- "v1.0.0"
- ]
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "draft": {
- "description": "true to create a draft (unpublished) release, false to create a published one.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "prerelease": {
- "description": "Whether to identify the release as a prerelease or a full release.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "immutable": {
- "description": "Whether or not the release is immutable.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
},
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ "committer": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "author": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ }
+ ]
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Commit",
+ "description": "Commit",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "assets": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
+ "sha": {
+ "type": "string",
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments"
+ ]
+ },
+ "commit": {
"type": "object",
"properties": {
"url": {
"type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
+ "format": "uri",
"examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
+ "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
]
},
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "uploader": {
+ "author": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Git User",
+ "description": "Metaproperties for Git author/committer information.",
"type": "object",
"properties": {
"name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "\"Chris Wanstrath\""
]
},
- "events_url": {
+ "email": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "\"chris@ozmm.org\""
]
},
- "received_events_url": {
+ "date": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "\"2007-10-29T02:42:39.000-07:00\""
]
- },
- "type": {
+ }
+ }
+ }
+ ]
+ },
+ "committer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Git User",
+ "description": "Metaproperties for Git author/committer information.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string",
"examples": [
- "User"
+ "\"Chris Wanstrath\""
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "email": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "\"chris@ozmm.org\""
]
},
- "user_view_type": {
+ "date": {
"type": "string",
+ "format": "date-time",
"examples": [
- "public"
+ "\"2007-10-29T02:42:39.000-07:00\""
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ }
+ }
+ ]
+ },
+ "message": {
+ "type": "string",
+ "examples": [
+ "Fix all the bugs"
+ ]
+ },
+ "comment_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "tree": {
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tree/827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ }
+ },
+ "required": [
+ "sha",
+ "url"
+ ]
+ },
+ "verification": {
+ "title": "Verification",
+ "type": "object",
+ "properties": {
+ "verified": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "signature": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
]
}
+ },
+ "required": [
+ "verified",
+ "reason",
+ "payload",
+ "signature",
+ "verified_at"
]
}
},
"required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
+ "author",
+ "committer",
+ "comment_count",
+ "message",
+ "tree",
+ "url"
+ ]
+ },
+ "author": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Empty Object",
+ "description": "An object without any properties.",
+ "type": "object",
+ "properties": {},
+ "additionalProperties": false
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "committer": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Empty Object",
+ "description": "An object without any properties.",
+ "type": "object",
+ "properties": {},
+ "additionalProperties": false
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "parents": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string",
+ "examples": [
+ "7638417db6d59f3c431d3e1f261cc637155684cd"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits/7638417db6d59f3c431d3e1f261cc637155684cd"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd"
+ ]
+ }
+ },
+ "required": [
+ "sha",
+ "url"
+ ]
+ }
+ },
+ "stats": {
+ "type": "object",
+ "properties": {
+ "additions": {
+ "type": "integer"
+ },
+ "deletions": {
+ "type": "integer"
+ },
+ "total": {
+ "type": "integer"
+ }
+ }
+ },
+ "files": {
+ "type": "array",
+ "items": {
+ "title": "Diff Entry",
+ "description": "Diff Entry",
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "bbcd538c8e72b8c175046e27cc8f907076331401"
+ ]
+ },
+ "filename": {
+ "type": "string",
+ "examples": [
+ "file1.txt"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "added",
+ "removed",
+ "modified",
+ "renamed",
+ "copied",
+ "changed",
+ "unchanged"
+ ],
+ "examples": [
+ "added"
+ ]
+ },
+ "additions": {
+ "type": "integer",
+ "examples": [
+ 103
+ ]
+ },
+ "deletions": {
+ "type": "integer",
+ "examples": [
+ 21
+ ]
+ },
+ "changes": {
+ "type": "integer",
+ "examples": [
+ 124
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
+ ]
+ },
+ "raw_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "patch": {
+ "type": "string",
+ "examples": [
+ "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
+ ]
+ },
+ "previous_filename": {
+ "type": "string",
+ "examples": [
+ "file.txt"
+ ]
+ }
+ },
+ "required": [
+ "additions",
+ "blob_url",
+ "changes",
+ "contents_url",
+ "deletions",
+ "filename",
+ "raw_url",
+ "sha",
+ "status"
+ ]
+ }
+ }
+ },
+ "required": [
+ "url",
+ "sha",
+ "node_id",
+ "html_url",
+ "comments_url",
+ "commit",
+ "author",
+ "committer",
+ "parents"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/files",
+ "title": "List pull requests files",
+ "category": "pulls",
+ "subcategory": "pulls",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the files in a specified pull request.
\n Note
\n
\nResponses include a maximum of 3000 files. The paginated response returns 30 files per page by default.
\n
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "sha": "bbcd538c8e72b8c175046e27cc8f907076331401",
+ "filename": "file1.txt",
+ "status": "added",
+ "additions": 103,
+ "deletions": 21,
+ "changes": 124,
+ "blob_url": "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt",
+ "raw_url": "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "patch": "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Diff Entry",
+ "description": "Diff Entry",
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "bbcd538c8e72b8c175046e27cc8f907076331401"
+ ]
+ },
+ "filename": {
+ "type": "string",
+ "examples": [
+ "file1.txt"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "added",
+ "removed",
+ "modified",
+ "renamed",
+ "copied",
+ "changed",
+ "unchanged"
+ ],
+ "examples": [
+ "added"
+ ]
+ },
+ "additions": {
+ "type": "integer",
+ "examples": [
+ 103
+ ]
+ },
+ "deletions": {
+ "type": "integer",
+ "examples": [
+ 21
+ ]
+ },
+ "changes": {
+ "type": "integer",
+ "examples": [
+ 124
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
+ ]
+ },
+ "raw_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "patch": {
+ "type": "string",
+ "examples": [
+ "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test"
+ ]
+ },
+ "previous_filename": {
+ "type": "string",
+ "examples": [
+ "file.txt"
]
}
},
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "mentions_count": {
- "type": "integer"
- },
- "discussion_url": {
- "description": "The URL of the release discussion.",
- "type": "string",
- "format": "uri"
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "assets_url",
- "upload_url",
- "tarball_url",
- "zipball_url",
- "created_at",
- "published_at",
- "draft",
- "id",
- "node_id",
- "author",
- "html_url",
- "name",
- "prerelease",
- "tag_name",
- "target_commitish",
- "assets",
- "url"
- ]
+ "required": [
+ "additions",
+ "blob_url",
+ "changes",
+ "contents_url",
+ "deletions",
+ "filename",
+ "raw_url",
+ "sha",
+ "status"
+ ]
+ }
}
}
}
@@ -664767,11 +698807,19 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "Note: This returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"Getting started with the REST API .\"
"
+ "description": "OK
"
},
{
- "httpStatusCode": "401",
- "description": "Unauthorized
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -664781,7 +698829,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "read"
+ "\"Pull requests\" repository permissions": "read"
}
],
"allowsPublicRead": true
@@ -664789,11 +698837,11 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
- "title": "Update a release",
- "category": "releases",
- "subcategory": "releases",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/merge",
+ "title": "Check if a pull request has been merged",
+ "category": "pulls",
+ "subcategory": "pulls",
"parameters": [
{
"name": "owner",
@@ -664814,8 +698862,87 @@
}
},
{
- "name": "release_id",
- "description": "The unique identifier of the release.
",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Checks if a pull request has been merged into the base branch. The HTTP status of the response indicates whether or not the pull request has been merged; the response body is empty.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response if pull request has been merged
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "Response if pull request has been merged
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if pull request has not been merged
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/merge",
+ "title": "Merge a pull request",
+ "category": "pulls",
+ "subcategory": "pulls",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
"in": "path",
"required": true,
"schema": {
@@ -664826,60 +698953,168 @@
"bodyParameters": [
{
"type": "string",
- "name": "tag_name",
+ "name": "commit_title",
"in": "body",
- "description": "The name of the tag.
"
+ "description": "Title for the automatic commit message.
"
},
{
"type": "string",
- "name": "target_commitish",
+ "name": "commit_message",
"in": "body",
- "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.
"
+ "description": "Extra detail to append to automatic commit message.
"
},
{
"type": "string",
- "name": "name",
+ "name": "sha",
"in": "body",
- "description": "The name of the release.
"
+ "description": "SHA that pull request head must match to allow merge.
"
},
{
"type": "string",
- "name": "body",
+ "name": "merge_method",
"in": "body",
- "description": "Text describing the contents of the tag.
"
+ "description": "The merge method to use.
",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
+ ],
+ "descriptionHTML": "Merges a pull request into the base branch.\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
",
+ "codeExamples": [
+ {
+ "key": "response-if-merge-was-successful",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "commit_title": "Expand enum",
+ "commit_message": "Add a new value to the merge_method enum"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "if merge was successful
",
+ "example": {
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "merged": true,
+ "message": "Pull Request successfully merged"
+ },
+ "schema": {
+ "title": "Pull Request Merge Result",
+ "description": "Pull Request Merge Result",
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string"
+ },
+ "merged": {
+ "type": "boolean"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "merged",
+ "message",
+ "sha"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "if merge was successful
"
},
{
- "type": "boolean",
- "name": "draft",
- "in": "body",
- "description": "true makes the release a draft, and false publishes the release.
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
- "type": "boolean",
- "name": "prerelease",
- "in": "body",
- "description": "true to identify the release as a prerelease, false to identify the release as a full release.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "type": "string",
- "name": "make_latest",
- "in": "body",
- "description": "Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to true for newly published releases. legacy specifies that the latest release should be determined based on the release creation date and higher semantic version.
",
- "enum": [
- "true",
- "false",
- "legacy"
- ],
- "default": true
+ "httpStatusCode": "405",
+ "description": "Method Not Allowed if merge cannot be performed
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict if sha was provided and pull request head did not match
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch",
+ "title": "Update a pull request branch",
+ "category": "pulls",
+ "subcategory": "pulls",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
{
"type": "string",
- "name": "discussion_category_name",
+ "name": "expected_head_sha",
"in": "body",
- "description": "If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see \"Managing categories for discussions in your repository .\"
"
+ "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity status. You can use the \"List commits \" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
"
}
],
- "descriptionHTML": "Users with push access to the repository can edit a release.
",
+ "descriptionHTML": "Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch.\nNote: If making a request on behalf of a GitHub App you must also have permissions to write the contents of the head repository.
",
"codeExamples": [
{
"key": "default",
@@ -664888,17 +699123,812 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false
+ "expected_head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
},
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "release_id": "RELEASE_ID"
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "message": "Updating pull request branch.",
+ "url": "https://github.com/repos/octocat/Hello-World/pulls/53"
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "comments": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments",
+ "title": "List review comments in a repository",
+ "category": "pulls",
+ "subcategory": "comments",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "sort",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "created_at"
+ ]
+ },
+ "description": ""
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort results. Ignored without sort parameter.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
+ }
+ },
+ {
+ "name": "since",
+ "description": "Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists review comments for all pull requests in a repository. By default,\nreview comments are in ascending order by ID.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 8,
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ }
+ },
+ "start_line": 1,
+ "original_start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "original_line": 2,
+ "side": "RIGHT"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Pull Request Review Comment",
+ "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "URL for the pull request review comment",
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ },
+ "pull_request_review_id": {
+ "description": "The ID of the pull request review to which the comment belongs.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "id": {
+ "description": "The ID of the pull request review comment.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "description": "The node ID of the pull request review comment.",
+ "type": "string",
+ "examples": [
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
+ ]
+ },
+ "diff_hunk": {
+ "description": "The diff of the line that the comment refers to.",
+ "type": "string",
+ "examples": [
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
+ ]
+ },
+ "path": {
+ "description": "The relative path of the file to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "config/database.yaml"
+ ]
+ },
+ "position": {
+ "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "original_position": {
+ "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "commit_id": {
+ "description": "The SHA of the commit to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "original_commit_id": {
+ "description": "The SHA of the original commit to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
+ },
+ "in_reply_to_id": {
+ "description": "The comment ID to reply to.",
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the comment.",
+ "type": "string",
+ "examples": [
+ "We should probably include a check for null values here."
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "description": "HTML URL for the pull request review comment.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "description": "URL for the pull request that the review comment belongs to.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
+ },
+ "start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "original_start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
+ },
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "side": {
+ "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
+ "type": "string",
+ "enum": [
+ "line",
+ "file"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "body_html": {
+ "type": "string",
+ "examples": [
+ "\"comment body
\""
+ ]
+ },
+ "body_text": {
+ "type": "string",
+ "examples": [
+ "\"comment body\""
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "id",
+ "node_id",
+ "pull_request_review_id",
+ "diff_hunk",
+ "path",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "body",
+ "created_at",
+ "updated_at",
+ "html_url",
+ "pull_request_url",
+ "author_association",
+ "_links"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
+ "title": "Get a review comment for a pull request",
+ "category": "pulls",
+ "subcategory": "comments",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Provides details for a specified review comment.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
}
},
"response": {
@@ -664906,25 +699936,18 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
- "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
- "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
- "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
- "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
- "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
- "id": 1,
- "node_id": "MDc6UmVsZWFzZTE=",
- "tag_name": "v1.0.0",
- "target_commitish": "master",
- "name": "v1.0.0",
- "body": "Description of the release",
- "draft": false,
- "prerelease": false,
- "immutable": false,
- "created_at": "2013-02-27T19:35:32Z",
- "published_at": "2013-02-27T19:35:32Z",
- "author": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 8,
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -664944,589 +699967,465 @@
"type": "User",
"site_admin": false
},
- "assets": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
}
- ]
+ },
+ "start_line": 1,
+ "original_start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "original_line": 2,
+ "side": "RIGHT"
},
"schema": {
- "title": "Release",
- "description": "A release.",
+ "title": "Pull Request Review Comment",
+ "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
"type": "object",
"properties": {
"url": {
+ "description": "URL for the pull request review comment",
"type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "assets_url": {
- "type": "string",
- "format": "uri"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
},
- "zipball_url": {
+ "pull_request_review_id": {
+ "description": "The ID of the pull request review to which the comment belongs.",
"type": [
- "string",
+ "integer",
"null"
],
- "format": "uri"
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
"id": {
- "type": "integer"
+ "description": "The ID of the pull request review comment.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
"node_id": {
- "type": "string"
- },
- "tag_name": {
- "description": "The name of the tag.",
+ "description": "The node ID of the pull request review comment.",
"type": "string",
"examples": [
- "v1.0.0"
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
]
},
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from.",
+ "diff_hunk": {
+ "description": "The diff of the line that the comment refers to.",
"type": "string",
"examples": [
- "master"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
]
},
- "body": {
- "type": [
- "string",
- "null"
+ "path": {
+ "description": "The relative path of the file to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "config/database.yaml"
]
},
- "draft": {
- "description": "true to create a draft (unpublished) release, false to create a published one.",
- "type": "boolean",
+ "position": {
+ "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
+ "type": "integer",
"examples": [
- false
+ 1
]
},
- "prerelease": {
- "description": "Whether to identify the release as a prerelease or a full release.",
- "type": "boolean",
+ "original_position": {
+ "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
+ "type": "integer",
"examples": [
- false
+ 4
]
},
- "immutable": {
- "description": "Whether or not the release is immutable.",
- "type": "boolean",
+ "commit_id": {
+ "description": "The SHA of the commit to which the comment applies.",
+ "type": "string",
"examples": [
- false
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
]
},
- "created_at": {
+ "original_commit_id": {
+ "description": "The SHA of the original commit to which the comment applies.",
"type": "string",
- "format": "date-time"
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
},
- "author": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "in_reply_to_id": {
+ "description": "The comment ID to reply to.",
+ "type": "integer",
+ "examples": [
+ 8
]
},
- "assets": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
- ]
- },
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "uploader": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the comment.",
+ "type": "string",
+ "examples": [
+ "We should probably include a check for null values here."
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "description": "HTML URL for the pull request review comment.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "description": "URL for the pull request that the review comment belongs to.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
},
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
- ]
- }
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
},
- "body_html": {
- "type": "string"
+ "start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
},
- "body_text": {
- "type": "string"
+ "original_start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
},
- "mentions_count": {
- "type": "integer"
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
},
- "discussion_url": {
- "description": "The URL of the release discussion.",
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "side": {
+ "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
"type": "string",
- "format": "uri"
+ "enum": [
+ "line",
+ "file"
+ ]
},
"reactions": {
"title": "Reaction Rollup",
@@ -665576,26 +700475,37 @@
"eyes",
"rocket"
]
+ },
+ "body_html": {
+ "type": "string",
+ "examples": [
+ "\"comment body
\""
+ ]
+ },
+ "body_text": {
+ "type": "string",
+ "examples": [
+ "\"comment body\""
+ ]
}
},
"required": [
- "assets_url",
- "upload_url",
- "tarball_url",
- "zipball_url",
- "created_at",
- "published_at",
- "draft",
+ "url",
"id",
"node_id",
- "author",
+ "pull_request_review_id",
+ "diff_hunk",
+ "path",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "body",
+ "created_at",
+ "updated_at",
"html_url",
- "name",
- "prerelease",
- "tag_name",
- "target_commitish",
- "assets",
- "url"
+ "pull_request_url",
+ "author_association",
+ "_links"
]
}
}
@@ -665608,7 +700518,7 @@
},
{
"httpStatusCode": "404",
- "description": "Not Found if the discussion category name is invalid
"
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -665618,18 +700528,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "write"
+ "\"Pull requests\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
- "title": "Delete a release",
- "category": "releases",
- "subcategory": "releases",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
+ "title": "Update a review comment for a pull request",
+ "category": "pulls",
+ "subcategory": "comments",
"parameters": [
{
"name": "owner",
@@ -665650,103 +700561,40 @@
}
},
{
- "name": "release_id",
- "description": "The unique identifier of the release.
",
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Users with push access to the repository can delete a release.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "release_id": "RELEASE_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
+ "type": "integer",
+ "format": "int64"
}
}
],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "assets": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
- "title": "Get a release asset",
- "category": "releases",
- "subcategory": "assets",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
+ "bodyParameters": [
{
- "name": "asset_id",
- "description": "The unique identifier of the asset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "The text of the reply to the review comment.
",
+ "isRequired": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "To download the asset's binary content:
\n\nIf within a browser, fetch the location specified in the browser_download_url key provided in the response. \nAlternatively, set the Accept header of the request to\napplication/octet-stream .\nThe API will either redirect the client to the location, or stream it directly if possible.\nAPI clients should handle both a 200 or 302 response. \n ",
+ "descriptionHTML": "Edits the content of a specified review comment.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "body": "I like this too!"
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "asset_id": "ASSET_ID"
+ "comment_id": "COMMENT_ID"
}
},
"response": {
@@ -665754,20 +700602,18 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 8,
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -665786,72 +700632,119 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- }
+ },
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ }
+ },
+ "start_line": 1,
+ "original_start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "original_line": 2,
+ "side": "RIGHT"
},
"schema": {
- "title": "Release Asset",
- "description": "Data related to a release.",
+ "title": "Pull Request Review Comment",
+ "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
"type": "object",
"properties": {
"url": {
+ "description": "URL for the pull request review comment",
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
},
- "browser_download_url": {
- "type": "string",
- "format": "uri"
+ "pull_request_review_id": {
+ "description": "The ID of the pull request review to which the comment belongs.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
"id": {
- "type": "integer"
+ "description": "The ID of the pull request review comment.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
"node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
+ "description": "The node ID of the pull request review comment.",
"type": "string",
"examples": [
- "Team Environment"
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
]
},
- "label": {
- "type": [
- "string",
- "null"
+ "diff_hunk": {
+ "description": "The diff of the line that the comment refers to.",
+ "type": "string",
+ "examples": [
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
]
},
- "state": {
- "description": "State of the release asset.",
+ "path": {
+ "description": "The relative path of the file to which the comment applies.",
"type": "string",
- "enum": [
- "uploaded",
- "open"
+ "examples": [
+ "config/database.yaml"
]
},
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
+ "position": {
+ "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
+ "type": "integer",
+ "examples": [
+ 1
]
},
- "download_count": {
- "type": "integer"
+ "original_position": {
+ "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
+ "type": "integer",
+ "examples": [
+ 4
+ ]
},
- "created_at": {
+ "commit_id": {
+ "description": "The SHA of the commit to which the comment applies.",
"type": "string",
- "format": "date-time"
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
},
- "updated_at": {
+ "original_commit_id": {
+ "description": "The SHA of the original commit to which the comment applies.",
"type": "string",
- "format": "date-time"
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
},
- "uploader": {
+ "in_reply_to_id": {
+ "description": "The comment ID to reply to.",
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "user": {
"anyOf": [
{
"type": "null"
@@ -666025,23 +700918,260 @@
]
}
]
+ },
+ "body": {
+ "description": "The text of the comment.",
+ "type": "string",
+ "examples": [
+ "We should probably include a check for null values here."
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "description": "HTML URL for the pull request review comment.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "description": "URL for the pull request that the review comment belongs to.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
+ },
+ "start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "original_start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
+ },
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "side": {
+ "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
+ "type": "string",
+ "enum": [
+ "line",
+ "file"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "body_html": {
+ "type": "string",
+ "examples": [
+ "\"comment body
\""
+ ]
+ },
+ "body_text": {
+ "type": "string",
+ "examples": [
+ "\"comment body\""
+ ]
}
},
"required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
"url",
+ "id",
"node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
+ "pull_request_review_id",
+ "diff_hunk",
+ "path",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "body",
"created_at",
- "updated_at"
+ "updated_at",
+ "html_url",
+ "pull_request_url",
+ "author_association",
+ "_links"
]
}
}
@@ -666051,10 +701181,81 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
+ "title": "Delete a review comment for a pull request",
+ "category": "pulls",
+ "subcategory": "comments",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "httpStatusCode": "302",
- "description": "Found
"
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Deletes a review comment.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
"httpStatusCode": "404",
@@ -666068,7 +701269,715 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "read"
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments",
+ "title": "List review comments on a pull request",
+ "category": "pulls",
+ "subcategory": "comments",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated"
+ ],
+ "default": "created"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort results. Ignored without sort parameter.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
+ }
+ },
+ {
+ "name": "since",
+ "description": "Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all review comments for a specified pull request. By default, review comments\nare in ascending order by ID.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 8,
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ }
+ },
+ "start_line": 1,
+ "original_start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "original_line": 2,
+ "side": "RIGHT"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Pull Request Review Comment",
+ "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "URL for the pull request review comment",
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ },
+ "pull_request_review_id": {
+ "description": "The ID of the pull request review to which the comment belongs.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "id": {
+ "description": "The ID of the pull request review comment.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "description": "The node ID of the pull request review comment.",
+ "type": "string",
+ "examples": [
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
+ ]
+ },
+ "diff_hunk": {
+ "description": "The diff of the line that the comment refers to.",
+ "type": "string",
+ "examples": [
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
+ ]
+ },
+ "path": {
+ "description": "The relative path of the file to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "config/database.yaml"
+ ]
+ },
+ "position": {
+ "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "original_position": {
+ "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "commit_id": {
+ "description": "The SHA of the commit to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "original_commit_id": {
+ "description": "The SHA of the original commit to which the comment applies.",
+ "type": "string",
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
+ },
+ "in_reply_to_id": {
+ "description": "The comment ID to reply to.",
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the comment.",
+ "type": "string",
+ "examples": [
+ "We should probably include a check for null values here."
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "description": "HTML URL for the pull request review comment.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "description": "URL for the pull request that the review comment belongs to.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
+ },
+ "start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "original_start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
+ },
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "side": {
+ "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
+ "type": "string",
+ "enum": [
+ "line",
+ "file"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "body_html": {
+ "type": "string",
+ "examples": [
+ "\"comment body
\""
+ ]
+ },
+ "body_text": {
+ "type": "string",
+ "examples": [
+ "\"comment body\""
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "id",
+ "node_id",
+ "pull_request_review_id",
+ "diff_hunk",
+ "path",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "body",
+ "created_at",
+ "updated_at",
+ "html_url",
+ "pull_request_url",
+ "author_association",
+ "_links"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
}
],
"allowsPublicRead": true
@@ -666076,11 +701985,11 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
- "title": "Update a release asset",
- "category": "releases",
- "subcategory": "assets",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments",
+ "title": "Create a review comment for a pull request",
+ "category": "pulls",
+ "subcategory": "comments",
"parameters": [
{
"name": "owner",
@@ -666101,8 +702010,8 @@
}
},
{
- "name": "asset_id",
- "description": "The unique identifier of the asset.
",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
"in": "path",
"required": true,
"schema": {
@@ -666113,60 +702022,121 @@
"bodyParameters": [
{
"type": "string",
- "name": "name",
+ "name": "body",
"in": "body",
- "description": "The file name of the asset.
"
+ "description": "The text of the review comment.
",
+ "isRequired": true
},
{
"type": "string",
- "name": "label",
+ "name": "commit_id",
"in": "body",
- "description": "An alternate short description of the asset. Used in place of the filename.
"
+ "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.
",
+ "isRequired": true
},
{
"type": "string",
- "name": "state",
+ "name": "path",
"in": "body",
- "description": ""
+ "description": "The relative path to the file that necessitates a comment.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "position",
+ "in": "body",
+ "description": "This parameter is closing down. Use line instead . 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. The 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.
"
+ },
+ {
+ "type": "string",
+ "name": "side",
+ "in": "body",
+ "description": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be LEFT or RIGHT. Use LEFT for deletions that appear in red. Use RIGHT for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"Diff view options \" in the GitHub Help documentation.
",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "line",
+ "in": "body",
+ "description": "Required unless using subject_type:file . The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
+ },
+ {
+ "type": "integer",
+ "name": "start_line",
+ "in": "body",
+ "description": "Required when using multi-line comments unless using in_reply_to . The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request \" in the GitHub Help documentation.
"
+ },
+ {
+ "type": "string",
+ "name": "start_side",
+ "in": "body",
+ "description": "Required when using multi-line comments unless using in_reply_to . The start_side is the starting side of the diff that the comment applies to. Can be LEFT or RIGHT. To learn more about multi-line comments, see \"Commenting on a pull request \" in the GitHub Help documentation. See side in this table for additional context.
",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ "side"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "in_reply_to",
+ "in": "body",
+ "description": "The ID of the review comment to reply to. To find the ID of a review comment with \"List review comments on a pull request\" . When specified, all parameters other than body in the request body are ignored.
"
+ },
+ {
+ "type": "string",
+ "name": "subject_type",
+ "in": "body",
+ "description": "The level at which the comment is targeted.
",
+ "enum": [
+ "line",
+ "file"
+ ]
}
],
- "descriptionHTML": "Users with push access to the repository can edit a release asset.
",
+ "descriptionHTML": "Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see \"Create an issue comment .\"
\nIf your comment applies to more than one line in the pull request diff, you should use the parameters line, side, and optionally start_line and start_side in your request.
\nThe position parameter is closing down. If you use position, the line, side, start_line, and start_side parameters are not required.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \"\nand \"Best practices for using the REST API .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
"codeExamples": [
{
- "key": "default",
+ "key": "example-for-a-multi-line-comment",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example for a multi-line comment",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "name": "foo-1.0.0-osx.zip",
- "label": "Mac binary"
+ "body": "Great stuff!",
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "path": "file1.txt",
+ "start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "side": "RIGHT"
},
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "asset_id": "ASSET_ID"
+ "pull_number": "PULL_NUMBER"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 8,
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -666185,72 +702155,119 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- }
+ },
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ }
+ },
+ "start_line": 1,
+ "original_start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "original_line": 2,
+ "side": "RIGHT"
},
"schema": {
- "title": "Release Asset",
- "description": "Data related to a release.",
+ "title": "Pull Request Review Comment",
+ "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
"type": "object",
"properties": {
"url": {
+ "description": "URL for the pull request review comment",
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
},
- "browser_download_url": {
- "type": "string",
- "format": "uri"
+ "pull_request_review_id": {
+ "description": "The ID of the pull request review to which the comment belongs.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
"id": {
- "type": "integer"
+ "description": "The ID of the pull request review comment.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
"node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
+ "description": "The node ID of the pull request review comment.",
"type": "string",
"examples": [
- "Team Environment"
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
]
},
- "label": {
- "type": [
- "string",
- "null"
+ "diff_hunk": {
+ "description": "The diff of the line that the comment refers to.",
+ "type": "string",
+ "examples": [
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
]
},
- "state": {
- "description": "State of the release asset.",
+ "path": {
+ "description": "The relative path of the file to which the comment applies.",
"type": "string",
- "enum": [
- "uploaded",
- "open"
+ "examples": [
+ "config/database.yaml"
]
},
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
+ "position": {
+ "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
+ "type": "integer",
+ "examples": [
+ 1
]
},
- "download_count": {
- "type": "integer"
+ "original_position": {
+ "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
+ "type": "integer",
+ "examples": [
+ 4
+ ]
},
- "created_at": {
+ "commit_id": {
+ "description": "The SHA of the commit to which the comment applies.",
"type": "string",
- "format": "date-time"
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
},
- "updated_at": {
+ "original_commit_id": {
+ "description": "The SHA of the original commit to which the comment applies.",
"type": "string",
- "format": "date-time"
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
},
- "uploader": {
+ "in_reply_to_id": {
+ "description": "The comment ID to reply to.",
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "user": {
"anyOf": [
{
"type": "null"
@@ -666424,23 +702441,260 @@
]
}
]
+ },
+ "body": {
+ "description": "The text of the comment.",
+ "type": "string",
+ "examples": [
+ "We should probably include a check for null values here."
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "description": "HTML URL for the pull request review comment.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "description": "URL for the pull request that the review comment belongs to.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
+ },
+ "start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "original_start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
+ },
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "side": {
+ "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
+ "type": "string",
+ "enum": [
+ "line",
+ "file"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "body_html": {
+ "type": "string",
+ "examples": [
+ "\"comment body
\""
+ ]
+ },
+ "body_text": {
+ "type": "string",
+ "examples": [
+ "\"comment body\""
+ ]
}
},
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
+ "required": [
"url",
+ "id",
"node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
+ "pull_request_review_id",
+ "diff_hunk",
+ "path",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "body",
"created_at",
- "updated_at"
+ "updated_at",
+ "html_url",
+ "pull_request_url",
+ "author_association",
+ "_links"
]
}
}
@@ -666448,82 +702702,16 @@
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
- "title": "Delete a release asset",
- "category": "releases",
- "subcategory": "assets",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
- "name": "asset_id",
- "description": "The unique identifier of the asset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "asset_id": "ASSET_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -666533,18 +702721,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "write"
+ "\"Pull requests\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/assets",
- "title": "List release assets",
- "category": "releases",
- "subcategory": "assets",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies",
+ "title": "Create a reply for a review comment",
+ "category": "pulls",
+ "subcategory": "comments",
"parameters": [
{
"name": "owner",
@@ -666565,8 +702753,8 @@
}
},
{
- "name": "release_id",
- "description": "The unique identifier of the release.
",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
"in": "path",
"required": true,
"schema": {
@@ -666574,448 +702762,60 @@
}
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "release_id": "RELEASE_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Release Asset",
- "description": "Data related to a release.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "browser_download_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "label": {
- "type": [
- "string",
- "null"
- ]
- },
- "state": {
- "description": "State of the release asset.",
- "type": "string",
- "enum": [
- "uploaded",
- "open"
- ]
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
- ]
- },
- "download_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "uploader": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
- "url",
- "node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
- "created_at",
- "updated_at"
- ]
- }
- }
+ "format": "int64"
}
}
],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://uploads.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/assets",
- "title": "Upload a release asset",
- "category": "releases",
- "subcategory": "assets",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "release_id",
- "description": "The unique identifier of the release.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "name",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- },
- "description": ""
- },
+ "bodyParameters": [
{
- "name": "label",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": ""
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "The text of the review comment.
",
+ "isRequired": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url returned in\nthe response of the Create a release endpoint to upload a release asset.
\nYou need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length header automatically. Use the required Content-Type header to provide the media type of the asset. For a list of media types, see Media Types . For example:
\napplication/zip
\nGitHub Enterprise Cloud expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway status. This may leave an empty asset with a state of starter. It can be safely deleted.
\nNotes:
\n\nGitHub Enterprise Cloud renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The \"List release assets \"\nendpoint lists the renamed filenames. For more information and help, contact GitHub Enterprise Cloud Support . \nTo find the release_id query the GET /repos/{owner}/{repo}/releases/latest endpoint . \nIf you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset. \n ",
+ "descriptionHTML": "Creates a reply to a review comment for a pull request. For the comment_id, provide the ID of the review comment you are replying to. This must be the ID of a top-level review comment , not a reply to that comment. Replies to replies are not supported.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \"\nand \"Best practices for using the REST API .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/octet-stream",
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": "@example.zip",
+ "bodyParameters": {
+ "body": "Great stuff!"
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "release_id": "RELEASE_ID"
+ "pull_number": "PULL_NUMBER",
+ "comment_id": "COMMENT_ID"
}
},
"response": {
"statusCode": "201",
"contentType": "application/json",
- "description": "Response for successful upload
",
+ "description": "Response
",
"example": {
- "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
- "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
- "id": 1,
- "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
- "name": "example.zip",
- "label": "short description",
- "state": "uploaded",
- "content_type": "application/zip",
- "size": 1024,
- "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
- "download_count": 42,
- "created_at": "2013-02-27T19:35:32Z",
- "updated_at": "2013-02-27T19:35:32Z",
- "uploader": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 426899381,
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -667034,72 +702834,119 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- }
+ },
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ }
+ },
+ "start_line": 1,
+ "original_start_line": 1,
+ "start_side": "RIGHT",
+ "line": 2,
+ "original_line": 2,
+ "side": "RIGHT"
},
"schema": {
- "title": "Release Asset",
- "description": "Data related to a release.",
+ "title": "Pull Request Review Comment",
+ "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.",
"type": "object",
"properties": {
"url": {
+ "description": "URL for the pull request review comment",
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
},
- "browser_download_url": {
- "type": "string",
- "format": "uri"
+ "pull_request_review_id": {
+ "description": "The ID of the pull request review to which the comment belongs.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
"id": {
- "type": "integer"
+ "description": "The ID of the pull request review comment.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
"node_id": {
- "type": "string"
- },
- "name": {
- "description": "The file name of the asset.",
+ "description": "The node ID of the pull request review comment.",
"type": "string",
"examples": [
- "Team Environment"
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
]
},
- "label": {
- "type": [
- "string",
- "null"
+ "diff_hunk": {
+ "description": "The diff of the line that the comment refers to.",
+ "type": "string",
+ "examples": [
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
]
},
- "state": {
- "description": "State of the release asset.",
+ "path": {
+ "description": "The relative path of the file to which the comment applies.",
"type": "string",
- "enum": [
- "uploaded",
- "open"
+ "examples": [
+ "config/database.yaml"
]
},
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "digest": {
- "type": [
- "string",
- "null"
+ "position": {
+ "description": "The line index in the diff to which the comment applies. This field is closing down; use `line` instead.",
+ "type": "integer",
+ "examples": [
+ 1
]
},
- "download_count": {
- "type": "integer"
+ "original_position": {
+ "description": "The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.",
+ "type": "integer",
+ "examples": [
+ 4
+ ]
},
- "created_at": {
+ "commit_id": {
+ "description": "The SHA of the commit to which the comment applies.",
"type": "string",
- "format": "date-time"
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
},
- "updated_at": {
+ "original_commit_id": {
+ "description": "The SHA of the original commit to which the comment applies.",
"type": "string",
- "format": "date-time"
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
},
- "uploader": {
+ "in_reply_to_id": {
+ "description": "The comment ID to reply to.",
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "user": {
"anyOf": [
{
"type": "null"
@@ -667273,23 +703120,260 @@
]
}
]
+ },
+ "body": {
+ "description": "The text of the comment.",
+ "type": "string",
+ "examples": [
+ "We should probably include a check for null values here."
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "description": "HTML URL for the pull request review comment.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "description": "URL for the pull request that the review comment belongs to.",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
+ },
+ "start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "original_start_line": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The first line of the range for a multi-line comment.",
+ "examples": [
+ 2
+ ]
+ },
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
+ },
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "side": {
+ "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
+ "type": "string",
+ "enum": [
+ "line",
+ "file"
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "body_html": {
+ "type": "string",
+ "examples": [
+ "\"comment body
\""
+ ]
+ },
+ "body_text": {
+ "type": "string",
+ "examples": [
+ "\"comment body\""
+ ]
}
},
"required": [
- "id",
- "name",
- "content_type",
- "size",
- "digest",
- "state",
"url",
+ "id",
"node_id",
- "download_count",
- "label",
- "uploader",
- "browser_download_url",
+ "pull_request_review_id",
+ "diff_hunk",
+ "path",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "body",
"created_at",
- "updated_at"
+ "updated_at",
+ "html_url",
+ "pull_request_url",
+ "author_association",
+ "_links"
]
}
}
@@ -667298,30 +703382,38 @@
"statusCodes": [
{
"httpStatusCode": "201",
- "description": "Response for successful upload
"
+ "description": "Created
"
},
{
- "httpStatusCode": "422",
- "description": "Response if you upload an asset with the same filename as another uploaded asset
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
- "previews": []
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
}
- ]
- },
- "repos": {
- "repos": [
+ ],
+ "review-requests": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/repos",
- "title": "List organization repositories",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
+ "title": "Get all requested reviewers for a pull request",
+ "category": "pulls",
+ "subcategory": "review-requests",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -667329,72 +703421,26 @@
}
},
{
- "name": "type",
- "description": "Specifies the types of repositories you want returned. internal is not yet supported when a GitHub App calls this endpoint with an installation access token.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "private",
- "forks",
- "sources",
- "member",
- "internal"
- ]
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The order to sort by. Default: asc when using full_name, otherwise desc.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "string"
}
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 1
+ "type": "integer"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists repositories for the specified organization.
\n Note
\n
\nIn order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization .\"
\n
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"codeExamples": [
{
"key": "default",
@@ -667402,20 +703448,18 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "example": {
+ "users": [
+ {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -667434,134 +703478,34 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
- },
- "secret_scanning_push_protection": {
- "status": "disabled"
- },
- "secret_scanning_validity_checks": {
- "status": "disabled"
- }
}
- }
- ],
+ ],
+ "teams": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
+ }
+ ]
+ },
"schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
+ "title": "Pull Request Review Request",
+ "description": "Pull Request Review Request",
+ "type": "object",
+ "properties": {
+ "users": {
+ "type": "array",
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -667728,675 +703672,272 @@
"type",
"url"
]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
+ }
+ },
+ "teams": {
+ "type": "array",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "id": {
+ "type": "integer"
},
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
+ "node_id": {
+ "type": "string"
},
"name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
+ "type": "string"
},
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
+ "slug": {
+ "type": "string"
},
- "html_url": {
+ "description": {
"type": [
"string",
"null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
+ ]
},
- "name": {
+ "privacy": {
"type": "string"
},
- "spdx_id": {
+ "notification_setting": {
"type": "string"
},
- "url": {
+ "permission": {
"type": "string"
},
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "permissions": {
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
}
- }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
},
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
},
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "members_url": {
+ "type": "string"
},
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
},
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
},
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
},
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ }
+ },
+ "required": [
+ "users",
+ "teams"
+ ]
}
}
}
@@ -668414,7 +703955,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Metadata\" repository permissions": "read"
+ "\"Pull requests\" repository permissions": "read"
}
],
"allowsPublicRead": true
@@ -668423,211 +703964,54 @@
{
"serverUrl": "https://api.github.com",
"verb": "post",
- "requestPath": "/orgs/{org}/repos",
- "title": "Create an organization repository",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
+ "title": "Request reviewers for a pull request",
+ "category": "pulls",
+ "subcategory": "review-requests",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the repository.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A short description of the repository.
"
- },
- {
- "type": "string",
- "name": "homepage",
- "in": "body",
- "description": "A URL with more information about the repository.
"
- },
- {
- "type": "boolean",
- "name": "private",
- "in": "body",
- "description": "Whether the repository is private.
",
- "default": false
- },
- {
- "type": "string",
- "name": "visibility",
- "in": "body",
- "description": "The visibility of the repository.
",
- "enum": [
- "public",
- "private",
- "internal"
- ]
- },
- {
- "type": "boolean",
- "name": "has_issues",
- "in": "body",
- "description": "Either true to enable issues for this repository or false to disable them.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "has_projects",
- "in": "body",
- "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.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "has_wiki",
- "in": "body",
- "description": "Either true to enable the wiki for this repository or false to disable it.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "has_downloads",
- "in": "body",
- "description": "Whether downloads are enabled.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "is_template",
- "in": "body",
- "description": "Either true to make this repo available as a template repository or false to prevent it.
",
- "default": false
- },
- {
- "type": "integer",
- "name": "team_id",
- "in": "body",
- "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": "boolean",
- "name": "auto_init",
- "in": "body",
- "description": "Pass true to create an initial commit with empty README.
",
- "default": false
- },
- {
- "type": "string",
- "name": "gitignore_template",
- "in": "body",
- "description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
"
- },
- {
- "type": "string",
- "name": "license_template",
- "in": "body",
- "description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
"
- },
- {
- "type": "boolean",
- "name": "allow_squash_merge",
- "in": "body",
- "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "allow_merge_commit",
- "in": "body",
- "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "allow_rebase_merge",
- "in": "body",
- "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "allow_auto_merge",
- "in": "body",
- "description": "Either true to allow auto-merge on pull requests, or false to disallow auto-merge.
",
- "default": false
- },
- {
- "type": "boolean",
- "name": "delete_branch_on_merge",
- "in": "body",
- "description": "Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion. The authenticated user must be an organization owner to set this property to true.
",
- "default": false
- },
- {
- "type": "boolean",
- "name": "use_squash_pr_title_as_default",
- "in": "body",
- "description": "Either true to allow squash-merge commits to use pull request title, or false to use commit message. **This property is closing down. Please use squash_merge_commit_title instead.
",
- "default": false
- },
- {
- "type": "string",
- "name": "squash_merge_commit_title",
- "in": "body",
- "description": "Required when using squash_merge_commit_message.
\nThe default value for a squash merge commit title:
\n\nPR_TITLE - default to the pull request's title. \nCOMMIT_OR_PR_TITLE - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). \n ",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ]
},
{
- "type": "string",
- "name": "squash_merge_commit_message",
- "in": "body",
- "description": "The default value for a squash merge commit message:
\n\nPR_BODY - default to the pull request's body. \nCOMMIT_MESSAGES - default to the branch's commit messages. \nBLANK - default to a blank commit message. \n ",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ]
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "string",
- "name": "merge_commit_title",
- "in": "body",
- "description": "Required when using merge_commit_message.
\nThe default value for a merge commit title.
\n\nPR_TITLE - default to the pull request's title. \nMERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). \n ",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ]
- },
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
{
- "type": "string",
- "name": "merge_commit_message",
+ "type": "array of strings",
+ "name": "reviewers",
"in": "body",
- "description": "The default value for a merge commit message.
\n\nPR_TITLE - default to the pull request's title. \nPR_BODY - default to the pull request's body. \nBLANK - default to a blank commit message. \n ",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ]
+ "description": "An array of user logins that will be requested.
"
},
{
- "type": "object",
- "name": "custom_properties",
+ "type": "array of strings",
+ "name": "team_reviewers",
"in": "body",
- "description": "The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.
"
+ "description": "An array of team slugs that will be requested.
"
}
],
- "descriptionHTML": "Creates a new repository in the specified organization. The authenticated user must be a member of the organization.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.
",
+ "descriptionHTML": "Requests reviews for a pull request from a given set of users and/or teams.\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
",
"codeExamples": [
{
"key": "default",
@@ -668636,16 +704020,19 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "name": "Hello-World",
- "description": "This is your first repository",
- "homepage": "https://github.com",
- "private": false,
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true
+ "reviewers": [
+ "octocat",
+ "hubot",
+ "other_user"
+ ],
+ "team_reviewers": [
+ "justice-league"
+ ]
},
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
}
},
"response": {
@@ -668653,11 +704040,23 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
+ "id": 1,
+ "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
+ "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
+ "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
+ "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "number": 1347,
+ "state": "open",
+ "locked": true,
+ "title": "Amazing new feature",
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -668677,101 +704076,29 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "language": null,
- "forks_count": 9,
- "forks": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "open_issues": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "body": "Please pull these awesome changes in!",
+ "labels": [
+ {
+ "id": 208045946,
+ "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
+ "name": "bug",
+ "description": "Something isn't working",
+ "color": "f29513",
+ "default": true
+ }
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "pull": true,
- "push": false,
- "admin": false
- },
- "allow_rebase_merge": true,
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -668791,113 +704118,20 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
},
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "web_commit_signoff_required": false,
- "subscribers_count": 42,
- "network_count": 0,
- "organization": {
+ "active_lock_reason": "too heated",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:01:12Z",
+ "closed_at": "2011-01-26T19:01:12Z",
+ "merged_at": "2011-01-26T19:01:12Z",
+ "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
+ "assignee": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -668914,15 +704148,11 @@
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
+ "type": "User",
"site_admin": false
},
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "assignees": [
+ {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -668942,109 +704172,29 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- },
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ {
+ "login": "hubot",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/hubot_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/hubot",
+ "html_url": "https://github.com/hubot",
+ "followers_url": "https://api.github.com/users/hubot/followers",
+ "following_url": "https://api.github.com/users/hubot/following{/other_user}",
+ "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
+ "organizations_url": "https://api.github.com/users/hubot/orgs",
+ "repos_url": "https://api.github.com/users/hubot/repos",
+ "events_url": "https://api.github.com/users/hubot/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/hubot/received_events",
+ "type": "User",
+ "site_admin": true
+ }
+ ],
+ "requested_reviewers": [
+ {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -669064,771 +704214,3037 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
+ {
+ "login": "hubot",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/hubot_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/hubot",
+ "html_url": "https://github.com/hubot",
+ "followers_url": "https://api.github.com/users/hubot/followers",
+ "following_url": "https://api.github.com/users/hubot/following{/other_user}",
+ "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
+ "organizations_url": "https://api.github.com/users/hubot/orgs",
+ "repos_url": "https://api.github.com/users/hubot/repos",
+ "events_url": "https://api.github.com/users/hubot/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/hubot/received_events",
+ "type": "User",
+ "site_admin": true
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ {
+ "login": "other_user",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/other_user_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/other_user",
+ "html_url": "https://github.com/other_user",
+ "followers_url": "https://api.github.com/users/other_user/followers",
+ "following_url": "https://api.github.com/users/other_user/following{/other_user}",
+ "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
+ "organizations_url": "https://api.github.com/users/other_user/orgs",
+ "repos_url": "https://api.github.com/users/other_user/repos",
+ "events_url": "https://api.github.com/users/other_user/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/other_user/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
+ }
+ ],
+ "head": {
+ "label": "octocat:new-topic",
+ "ref": "new-topic",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "base": {
+ "label": "octocat:master",
+ "ref": "master",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
},
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1347"
},
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
+ "issue": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
},
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
+ "comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
},
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
+ "review_comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
},
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
+ "review_comment": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
},
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
+ "commits": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
},
- "commits_url": {
+ "statuses": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "draft": false
+ },
+ "schema": {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
]
},
- "compare_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ 1
]
},
- "contents_url": {
+ "node_id": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
]
},
- "contributors_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://github.com/octocat/Hello-World/pull/1347"
]
},
- "deployments_url": {
+ "diff_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
]
},
- "downloads_url": {
+ "patch_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
]
},
- "events_url": {
+ "issue_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
},
- "forks_url": {
+ "commits_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
]
},
- "keys_url": {
+ "review_comments_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
]
},
- "labels_url": {
+ "review_comment_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
]
},
- "languages_url": {
+ "comments_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
]
},
- "merges_url": {
+ "statuses_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
]
},
- "stargazers_url": {
- "type": "string",
- "format": "uri",
+ "number": {
+ "type": "integer",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ 1347
]
},
- "statuses_url": {
+ "state": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "open"
]
},
- "subscribers_url": {
- "type": "string",
- "format": "uri",
+ "locked": {
+ "type": "boolean",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ true
]
},
- "subscription_url": {
+ "title": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "new-feature"
]
},
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "teams_url": {
- "type": "string",
- "format": "uri",
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ "Please pull these awesome changes"
]
},
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
},
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
]
},
- "mirror_url": {
+ "active_lock_reason": {
"type": [
"string",
"null"
],
- "format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "too heated"
]
},
- "hooks_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "2011-01-26T19:01:12Z"
]
},
- "svn_url": {
+ "updated_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
+ "2011-01-26T19:01:12Z"
]
},
- "homepage": {
+ "closed_at": {
"type": [
"string",
"null"
],
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://github.com"
+ "2011-01-26T19:01:12Z"
]
},
- "language": {
+ "merged_at": {
"type": [
"string",
"null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
+ ],
+ "format": "date-time",
"examples": [
- "master"
+ "2011-01-26T19:01:12Z"
]
},
- "open_issues_count": {
- "type": "integer",
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- 0
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
]
},
- "is_template": {
- "type": "boolean",
- "examples": [
- true
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "topics": {
- "type": "array",
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
"items": {
- "type": "string"
- },
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
},
- "permissions": {
+ "head": {
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
+ "label": {
+ "type": "string"
},
- "maintain": {
- "type": "boolean"
+ "ref": {
+ "type": "string"
},
- "push": {
- "type": "boolean"
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- "triage": {
- "type": "boolean"
+ "sha": {
+ "type": "string"
},
- "pull": {
- "type": "boolean"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
}
},
"required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
- "examples": [
- true
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "template_repository": {
- "anyOf": [
- {
- "type": "null"
+ "base": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- {
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
"title": "Repository",
"description": "A repository on GitHub.",
"type": "object",
@@ -670134,826 +707550,2551 @@
"type": [
"string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Unprocessable Entity if user is not a collaborator
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
+ "title": "Remove requested reviewers from a pull request",
+ "category": "pulls",
+ "subcategory": "review-requests",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "array of strings",
+ "name": "reviewers",
+ "in": "body",
+ "description": "An array of user logins that will be removed.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of strings",
+ "name": "team_reviewers",
+ "in": "body",
+ "description": "An array of team slugs that will be removed.
"
+ }
+ ],
+ "descriptionHTML": "Removes review requests from a pull request for a given set of users and/or teams.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "reviewers": [
+ "octocat",
+ "hubot",
+ "other_user"
+ ],
+ "team_reviewers": [
+ "justice-league"
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
+ "id": 1,
+ "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
+ "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
+ "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
+ "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "number": 1347,
+ "state": "open",
+ "locked": true,
+ "title": "Amazing new feature",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Please pull these awesome changes in!",
+ "labels": [
+ {
+ "id": 208045946,
+ "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
+ "name": "bug",
+ "description": "Something isn't working",
+ "color": "f29513",
+ "default": true
+ }
+ ],
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
+ },
+ "active_lock_reason": "too heated",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:01:12Z",
+ "closed_at": "2011-01-26T19:01:12Z",
+ "merged_at": "2011-01-26T19:01:12Z",
+ "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6",
+ "assignee": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assignees": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ {
+ "login": "hubot",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/hubot_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/hubot",
+ "html_url": "https://github.com/hubot",
+ "followers_url": "https://api.github.com/users/hubot/followers",
+ "following_url": "https://api.github.com/users/hubot/following{/other_user}",
+ "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/hubot/subscriptions",
+ "organizations_url": "https://api.github.com/users/hubot/orgs",
+ "repos_url": "https://api.github.com/users/hubot/repos",
+ "events_url": "https://api.github.com/users/hubot/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/hubot/received_events",
+ "type": "User",
+ "site_admin": true
+ }
+ ],
+ "requested_reviewers": [
+ {
+ "login": "other_user",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/other_user_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/other_user",
+ "html_url": "https://github.com/other_user",
+ "followers_url": "https://api.github.com/users/other_user/followers",
+ "following_url": "https://api.github.com/users/other_user/following{/other_user}",
+ "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
+ "organizations_url": "https://api.github.com/users/other_user/orgs",
+ "repos_url": "https://api.github.com/users/other_user/repos",
+ "events_url": "https://api.github.com/users/other_user/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/other_user/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "requested_teams": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
+ }
+ ],
+ "head": {
+ "label": "octocat:new-topic",
+ "ref": "new-topic",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "base": {
+ "label": "octocat:master",
+ "ref": "master",
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1347"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "draft": false
+ },
+ "schema": {
+ "title": "Pull Request Simple",
+ "description": "Pull Request Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOlB1bGxSZXF1ZXN0MQ=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347"
+ ]
+ },
+ "diff_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.diff"
+ ]
+ },
+ "patch_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1347.patch"
+ ]
+ },
+ "issue_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits"
+ ]
+ },
+ "review_comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments"
+ ]
+ },
+ "review_comment_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "number": {
+ "type": "integer",
+ "examples": [
+ 1347
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "open"
+ ]
+ },
+ "locked": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "title": {
+ "type": "string",
+ "examples": [
+ "new-feature"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "commits_url": {
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "octocat"
]
},
- "compare_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ 1
]
},
- "contents_url": {
+ "node_id": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "MDQ6VXNlcjE="
]
},
- "contributors_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "deployments_url": {
- "type": "string",
- "format": "uri",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "downloads_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat"
]
},
- "events_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "https://github.com/octocat"
]
},
- "forks_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "issues_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "keys_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "labels_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "languages_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "merges_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "notifications_url": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "pulls_url": {
+ "events_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "releases_url": {
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "ssh_url": {
+ "type": {
"type": "string",
"examples": [
- "git@github.com:octocat/Hello-World.git"
+ "User"
]
},
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "statuses_url": {
+ "starred_at": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "subscribers_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "public"
]
- },
- "subscription_url": {
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Please pull these awesome changes"
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "description",
+ "color",
+ "default"
+ ]
+ }
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
]
},
- "tags_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
]
},
- "teams_url": {
+ "labels_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
]
},
- "trees_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ 1002604
]
},
- "clone_url": {
+ "node_id": {
"type": "string",
"examples": [
- "https://github.com/octocat/Hello-World.git"
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
]
},
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ 42
]
},
- "hooks_url": {
+ "state": {
+ "description": "The state of the milestone.",
"type": "string",
- "format": "uri",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "open"
]
},
- "svn_url": {
+ "title": {
+ "description": "The title of the milestone.",
"type": "string",
- "format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
+ "v1.0"
]
},
- "homepage": {
+ "description": {
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
"examples": [
- 9
+ "Tracking milestone for version 1.0"
]
},
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
]
},
- "watchers_count": {
+ "open_issues": {
"type": "integer",
"examples": [
- 80
+ 4
]
},
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "closed_issues": {
"type": "integer",
"examples": [
- 108
+ 8
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "created_at": {
"type": "string",
+ "format": "date-time",
"examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "2011-04-10T20:09:31Z"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
+ "updated_at": {
+ "type": "string",
"format": "date-time",
"examples": [
- "2011-01-26T19:06:43Z"
+ "2014-03-03T18:58:10Z"
]
},
- "created_at": {
+ "closed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"examples": [
- "2011-01-26T19:01:12Z"
+ "2013-02-12T13:22:01Z"
]
},
- "updated_at": {
+ "due_on": {
"type": [
"string",
"null"
],
"format": "date-time",
"examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
+ "2012-10-09T23:39:01Z"
]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
+ "closed_issues",
+ "creator",
"description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
+ "due_on",
+ "closed_at",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
"labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
+ "html_url",
+ "number",
"open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
+ "state",
+ "title",
+ "url",
"created_at",
"updated_at"
]
}
]
},
- "temp_clone_token": {
+ "active_lock_reason": {
"type": [
"string",
"null"
- ]
- },
- "allow_squash_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_update_branch": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
"examples": [
- "PR_TITLE"
+ "too heated"
]
},
- "squash_merge_commit_message": {
+ "created_at": {
"type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
+ "format": "date-time",
"examples": [
- "PR_BODY"
+ "2011-01-26T19:01:12Z"
]
},
- "merge_commit_title": {
+ "updated_at": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "format": "date-time",
"examples": [
- "PR_TITLE"
+ "2011-01-26T19:01:12Z"
]
},
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
+ "format": "date-time",
"examples": [
- false
+ "2011-01-26T19:01:12Z"
]
},
- "subscribers_count": {
- "type": "integer",
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- 42
+ "2011-01-26T19:01:12Z"
]
},
- "network_count": {
- "type": "integer",
+ "merge_commit_sha": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- 0
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
+ "e5bd3914e2e596debea16f433f57875b5b90bcd6"
]
},
- "organization": {
+ "assignee": {
"anyOf": [
{
"type": "null"
@@ -671128,3542 +710269,2728 @@
}
]
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_reviewers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "requested_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "head": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
"type": "object",
"properties": {
- "key": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "mit"
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "MIT License"
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "avatar_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "spdx_id": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "MIT"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat"
]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
},
- "triage": {
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
"type": "boolean"
},
- "push": {
- "type": "boolean"
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
},
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
]
},
- "login": {
+ "compare_url": {
"type": "string",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "contents_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "node_id": {
+ "contributors_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "avatar_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "html_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "followers_url": {
+ "git_commits_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "following_url": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "gists_url": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "starred_url": {
+ "git_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "git:github.com/octocat/Hello-World.git"
]
},
- "subscriptions_url": {
+ "issue_comment_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "organizations_url": {
+ "issue_events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "repos_url": {
+ "issues_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "events_url": {
+ "keys_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "received_events_url": {
+ "labels_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "type": {
+ "languages_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "site_admin": {
- "type": "boolean"
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
},
- "starred_at": {
+ "milestones_url": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "user_view_type": {
+ "notifications_url": {
"type": "string",
"examples": [
- "public"
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
},
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
},
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
},
- "pull": {
- "type": "boolean"
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
},
- "triage": {
- "type": "boolean"
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
},
- "push": {
- "type": "boolean"
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
},
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "email": {
- "type": [
- "string",
- "null"
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "login": {
+ "tags_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "node_id": {
+ "trees_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
},
- "avatar_url": {
+ "clone_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World.git"
]
},
- "gravatar_id": {
+ "mirror_url": {
"type": [
"string",
"null"
],
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "git:git.example.com/octocat/Hello-World"
]
},
- "url": {
+ "hooks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "html_url": {
+ "svn_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "followers_url": {
- "type": "string",
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://github.com"
]
},
- "following_url": {
- "type": "string",
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ 9
]
},
- "gists_url": {
- "type": "string",
+ "stargazers_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ 80
]
},
- "starred_url": {
- "type": "string",
+ "watchers_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ 80
]
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ 108
]
},
- "organizations_url": {
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "master"
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
+ "open_issues_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ 0
]
},
- "events_url": {
- "type": "string",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ true
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ true
]
},
- "type": {
- "type": "string",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "User"
+ true
]
},
- "site_admin": {
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "starred_at": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ true
]
},
- "user_view_type": {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "public"
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "avatar_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
"events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
+ "sha": {
"type": "string"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "lexical_commit_sha": {
- "type": "string"
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- }
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
]
},
- "forks": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
+ "base": {
"type": "object",
"properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
- ]
- },
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
- ]
+ "label": {
+ "type": "string"
},
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
- ]
+ "ref": {
+ "type": "string"
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
- }
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "repo": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "status": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "name": {
+ "description": "The name of the repository.",
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "Team Environment"
]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
+ },
+ "full_name": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "octocat/Hello-World"
]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "archive_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "assignees_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "blobs_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "network_count",
- "subscribers_count"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}",
- "title": "Get a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "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.
\n Note
\n
\n
\nIn order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization .\" \nTo view merge-related settings, you must have the contents:read and contents:write permissions. \n \n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Default response
",
- "example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "forks": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "open_issues": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "pull": true,
- "push": false,
- "admin": false
- },
- "allow_rebase_merge": true,
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "spdx_id": "MIT",
- "url": "https://api.github.com/licenses/mit",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- },
- "organization": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- },
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1,
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
- },
- "secret_scanning_push_protection": {
- "status": "disabled"
- },
- "secret_scanning_non_provider_patterns": {
- "status": "disabled"
- },
- "secret_scanning_validity_checks": {
- "status": "disabled"
- }
- }
- }
- },
- "schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "template_repository": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
"examples": [
- 42
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "node_id": {
+ "git_url": {
"type": "string",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "git:github.com/octocat/Hello-World.git"
]
},
- "name": {
- "description": "The name of the repository.",
+ "issue_comment_url": {
"type": "string",
"examples": [
- "Team Environment"
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "full_name": {
+ "issue_events_url": {
"type": "string",
"examples": [
- "octocat/Hello-World"
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "forks": {
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
"type": "integer"
},
- "permissions": {
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
"type": "object",
+ "description": "The status of the code search index for this repository",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
+ "lexical_search_ok": {
"type": "boolean"
},
- "maintain": {
- "type": "boolean"
+ "lexical_commit_sha": {
+ "type": "string"
}
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "sha": {
+ "type": "string"
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -674830,843 +713157,2375 @@
"type",
"url"
]
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "ref",
+ "repo",
+ "sha",
+ "user"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "commits": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "statuses": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "issue": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comments": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "review_comment": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "comments",
+ "commits",
+ "statuses",
+ "html",
+ "issue",
+ "review_comments",
+ "review_comment",
+ "self"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "auto_merge": {
+ "title": "Auto merge",
+ "description": "The status of auto merging a pull request.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "enabled_by": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "html_url": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "description": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "This your first repo!"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "fork": {
- "type": "boolean"
- },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "https://api.github.com/users/octocat"
]
},
- "archive_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "https://github.com/octocat"
]
},
- "assignees_url": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "blobs_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "branches_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "collaborators_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "comments_url": {
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "commits_url": {
+ "organizations_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "compare_url": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "contents_url": {
+ "events_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "contributors_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "deployments_url": {
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "The merge method to use.",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ },
+ "commit_title": {
+ "type": "string",
+ "description": "Title for the merge commit message."
+ },
+ "commit_message": {
+ "type": "string",
+ "description": "Commit message for the merge commit."
+ }
+ },
+ "required": [
+ "enabled_by",
+ "merge_method",
+ "commit_title",
+ "commit_message"
+ ]
+ },
+ "draft": {
+ "description": "Indicates whether or not the pull request is a draft.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "assignee",
+ "labels",
+ "base",
+ "body",
+ "closed_at",
+ "comments_url",
+ "commits_url",
+ "created_at",
+ "diff_url",
+ "head",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_url",
+ "merge_commit_sha",
+ "merged_at",
+ "milestone",
+ "number",
+ "patch_url",
+ "review_comment_url",
+ "review_comments_url",
+ "statuses_url",
+ "state",
+ "locked",
+ "title",
+ "updated_at",
+ "url",
+ "user",
+ "author_association",
+ "auto_merge"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "reviews": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews",
+ "title": "List reviews for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all reviews for a specified pull request. The list of reviews returns in chronological order.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "The list of reviews returns in chronological order.
",
+ "example": [
+ {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Here is the body for the review.",
+ "state": "APPROVED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
+ "examples": [
+ "This looks great."
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "CHANGES_REQUESTED"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "html",
+ "pull_request"
+ ]
+ },
+ "submitted_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "The list of reviews returns in chronological order.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews",
+ "title": "Create a review for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "commit_id",
+ "in": "body",
+ "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",
+ "name": "body",
+ "in": "body",
+ "description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
"
+ },
+ {
+ "type": "string",
+ "name": "event",
+ "in": "body",
+ "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 when you are ready.
",
+ "enum": [
+ "APPROVE",
+ "REQUEST_CHANGES",
+ "COMMENT"
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "comments",
+ "in": "body",
+ "description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "path",
+ "description": "The relative path to the file that necessitates a review comment.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "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. The 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.
"
+ },
+ {
+ "type": "string",
+ "name": "body",
+ "description": "Text of the review comment.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "line",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "side",
+ "description": ""
+ },
+ {
+ "type": "integer",
+ "name": "start_line",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "start_side",
+ "description": ""
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Creates a review on a specified pull request.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nPull request reviews created in the PENDING state are not submitted and therefore do not include the submitted_at property in the response. To create a pending review for a pull request, leave the event parameter blank. For more information about submitting a PENDING review, see \"Submit a review for a pull request .\"
\n Note
\n
\nTo comment on a specific line in a file, you need to first determine the position of that line in the diff. To see a pull request diff, add the application/vnd.github.v3.diff media type to the Accept header of a call to the Get a 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.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "body": "This is close to perfect! Please address the suggested inline change.",
+ "event": "REQUEST_CHANGES",
+ "comments": [
+ {
+ "path": "file.md",
+ "position": 6,
+ "body": "Please add more information here, and fix this typo."
+ }
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "This is close to perfect! Please address the suggested inline change.",
+ "state": "CHANGES_REQUESTED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ },
+ "schema": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "downloads_url": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat"
]
},
- "events_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "https://github.com/octocat"
]
},
- "forks_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
+ "https://api.github.com/users/octocat/followers"
]
},
- "git_commits_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "git_refs_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "git_tags_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
+ "examples": [
+ "This looks great."
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "CHANGES_REQUESTED"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "html",
+ "pull_request"
+ ]
+ },
+ "submitted_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
+ "title": "Get a review for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "review_id",
+ "description": "The unique identifier of the review.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Retrieves a pull request review by its ID.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER",
+ "review_id": "REVIEW_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Here is the body for the review.",
+ "state": "APPROVED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ },
+ "schema": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "issue_comment_url": {
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "octocat"
]
},
- "issue_events_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ 1
]
},
- "issues_url": {
+ "node_id": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "MDQ6VXNlcjE="
]
},
- "keys_url": {
+ "avatar_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "labels_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "languages_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat"
]
},
- "merges_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "https://github.com/octocat"
]
},
- "notifications_url": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "pulls_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "releases_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "ssh_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "stargazers_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "subscribers_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "subscription_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/repos"
]
},
- "tags_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "teams_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "clone_url": {
+ "type": {
"type": "string",
"examples": [
- "https://github.com/octocat/Hello-World.git"
+ "User"
]
},
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "hooks_url": {
+ "starred_at": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "svn_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
+ "public"
]
- },
- "homepage": {
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
+ "examples": [
+ "This looks great."
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "CHANGES_REQUESTED"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "html",
+ "pull_request"
+ ]
+ },
+ "submitted_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
+ "title": "Update a review for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "review_id",
+ "description": "The unique identifier of the review.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "The body text of the pull request review.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": "Updates the contents of a specified review summary comment.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "body": "This is close to perfect! Please address the suggested inline change. And add more about this."
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER",
+ "review_id": "REVIEW_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "This is close to perfect! Please address the suggested inline change. And add more about this.",
+ "state": "CHANGES_REQUESTED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ },
+ "schema": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
]
},
- "language": {
+ "email": {
"type": [
"string",
"null"
]
},
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
+ "login": {
"type": "string",
"examples": [
- "master"
+ "octocat"
]
},
- "open_issues_count": {
+ "id": {
"type": "integer",
+ "format": "int64",
"examples": [
- 0
+ 1
]
},
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
+ "node_id": {
+ "type": "string",
"examples": [
- true
+ "MDQ6VXNlcjE="
]
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- true
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
+ "url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat"
]
},
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://github.com/octocat"
]
},
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/followers"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "following_url": {
+ "type": "string",
"examples": [
- "2011-01-26T19:06:43Z"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "gists_url": {
+ "type": "string",
"examples": [
- "2011-01-26T19:01:12Z"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "starred_url": {
+ "type": "string",
"examples": [
- "2011-01-26T19:14:43Z"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/orgs"
]
},
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- false
+ "https://api.github.com/users/octocat/repos"
]
},
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
+ "events_url": {
+ "type": "string",
"examples": [
- false
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- false
+ "https://api.github.com/users/octocat/received_events"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
+ "type": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
"examples": [
- true
+ "User"
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
+ "site_admin": {
"type": "boolean"
},
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
"starred_at": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "\"2020-07-09T00:17:55Z\""
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
]
},
- "temp_clone_token": {
- "type": [
- "string",
- "null"
- ]
- },
- "allow_squash_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "type": "boolean",
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
"examples": [
- false
+ "This looks great."
]
},
- "delete_branch_on_merge": {
- "type": "boolean",
+ "state": {
+ "type": "string",
"examples": [
- false
+ "CHANGES_REQUESTED"
]
},
- "allow_merge_commit": {
- "type": "boolean",
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
]
},
- "allow_update_branch": {
- "type": "boolean",
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "examples": [
- false
+ "_links": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "html",
+ "pull_request"
]
},
- "squash_merge_commit_title": {
+ "submitted_at": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
- "examples": [
- "PR_TITLE"
- ]
+ "format": "date-time"
},
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
"examples": [
- "PR_BODY"
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
]
},
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
- "examples": [
- "PR_TITLE"
- ]
+ "body_html": {
+ "type": "string"
},
- "merge_commit_message": {
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
"type": "string",
+ "description": "How the author is associated with the repository.",
"enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
"examples": [
- false
+ "OWNER"
]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
+ "title": "Delete a pending review for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "review_id",
+ "description": "The unique identifier of the review.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Deletes a pull request review that has not been submitted. Submitted reviews cannot be deleted.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER",
+ "review_id": "REVIEW_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "This is close to perfect! Please address the suggested inline change.",
+ "state": "CHANGES_REQUESTED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
},
- "subscribers_count": {
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ },
+ "schema": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
"type": "integer",
+ "format": "int64",
"examples": [
42
]
},
- "network_count": {
- "type": "integer",
+ "node_id": {
+ "type": "string",
"examples": [
- 0
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
]
},
- "organization": {
+ "user": {
"anyOf": [
{
"type": "null"
@@ -675841,129 +715700,955 @@
}
]
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
+ "examples": [
+ "This looks great."
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "CHANGES_REQUESTED"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "html",
+ "pull_request"
+ ]
+ },
+ "submitted_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
+ "title": "List comments for a pull request review",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "review_id",
+ "description": "The unique identifier of the review.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists comments for a specific pull request review.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER",
+ "review_id": "REVIEW_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
+ "pull_request_review_id": 42,
+ "id": 10,
+ "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
+ "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
+ "path": "file1.txt",
+ "position": 1,
+ "original_position": 4,
+ "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
+ "in_reply_to_id": 8,
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Great stuff!",
+ "created_at": "2011-04-14T16:00:49Z",
+ "updated_at": "2011-04-14T16:00:49Z",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
+ "author_association": "NONE",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ },
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ }
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Legacy Review Comment",
+ "description": "Legacy Review Comment",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"
+ ]
+ },
+ "pull_request_review_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 10
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw"
+ ]
+ },
+ "diff_hunk": {
+ "type": "string",
+ "examples": [
+ "@@ -16,33 +16,40 @@ public class Connection : IConnection..."
+ ]
+ },
+ "path": {
+ "type": "string",
+ "examples": [
+ "file1.txt"
+ ]
+ },
+ "position": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 1
+ ]
+ },
+ "original_position": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "commit_id": {
+ "type": "string",
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "original_commit_id": {
+ "type": "string",
+ "examples": [
+ "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840"
+ ]
+ },
+ "in_reply_to_id": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "Great stuff"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-14T16:00:49Z"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/1"
+ ]
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "html": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ },
+ "pull_request": {
+ "title": "Link",
+ "description": "Hypermedia Link",
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
+ ]
+ }
+ },
+ "required": [
+ "self",
+ "html",
+ "pull_request"
+ ]
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ },
+ "side": {
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT"
+ ],
+ "default": "RIGHT",
+ "type": "string"
+ },
+ "start_side": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The side of the first line of the range for a multi-line comment.",
+ "enum": [
+ "LEFT",
+ "RIGHT",
+ null
+ ],
+ "default": "RIGHT"
+ },
+ "line": {
+ "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "original_line": {
+ "description": "The original line of the blob to which the comment applies. The last line of the range for a multi-line comment",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "start_line": {
+ "description": "The first line of the range for a multi-line comment.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 2
+ ]
+ },
+ "original_start_line": {
+ "description": "The original first line of the range for a multi-line comment.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 2
+ ]
+ },
+ "subject_type": {
+ "description": "The level at which the comment is targeted, can be a diff line or a file.",
+ "type": "string",
+ "enum": [
+ "line",
+ "file"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "body",
+ "diff_hunk",
+ "path",
+ "position",
+ "original_position",
+ "commit_id",
+ "original_commit_id",
+ "user",
+ "pull_request_review_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals",
+ "title": "Dismiss a review for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "review_id",
+ "description": "The unique identifier of the review.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "message",
+ "in": "body",
+ "description": "The message for the pull request review dismissal
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "event",
+ "in": "body",
+ "description": "",
+ "enum": [
+ "DISMISS"
+ ]
+ }
+ ],
+ "descriptionHTML": "Dismisses a specified review on a pull request.
\n Note
\n
\nTo dismiss a pull request review on a protected branch , you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
\n
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "message": "You are dismissed",
+ "event": "DISMISS"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER",
+ "review_id": "REVIEW_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Here is the body for the review.",
+ "state": "DISMISSED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ },
+ "schema": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -676130,789 +716815,300 @@
"type",
"url"
]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
]
},
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
+ "examples": [
+ "This looks great."
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "CHANGES_REQUESTED"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ ]
+ },
+ "_links": {
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
}
+ },
+ "required": [
+ "href"
]
},
- "forks": {
- "type": "integer"
- },
- "permissions": {
+ "pull_request": {
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
+ "href": {
+ "type": "string"
}
},
"required": [
- "admin",
- "pull",
- "push"
+ "href"
]
+ }
+ },
+ "required": [
+ "html",
+ "pull_request"
+ ]
+ },
+ "submitted_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events",
+ "title": "Submit a review for a pull request",
+ "category": "pulls",
+ "subcategory": "reviews",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pull_number",
+ "description": "The number that identifies the pull request.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "review_id",
+ "description": "The unique identifier of the review.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "The body text of the pull request review
"
+ },
+ {
+ "type": "string",
+ "name": "event",
+ "in": "body",
+ "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.
",
+ "isRequired": true,
+ "enum": [
+ "APPROVE",
+ "REQUEST_CHANGES",
+ "COMMENT"
+ ]
+ }
+ ],
+ "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request .\"
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github-commitcomment.raw+json : Returns the raw markdown body. Response will include body. This is the default if you do not pass any specific media type. \napplication/vnd.github-commitcomment.text+json : Returns a text only representation of the markdown body. Response will include body_text. \napplication/vnd.github-commitcomment.html+json : Returns HTML rendered from the body's markdown. Response will include body_html. \napplication/vnd.github-commitcomment.full+json : Returns raw, text, and HTML representations. Response will include body, body_text, and body_html. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "body": "Here is the body for the review.",
+ "event": "REQUEST_CHANGES"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "pull_number": "PULL_NUMBER",
+ "review_id": "REVIEW_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 80,
+ "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "body": "Here is the body for the review.",
+ "state": "APPROVED",
+ "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
+ "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
+ "_links": {
+ "html": {
+ "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ },
+ "pull_request": {
+ "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ }
+ },
+ "submitted_at": "2019-11-17T17:43:43Z",
+ "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
+ "author_association": "COLLABORATOR"
+ },
+ "schema": {
+ "title": "Pull Request Review",
+ "description": "Pull Request Reviews are reviews on pull requests.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the review",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA="
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -677079,914 +717275,583 @@
"type",
"url"
]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
+ }
+ ]
+ },
+ "body": {
+ "description": "The text of the review.",
+ "type": "string",
+ "examples": [
+ "This looks great."
+ ]
+ },
+ "state": {
+ "type": "string",
+ "examples": [
+ "CHANGES_REQUESTED"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80"
+ ]
+ },
+ "pull_request_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/12"
+ ]
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "href"
]
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
+ "pull_request": {
"type": "object",
- "description": "The status of the code search index for this repository",
"properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
+ "href": {
"type": "string"
}
- }
+ },
+ "required": [
+ "href"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "html",
+ "pull_request"
+ ]
+ },
+ "submitted_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "commit_id": {
+ "description": "A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "54bb654c9e6025347f57900a4a5c2313a96b8035"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "author_association": {
+ "title": "author_association",
+ "type": "string",
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "body",
+ "state",
+ "commit_id",
+ "html_url",
+ "pull_request_url",
+ "_links",
+ "author_association"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Pull requests\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "rate-limit": {
+ "rate-limit": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/rate_limit",
+ "title": "Get rate limit status for the authenticated user",
+ "category": "rate-limit",
+ "subcategory": "rate-limit",
+ "parameters": [],
+ "bodyParameters": [],
+ "descriptionHTML": " Note
\n
\nAccessing this endpoint does not count against your REST API rate limit.
\n
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources, you'll see objects relating to different categories:
\n\nThe core object provides your rate limit status for all non-search-related resources in the REST API. \nThe search object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search .\" \nThe code_search object provides your rate limit status for the REST API for searching code. For more information, see \"Search code .\" \nThe graphql object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations .\" \nThe integration_manifest object provides your rate limit status for the POST /app-manifests/{code}/conversions operation. For more information, see \"Creating a GitHub App from a manifest .\" \nThe dependency_snapshots object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph .\" \nThe dependency_sbom object provides your rate limit status for requesting SBOMs from the dependency graph. For more information, see \"Dependency graph .\" \nThe code_scanning_upload object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub .\" \nThe actions_runner_registration object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners .\" \nThe source_import object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions .\" \n \n Note
\n
\nThe rate object is closing down. If 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.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "resources": {
+ "core": {
+ "limit": 5000,
+ "used": 1,
+ "remaining": 4999,
+ "reset": 1691591363
},
- "forks": {
- "type": "integer"
+ "search": {
+ "limit": 30,
+ "used": 12,
+ "remaining": 18,
+ "reset": 1691591091
},
- "master_branch": {
- "type": "string"
+ "graphql": {
+ "limit": 5000,
+ "used": 7,
+ "remaining": 4993,
+ "reset": 1691593228
},
- "open_issues": {
- "type": "integer"
+ "integration_manifest": {
+ "limit": 5000,
+ "used": 1,
+ "remaining": 4999,
+ "reset": 1691594631
},
- "watchers": {
- "type": "integer"
+ "source_import": {
+ "limit": 100,
+ "used": 1,
+ "remaining": 99,
+ "reset": 1691591091
},
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
+ "code_scanning_upload": {
+ "limit": 500,
+ "used": 1,
+ "remaining": 499,
+ "reset": 1691594631
},
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
+ "actions_runner_registration": {
+ "limit": 10000,
+ "used": 0,
+ "remaining": 10000,
+ "reset": 1691594631
+ },
+ "scim": {
+ "limit": 15000,
+ "used": 0,
+ "remaining": 15000,
+ "reset": 1691594631
+ },
+ "dependency_snapshots": {
+ "limit": 100,
+ "used": 0,
+ "remaining": 100,
+ "reset": 1691591091
+ },
+ "code_search": {
+ "limit": 10,
+ "used": 0,
+ "remaining": 10,
+ "reset": 1691591091
+ },
+ "code_scanning_autofix": {
+ "limit": 10,
+ "used": 0,
+ "remaining": 10,
+ "reset": 1691591091
+ }
+ },
+ "rate": {
+ "limit": 5000,
+ "used": 1,
+ "remaining": 4999,
+ "reset": 1372700873
+ }
+ },
+ "schema": {
+ "title": "Rate Limit Overview",
+ "description": "Rate Limit Overview",
+ "type": "object",
+ "properties": {
+ "resources": {
"type": "object",
"properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ "core": {
+ "title": "Rate Limit",
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
]
},
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
+ "graphql": {
+ "title": "Rate Limit",
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
]
},
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
+ "search": {
+ "title": "Rate Limit",
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
]
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ "code_search": {
+ "title": "Rate Limit",
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
]
- }
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ },
+ "source_import": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "code_security": {
+ "integration_manifest": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
+ "code_scanning_upload": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "secret_scanning": {
+ "actions_runner_registration": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "secret_scanning_push_protection": {
+ "scim": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "secret_scanning_non_provider_patterns": {
+ "dependency_snapshots": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "secret_scanning_ai_detection": {
+ "dependency_sbom": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
},
- "secret_scanning_validity_checks": {
+ "code_scanning_autofix": {
+ "title": "Rate Limit",
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
}
- }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
}
- }
+ },
+ "required": [
+ "core",
+ "search"
+ ]
},
- "custom_properties": {
+ "rate": {
+ "title": "Rate Limit",
"type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ "properties": {
+ "limit": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset": {
+ "type": "integer"
+ },
+ "used": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "limit",
+ "remaining",
+ "reset",
+ "used"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "network_count",
- "subscribers_count"
+ "rate",
+ "resources"
]
}
}
@@ -677998,12 +717863,8 @@
"description": "OK
"
},
{
- "httpStatusCode": "301",
- "description": "Moved permanently
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "404",
@@ -678015,21 +717876,22 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
+ "permissions": [],
+ "allowPermissionlessAccess": true,
"allowsPublicRead": true
}
- },
+ }
+ ]
+ },
+ "reactions": {
+ "reactions": [
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}",
- "title": "Update a repository",
- "category": "repos",
- "subcategory": "repos",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions",
+ "title": "List reactions for a commit comment",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -678048,703 +717910,78 @@
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the repository.
"
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A short description of the repository.
"
- },
- {
- "type": "string",
- "name": "homepage",
- "in": "body",
- "description": "A URL with more information about the repository.
"
- },
- {
- "type": "boolean",
- "name": "private",
- "in": "body",
- "description": "Either true to make the repository private or false to make it public. Default: false. \nNote : You will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private.
",
- "default": false
- },
- {
- "type": "string",
- "name": "visibility",
- "in": "body",
- "description": "The visibility of the repository.
",
- "enum": [
- "public",
- "private",
- "internal"
- ]
- },
- {
- "type": "object or null",
- "name": "security_and_analysis",
- "in": "body",
- "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization .\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "advanced_security",
- "description": "Use the status property to enable or disable GitHub Advanced Security for this repository.\nFor more information, see \"About GitHub Advanced\nSecurity .\"
\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- },
- {
- "type": "object",
- "name": "code_security",
- "description": "Use the status property to enable or disable GitHub Code Security for this repository.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- },
- {
- "type": "object",
- "name": "secret_scanning",
- "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning .\"
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- },
- {
- "type": "object",
- "name": "secret_scanning_push_protection",
- "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning .\"
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- },
- {
- "type": "object",
- "name": "secret_scanning_ai_detection",
- "description": "Use the status property to enable or disable secret scanning AI detection for this repository. For more information, see \"Responsible detection of generic secrets with AI .\"
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- },
- {
- "type": "object",
- "name": "secret_scanning_non_provider_patterns",
- "description": "Use the status property to enable or disable secret scanning non-provider patterns for this repository. For more information, see \"Supported secret scanning patterns .\"
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- },
- {
- "type": "object",
- "name": "secret_scanning_validity_checks",
- "description": "Use the status property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "status",
- "description": "Can be enabled or disabled.
"
- }
- ]
- }
- ]
- },
- {
- "type": "boolean",
- "name": "has_issues",
- "in": "body",
- "description": "Either true to enable issues for this repository or false to disable them.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "has_projects",
- "in": "body",
- "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.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "has_wiki",
- "in": "body",
- "description": "Either true to enable the wiki for this repository or false to disable it.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "is_template",
- "in": "body",
- "description": "Either true to make this repo available as a template repository or false to prevent it.
",
- "default": false
- },
- {
- "type": "string",
- "name": "default_branch",
- "in": "body",
- "description": "Updates the default branch for this repository.
"
- },
- {
- "type": "boolean",
- "name": "allow_squash_merge",
- "in": "body",
- "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "allow_merge_commit",
- "in": "body",
- "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "allow_rebase_merge",
- "in": "body",
- "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "allow_auto_merge",
- "in": "body",
- "description": "Either true to allow auto-merge on pull requests, or false to disallow auto-merge.
",
- "default": false
- },
- {
- "type": "boolean",
- "name": "delete_branch_on_merge",
- "in": "body",
- "description": "Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion.
",
- "default": false
- },
- {
- "type": "boolean",
- "name": "allow_update_branch",
- "in": "body",
- "description": "Either true to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.
",
- "default": false
- },
- {
- "type": "boolean",
- "name": "use_squash_pr_title_as_default",
- "in": "body",
- "description": "Either true to allow squash-merge commits to use pull request title, or false to use commit message. **This property is closing down. Please use squash_merge_commit_title instead.
",
- "default": false
},
{
- "type": "string",
- "name": "squash_merge_commit_title",
- "in": "body",
- "description": "Required when using squash_merge_commit_message.
\nThe default value for a squash merge commit title:
\n\nPR_TITLE - default to the pull request's title. \nCOMMIT_OR_PR_TITLE - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). \n ",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ]
- },
- {
- "type": "string",
- "name": "squash_merge_commit_message",
- "in": "body",
- "description": "The default value for a squash merge commit message:
\n\nPR_BODY - default to the pull request's body. \nCOMMIT_MESSAGES - default to the branch's commit messages. \nBLANK - default to a blank commit message. \n ",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ]
- },
- {
- "type": "string",
- "name": "merge_commit_title",
- "in": "body",
- "description": "Required when using merge_commit_message.
\nThe default value for a merge commit title.
\n\nPR_TITLE - default to the pull request's title. \nMERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). \n ",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ]
- },
- {
- "type": "string",
- "name": "merge_commit_message",
- "in": "body",
- "description": "The default value for a merge commit message.
\n\nPR_TITLE - default to the pull request's title. \nPR_BODY - default to the pull request's body. \nBLANK - default to a blank commit message. \n ",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ]
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
- "type": "boolean",
- "name": "archived",
- "in": "body",
- "description": "Whether to archive this repository. false will unarchive a previously archived repository.
",
- "default": false
+ "name": "content",
+ "description": "Returns a single reaction type . Omit this parameter to list all reactions to a commit comment.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
},
{
- "type": "boolean",
- "name": "allow_forking",
- "in": "body",
- "description": "Either true to allow private forks, or false to prevent private forks.
",
- "default": false
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
},
{
- "type": "boolean",
- "name": "web_commit_signoff_required",
- "in": "body",
- "description": "Either true to require contributors to sign off on web-based commits, or false to not require contributors to sign off on web-based commits.
",
- "default": false
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
}
],
- "descriptionHTML": "Note : To edit a repository's topics, use the Replace all repository topics endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": "List the reactions to a commit comment .
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "Hello-World",
- "description": "This is your first repository",
- "homepage": "https://github.com",
- "private": true,
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true
- },
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "language": null,
- "forks_count": 9,
- "forks": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "open_issues": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "pull": true,
- "push": false,
- "admin": false
- },
- "allow_rebase_merge": true,
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "web_commit_signoff_required": false,
- "subscribers_count": 42,
- "network_count": 0,
- "organization": {
- "login": "octocat",
+ "example": [
+ {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- },
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -678764,1896 +718001,657 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
}
- },
+ ],
"schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "type": "array",
+ "items": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
},
- "created_at": {
- "type": "string",
- "format": "date-time",
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions",
+ "title": "Create reaction for a commit comment",
+ "category": "reactions",
+ "subcategory": "reactions",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "content",
+ "in": "body",
+ "description": "The reaction type to add to the commit comment.
",
+ "isRequired": true,
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
+ ],
+ "descriptionHTML": "Create a reaction to a commit comment . A response with an HTTP 200 status means that you already added the reaction type to this commit comment.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Reaction exists
",
+ "example": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ },
+ "schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
"examples": [
- "2011-01-26T19:01:12Z"
+ 1
]
},
- "updated_at": {
+ "node_id": {
"type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
"examples": [
- true
+ "MDg6UmVhY3Rpb24x"
]
},
- "template_repository": {
+ "user": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
"name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
"type": [
"string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "deployments_url": {
+ "login": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "octocat"
]
},
- "downloads_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ 1
]
},
- "events_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "MDQ6VXNlcjE="
]
},
- "forks_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "labels_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "languages_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat"
]
},
- "merges_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://github.com/octocat"
]
},
- "stargazers_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/followers"
]
},
- "statuses_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "subscribers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "subscription_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "tags_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "teams_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "clone_url": {
+ "repos_url": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
"format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/repos"
]
},
- "hooks_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "svn_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ "https://api.github.com/users/octocat/received_events"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "type": {
"type": "string",
"examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "User"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
+ "site_admin": {
"type": "boolean"
},
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
+ "starred_at": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
"examples": [
- true
+ "\"2020-07-09T00:17:55Z\""
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
+ "user_view_type": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "public"
]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
]
},
- "temp_clone_token": {
- "type": [
- "string",
- "null"
- ]
- },
- "allow_squash_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_update_branch": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "merge_commit_title": {
+ "content": {
+ "description": "The reaction to use",
"type": "string",
"enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
"examples": [
- "PR_TITLE"
+ "heart"
]
},
- "merge_commit_message": {
+ "created_at": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
+ "format": "date-time",
"examples": [
- false
+ "2016-05-20T20:09:31Z"
]
- },
- "subscribers_count": {
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ },
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Reaction created
",
+ "example": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ },
+ "schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
"type": "integer",
"examples": [
- 42
+ 1
]
},
- "network_count": {
- "type": "integer",
+ "node_id": {
+ "type": "string",
"examples": [
- 0
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
+ "MDg6UmVhY3Rpb24x"
]
},
- "organization": {
+ "user": {
"anyOf": [
{
"type": "null"
@@ -680828,129 +718826,653 @@
}
]
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Reaction exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Reaction created
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",
+ "title": "Delete a commit comment reaction",
+ "category": "reactions",
+ "subcategory": "reactions",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
+ "name": "reaction_id",
+ "description": "The unique identifier of the reaction.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id.
\n
\nDelete a reaction to a commit comment .
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID",
+ "reaction_id": "REACTION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
+ "title": "List reactions for an issue comment",
+ "category": "reactions",
+ "subcategory": "reactions",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
+ "name": "content",
+ "description": "Returns a single reaction type . Omit this parameter to list all reactions to an issue comment.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List the reactions to an issue comment .
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Issues\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
+ "title": "Create reaction for an issue comment",
+ "category": "reactions",
+ "subcategory": "reactions",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "content",
+ "in": "body",
+ "description": "The reaction type to add to the issue comment.
",
+ "isRequired": true,
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
+ ],
+ "descriptionHTML": "Create a reaction to an issue comment . A response with an HTTP 200 status means that you already added the reaction type to this issue comment.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Reaction exists
",
+ "example": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ },
+ "schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -681117,789 +719639,112 @@
"type",
"url"
]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
]
},
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ },
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Reaction created
",
+ "example": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ },
+ "schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -682066,914 +719911,40 @@
"type",
"url"
]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "forks": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
- ]
- },
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
}
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
]
},
- "security_and_analysis": {
- "type": [
- "object",
- "null"
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
+ "examples": [
+ "heart"
+ ]
},
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "network_count",
- "subscribers_count"
+ "user",
+ "content",
+ "created_at"
]
}
}
@@ -682982,19 +719953,11 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "307",
- "description": "Temporary Redirect
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "description": "Reaction exists
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "201",
+ "description": "Reaction created
"
},
{
"httpStatusCode": "422",
@@ -683008,7 +719971,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Issues\" repository permissions": "write"
}
]
}
@@ -683016,10 +719979,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/repos/{owner}/{repo}",
- "title": "Delete a repository",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",
+ "title": "Delete an issue comment reaction",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -683038,10 +720001,29 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
+ "name": "reaction_id",
+ "description": "The unique identifier of the reaction.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Deleting a repository requires admin access.
\nIf an organization owner has configured the organization to prevent members from deleting organization-owned\nrepositories, you will get a 403 Forbidden response.
\nOAuth app tokens and personal access tokens (classic) need the delete_repo scope to use this endpoint.
",
+ "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id.
\n
\nDelete a reaction to an issue comment .
",
"codeExamples": [
{
"key": "default",
@@ -683050,7 +720032,9 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID",
+ "reaction_id": "REACTION_ID"
}
},
"response": {
@@ -683063,22 +720047,6 @@
{
"httpStatusCode": "204",
"description": "No Content
"
- },
- {
- "httpStatusCode": "307",
- "description": "Temporary Redirect
"
- },
- {
- "httpStatusCode": "403",
- "description": "If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
}
],
"previews": [],
@@ -683088,7 +720056,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Issues\" repository permissions": "write"
}
]
}
@@ -683096,10 +720064,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/activity",
- "title": "List repository activities",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions",
+ "title": "List reactions for an issue",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -683120,17 +720088,31 @@
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
+ "name": "issue_number",
+ "description": "The number that identifies the issue.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "content",
+ "description": "Returns a single reaction type . Omit this parameter to list all reactions to an issue.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
}
},
{
@@ -683143,77 +720125,17 @@
}
},
{
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ref",
- "description": "The Git reference for the activities you want to list.
\nThe ref for a branch can be formatted either as refs/heads/BRANCH_NAME or BRANCH_NAME, where BRANCH_NAME is the name of your branch.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "actor",
- "description": "The GitHub username to use to filter by the actor who performed the activity.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for activity that occurred in the past 24 hours, and week will filter for activity that occurred in the past 7 days (168 hours).
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ]
- }
- },
- {
- "name": "activity_type",
- "description": "The activity type to filter by.
\nFor example, you can choose to filter by \"force_push\", to see all force pushes to the repository.
",
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "required": false,
"schema": {
- "type": "string",
- "enum": [
- "push",
- "force_push",
- "branch_creation",
- "branch_deletion",
- "pr_merge",
- "merge_queue_merge"
- ]
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.
\nFor more information about viewing repository activity,\nsee \"Viewing activity and data for your repository .\"
",
+ "descriptionHTML": "List the reactions to an issue .
",
"codeExamples": [
{
"key": "default",
@@ -683222,7 +720144,8 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "issue_number": "ISSUE_NUMBER"
}
},
"response": {
@@ -683231,14 +720154,9 @@
"description": "Response
",
"example": [
{
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "before": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "after": "827efc6d56897b048c772eb4087f854f46256132",
- "ref": "refs/heads/main",
- "pushed_at": "2011-01-26T19:06:43Z",
- "push_type": "normal",
- "pusher": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -683257,73 +720175,31 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- }
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
}
],
"schema": {
"type": "array",
"items": {
- "title": "Activity",
- "description": "Activity",
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
"properties": {
"id": {
"type": "integer",
"examples": [
- 1296269
+ 1
]
},
"node_id": {
"type": "string",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "before": {
- "type": "string",
- "description": "The SHA of the commit before the activity.",
- "examples": [
- "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- ]
- },
- "after": {
- "type": "string",
- "description": "The SHA of the commit after the activity.",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "ref": {
- "type": "string",
- "description": "The full Git reference, formatted as `refs/heads/`.",
- "examples": [
- "refs/heads/main"
- ]
- },
- "timestamp": {
- "type": "string",
- "format": "date-time",
- "description": "The time when the activity occurred.",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "activity_type": {
- "type": "string",
- "enum": [
- "push",
- "force_push",
- "branch_deletion",
- "branch_creation",
- "pr_merge",
- "merge_queue_merge"
- ],
- "description": "The type of the activity that was performed.",
- "examples": [
- "force_push"
+ "MDg6UmVhY3Rpb24x"
]
},
- "actor": {
+ "user": {
"anyOf": [
{
"type": "null"
@@ -683497,17 +720373,38 @@
]
}
]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
}
},
"required": [
"id",
"node_id",
- "before",
- "after",
- "ref",
- "timestamp",
- "activity_type",
- "actor"
+ "user",
+ "content",
+ "created_at"
]
}
}
@@ -683520,107 +720417,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/automated-security-fixes",
- "title": "Check if Dependabot security updates are enabled for a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see \"Configuring Dependabot security updates \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response if Dependabot is enabled
",
- "example": {
- "enabled": true,
- "paused": false
- },
- "schema": {
- "title": "Check Dependabot security updates",
- "description": "Check Dependabot security updates",
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean",
- "description": "Whether Dependabot security updates are enabled for the repository.",
- "examples": [
- true
- ]
- },
- "paused": {
- "type": "boolean",
- "description": "Whether Dependabot security updates are paused for the repository.",
- "examples": [
- false
- ]
- }
- },
- "required": [
- "enabled",
- "paused"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response if Dependabot is enabled
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "404",
- "description": "Not Found if Dependabot is not enabled for the repository
"
+ "httpStatusCode": "410",
+ "description": "Gone
"
}
],
"previews": [],
@@ -683630,18 +720432,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "read"
+ "\"Issues\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/automated-security-fixes",
- "title": "Enable Dependabot security updates",
- "category": "repos",
- "subcategory": "repos",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions",
+ "title": "Create reaction for an issue",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -683660,156 +720463,51 @@
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see \"Configuring Dependabot security updates \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/automated-security-fixes",
- "title": "Disable Dependabot security updates",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "issue_number",
+ "description": "The number that identifies the issue.
",
"in": "path",
"required": true,
"schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Disables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see \"Configuring Dependabot security updates \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
+ "type": "integer"
}
}
],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/codeowners/errors",
- "title": "List CODEOWNERS errors",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
+ "bodyParameters": [
{
- "name": "ref",
- "description": "A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. main)
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "content",
+ "in": "body",
+ "description": "The reaction type to add to the issue.
",
+ "isRequired": true,
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
}
],
- "bodyParameters": [],
- "descriptionHTML": "List any syntax errors that are detected in the CODEOWNERS\nfile.
\nFor more information about the correct CODEOWNERS syntax,\nsee \"About code owners .\"
",
+ "descriptionHTML": "Create a reaction to an issue . A response with an HTTP 200 status means that you already added the reaction type to this issue.
",
"codeExamples": [
{
"key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Example 1: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "issue_number": "ISSUE_NUMBER"
}
},
"response": {
@@ -683817,203 +720515,9 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "errors": [
- {
- "line": 3,
- "column": 1,
- "kind": "Invalid pattern",
- "source": "***/*.rb @monalisa",
- "suggestion": "Did you mean `**/*.rb`?",
- "message": "Invalid pattern on line 3: Did you mean `**/*.rb`?\n\n ***/*.rb @monalisa\n ^",
- "path": ".github/CODEOWNERS"
- },
- {
- "line": 7,
- "column": 7,
- "kind": "Invalid owner",
- "source": "*.txt docs@",
- "suggestion": null,
- "message": "Invalid owner on line 7:\n\n *.txt docs@\n ^",
- "path": ".github/CODEOWNERS"
- }
- ]
- },
- "schema": {
- "title": "CODEOWNERS errors",
- "description": "A list of errors found in a repo's CODEOWNERS file",
- "type": "object",
- "properties": {
- "errors": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "line": {
- "description": "The line number where this errors occurs.",
- "type": "integer",
- "examples": [
- 7
- ]
- },
- "column": {
- "description": "The column number where this errors occurs.",
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "source": {
- "description": "The contents of the line where the error occurs.",
- "type": "string",
- "examples": [
- "* user"
- ]
- },
- "kind": {
- "description": "The type of error.",
- "type": "string",
- "examples": [
- "Invalid owner"
- ]
- },
- "suggestion": {
- "description": "Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "The pattern `/` will never match anything, did you mean `*` instead?"
- ]
- },
- "message": {
- "description": "A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting).",
- "type": "string",
- "examples": [
- "Invalid owner on line 7:\n\n * user\n ^"
- ]
- },
- "path": {
- "description": "The path of the file where the error occured.",
- "type": "string",
- "examples": [
- ".github/CODEOWNERS"
- ]
- }
- },
- "required": [
- "line",
- "column",
- "kind",
- "message",
- "path"
- ]
- }
- }
- },
- "required": [
- "errors"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/contributors",
- "title": "List repository contributors",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "anon",
- "description": "Set to 1 or true to include anonymous contributors in results.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "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 caches contributor data to improve performance.
\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.
",
- "codeExamples": [
- {
- "key": "response-if-repository-contains-content",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "If repository contains content
",
- "example": [
- {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -684031,598 +720535,506 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
- "site_admin": false,
- "contributions": 32
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Contributor",
- "description": "Contributor",
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string",
- "format": "uri"
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "followers_url": {
- "type": "string",
- "format": "uri"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri"
- },
- "organizations_url": {
- "type": "string",
- "format": "uri"
- },
- "repos_url": {
- "type": "string",
- "format": "uri"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "contributions": {
- "type": "integer"
- },
- "email": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "user_view_type": {
- "type": "string"
- }
- },
- "required": [
- "contributions",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "If repository contains content
"
- },
- {
- "httpStatusCode": "204",
- "description": "Response if repository is empty
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/dispatches",
- "title": "Create a repository dispatch event",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "event_type",
- "in": "body",
- "description": "A custom webhook event name. Must be 100 characters or fewer.
",
- "isRequired": true
- },
- {
- "type": "object",
- "name": "client_payload",
- "in": "body",
- "description": "JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.
"
- }
- ],
- "descriptionHTML": "You can use this endpoint to trigger a webhook event called repository_dispatch when you want activity that happens outside of GitHub Enterprise Cloud to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the repository_dispatch event occurs. For an example repository_dispatch webhook payload, see \"RepositoryDispatchEvent .\"
\nThe client_payload parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the client_payload can include a message that a user would like to send using a GitHub Actions workflow. Or the client_payload can be used as a test to debug your workflow.
\nThis input example shows how you can use the client_payload as a test to debug your workflow.
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "event_type": "on-demand-test",
- "client_payload": {
- "unit": false,
- "integration": true
- }
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/immutable-releases",
- "title": "Check if immutable releases are enabled for a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Shows whether immutable releases are enabled or disabled. Also identifies whether immutability is being\nenforced by the repository owner. The authenticated user must have admin read access to the repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response if immutable releases are enabled
",
- "example": {
- "enabled": true,
- "enforced_by_owner": false
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
},
"schema": {
- "title": "Check immutable releases",
- "description": "Check immutable releases",
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean",
- "description": "Whether immutable releases are enabled for the repository.",
+ "id": {
+ "type": "integer",
"examples": [
- true
+ 1
]
},
- "enforced_by_owner": {
- "type": "boolean",
- "description": "Whether immutable releases are enforced by the repository owner.",
+ "node_id": {
+ "type": "string",
"examples": [
- false
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
]
}
},
"required": [
- "enabled",
- "enforced_by_owner"
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response if immutable releases are enabled
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if immutable releases are not enabled for the repository
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/immutable-releases",
- "title": "Enable immutable releases",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Enables immutable releases for a repository. The authenticated user must have admin access to the repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "A header with no content is returned.
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "A header with no content is returned.
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/immutable-releases",
- "title": "Disable immutable releases",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Disables immutable releases for a repository. The authenticated user must have admin access to the repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "A header with no content is returned.
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "A header with no content is returned.
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/languages",
- "title": "List repository languages",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
},
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.
",
- "codeExamples": [
{
"key": "default",
"request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
- "example": {
- "C": 78769,
- "Python": 7769
- },
- "schema": {
- "title": "Language",
- "description": "Language",
- "type": "object",
- "additionalProperties": {
- "type": "integer"
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting",
- "title": "Check if private vulnerability reporting is enabled for a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Returns a boolean indicating whether or not private vulnerability reporting is enabled for the repository. For more information, see \"Evaluating the security settings of a repository \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
+ "description": "Example 2: Status Code 201",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "issue_number": "ISSUE_NUMBER"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
- "description": "Private vulnerability reporting status
",
+ "description": "Response
",
"example": {
- "enabled": true
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
},
"schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean",
- "description": "Whether or not private vulnerability reporting is enabled for the repository."
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
}
},
"required": [
- "enabled"
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
]
}
}
@@ -684631,148 +721043,15 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "Private vulnerability reporting status
"
- },
- {
- "httpStatusCode": "422",
- "description": "Bad Request
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting",
- "title": "Enable private vulnerability reporting for a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "A header with no content is returned.
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "A header with no content is returned.
"
- },
- {
- "httpStatusCode": "422",
- "description": "Bad Request
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting",
- "title": "Disable private vulnerability reporting for a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "description": "OK
"
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Disables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "A header with no content is returned.
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "A header with no content is returned.
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "422",
- "description": "Bad Request
"
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -684782,148 +721061,81 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Issues\" repository permissions": "write"
}
]
}
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/tags",
- "title": "List repository tags",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "name": "v0.1",
- "commit": {
- "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc",
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc"
- },
- "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1",
- "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1",
- "node_id": "MDQ6VXNlcjE="
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Tag",
- "description": "Tag",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "v0.1"
- ]
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- },
- "zipball_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/zipball/v0.1"
- ]
- },
- "tarball_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/tarball/v0.1"
- ]
- },
- "node_id": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "node_id",
- "commit",
- "zipball_url",
- "tarball_url"
- ]
- }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",
+ "title": "Delete an issue reaction",
+ "category": "reactions",
+ "subcategory": "reactions",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "issue_number",
+ "description": "The number that identifies the issue.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "reaction_id",
+ "description": "The unique identifier of the reaction.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id.
\n
\nDelete a reaction to an issue .
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "issue_number": "ISSUE_NUMBER",
+ "reaction_id": "REACTION_ID"
}
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "204",
+ "description": "No Content
"
}
],
"previews": [],
@@ -684933,19 +721145,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Metadata\" repository permissions": "read"
+ "\"Issues\" repository permissions": "write"
}
- ],
- "allowsPublicRead": true
+ ]
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/teams",
- "title": "List repository teams",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
+ "title": "List reactions for a pull request review comment",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -684965,6 +721176,35 @@
"type": "string"
}
},
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
+ "name": "content",
+ "description": "Returns a single reaction type . Omit this parameter to list all reactions to a pull request review comment.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
+ },
{
"name": "per_page",
"description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
@@ -684985,7 +721225,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists the teams that have access to the specified repository and that are also visible to the authenticated user.
\nFor a public repository, a team is listed only if that team added the public repository explicitly.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to use this endpoint with a public repository, and repo scope to use this endpoint with a private repository.
",
+ "descriptionHTML": "List the reactions to a pull request review comment .
",
"codeExamples": [
{
"key": "default",
@@ -684994,7 +721234,8 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
}
},
"response": {
@@ -685004,134 +721245,81 @@
"example": [
{
"id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
"properties": {
"id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
"type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- 37
+ 1
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "node_id": {
+ "type": "string",
"examples": [
- 42
+ "MDg6UmVhY3Rpb24x"
]
},
- "parent": {
+ "user": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -685139,141 +721327,174 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
}
},
"required": [
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
+ "user",
+ "content",
+ "created_at"
]
}
}
@@ -685297,18 +721518,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "read"
+ "\"Pull requests\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/topics",
- "title": "Get all repository topics",
- "category": "repos",
- "subcategory": "repos",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
+ "title": "Create reaction for a pull request review comment",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -685329,284 +721551,332 @@
}
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "names": [
- "octocat",
- "atom",
- "electron",
- "api"
- ]
- },
- "schema": {
- "title": "Topic",
- "description": "A topic aggregates entities that are related to a subject.",
- "type": "object",
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "names"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/topics",
- "title": "Replace all repository topics",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
"in": "path",
"required": true,
"schema": {
- "type": "string"
+ "type": "integer",
+ "format": "int64"
}
}
],
"bodyParameters": [
{
- "type": "array of strings",
- "name": "names",
+ "type": "string",
+ "name": "content",
"in": "body",
- "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 will be saved as lowercase.
",
- "isRequired": true
+ "description": "The reaction type to add to the pull request review comment.
",
+ "isRequired": true,
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
}
],
- "descriptionHTML": "",
+ "descriptionHTML": "Create a reaction to a pull request review comment . A response with an HTTP 200 status means that you already added the reaction type to this pull request review comment.
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example 1: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "names": [
- "octocat",
- "atom",
- "electron",
- "api"
- ]
+ "content": "heart"
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Reaction exists
",
"example": {
- "names": [
- "octocat",
- "atom",
- "electron",
- "api"
- ]
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
},
"schema": {
- "title": "Topic",
- "description": "A topic aggregates entities that are related to a subject.",
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
"properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
}
},
"required": [
- "names"
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/transfer",
- "title": "Transfer a repository",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "new_owner",
- "in": "body",
- "description": "The username or organization name the repository will be transferred to.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "new_name",
- "in": "body",
- "description": "The new name to be given to the repository.
"
},
- {
- "type": "array of integers",
- "name": "team_ids",
- "in": "body",
- "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
"
- }
- ],
- "descriptionHTML": "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 .
",
- "codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example 2: Status Code 201",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "new_owner": "github",
- "team_ids": [
- 12,
- 345
- ],
- "new_name": "octorepo"
+ "content": "heart"
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID"
}
},
"response": {
- "statusCode": "202",
+ "statusCode": "201",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Reaction created
",
"example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -685626,1071 +721896,232 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "subscribers_count": 42,
- "network_count": 0
- }
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
},
"schema": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
"type": "object",
"properties": {
"id": {
"type": "integer",
- "format": "int64",
"examples": [
- 1296269
+ 1
]
},
"node_id": {
"type": "string",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
+ "MDg6UmVhY3Rpb24x"
]
},
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "status": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "octocat"
]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "MDQ6VXNlcjE="
]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
+ },
+ "avatar_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "html_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "followers_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "following_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "public"
]
}
- }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- }
+ ]
},
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
+ "user",
+ "content",
+ "created_at"
]
}
}
@@ -686698,30 +722129,37 @@
],
"statusCodes": [
{
- "httpStatusCode": "202",
- "description": "Accepted
"
+ "httpStatusCode": "200",
+ "description": "Reaction exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Reaction created
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": false,
- "fineGrainedPat": false,
+ "serverToServer": true,
+ "fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Pull requests\" repository permissions": "write"
}
- ],
- "disabledForPatV2": true
+ ]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/vulnerability-alerts",
- "title": "Check if vulnerability alerts are enabled for a repository",
- "category": "repos",
- "subcategory": "repos",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",
+ "title": "Delete a pull request comment reaction",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -686740,10 +722178,29 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "comment_id",
+ "description": "The unique identifier of the comment.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
+ "name": "reaction_id",
+ "description": "The unique identifier of the reaction.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin read access to the repository. For more information, see \"About security alerts for vulnerable dependencies \".
",
+ "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
\n
\nDelete a reaction to a pull request review comment .
",
"codeExamples": [
{
"key": "default",
@@ -686752,23 +722209,21 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "comment_id": "COMMENT_ID",
+ "reaction_id": "REACTION_ID"
}
},
"response": {
"statusCode": "204",
- "description": "Response if repository is enabled with vulnerability alerts
"
+ "description": "Response
"
}
}
],
"statusCodes": [
{
"httpStatusCode": "204",
- "description": "Response if repository is enabled with vulnerability alerts
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if repository is not enabled with vulnerability alerts
"
+ "description": "No Content
"
}
],
"previews": [],
@@ -686778,18 +722233,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "read"
+ "\"Pull requests\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/vulnerability-alerts",
- "title": "Enable vulnerability alerts",
- "category": "repos",
- "subcategory": "repos",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/reactions",
+ "title": "List reactions for a release",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -686808,10 +722263,54 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "content",
+ "description": "Returns a single reaction type . Omit this parameter to list all reactions to a release.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "+1",
+ "laugh",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see \"About security alerts for vulnerable dependencies \".
",
+ "descriptionHTML": "List the reactions to a release .
",
"codeExamples": [
{
"key": "default",
@@ -686820,19 +722319,281 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
}
},
"response": {
- "statusCode": "204",
- "description": "Response
"
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
}
}
],
"statusCodes": [
{
- "httpStatusCode": "204",
- "description": "No Content
"
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -686840,20 +722601,640 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
+ "permissions": [],
+ "allowPermissionlessAccess": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/reactions",
+ "title": "Create reaction for a release",
+ "category": "reactions",
+ "subcategory": "reactions",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
}
- ]
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "content",
+ "in": "body",
+ "description": "The reaction type to add to the release.
",
+ "isRequired": true,
+ "enum": [
+ "+1",
+ "laugh",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ]
+ }
+ ],
+ "descriptionHTML": "Create a reaction to a release . A response with a Status: 200 OK means that you already added the reaction type to this release.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Reaction exists
",
+ "example": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ },
+ "schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ },
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "content": "heart"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Reaction created
",
+ "example": {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ },
+ "schema": {
+ "title": "Reaction",
+ "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDg6UmVhY3Rpb24x"
+ ]
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "content": {
+ "description": "The reaction to use",
+ "type": "string",
+ "enum": [
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "rocket",
+ "eyes"
+ ],
+ "examples": [
+ "heart"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2016-05-20T20:09:31Z"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "user",
+ "content",
+ "created_at"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Reaction exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Reaction created
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/vulnerability-alerts",
- "title": "Disable vulnerability alerts",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}",
+ "title": "Delete a release reaction",
+ "category": "reactions",
+ "subcategory": "reactions",
"parameters": [
{
"name": "owner",
@@ -686872,10 +723253,28 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "reaction_id",
+ "description": "The unique identifier of the reaction.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Disables dependency alerts and the dependency graph for a repository.\nThe authenticated user must have admin access to the repository. For more information,\nsee \"About security alerts for vulnerable dependencies \".
",
+ "descriptionHTML": " Note
\n
\nYou can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id.
\n
\nDelete a reaction to a release .
",
"codeExamples": [
{
"key": "default",
@@ -686884,7 +723283,9 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "release_id": "RELEASE_ID",
+ "reaction_id": "REACTION_ID"
}
},
"response": {
@@ -686900,28 +723301,814 @@
}
],
"previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true
+ }
+ }
+ ]
+ },
+ "releases": {
+ "releases": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases",
+ "title": "List releases",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "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 .
\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
+ "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
+ "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
+ "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
+ "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
+ "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
+ "id": 1,
+ "node_id": "MDc6UmVsZWFzZTE=",
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "immutable": false,
+ "created_at": "2013-02-27T19:35:32Z",
+ "published_at": "2013-02-27T19:35:32Z",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assets": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ]
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Release",
+ "description": "A release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "assets_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "upload_url": {
+ "type": "string"
+ },
+ "tarball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "zipball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "tag_name": {
+ "description": "The name of the tag.",
+ "type": "string",
+ "examples": [
+ "v1.0.0"
+ ]
+ },
+ "target_commitish": {
+ "description": "Specifies the commitish value that determines where the Git tag is created from.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "draft": {
+ "description": "true to create a draft (unpublished) release, false to create a published one.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "prerelease": {
+ "description": "Whether to identify the release as a prerelease or a full release.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "immutable": {
+ "description": "Whether or not the release is immutable.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "author": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "assets": {
+ "type": "array",
+ "items": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "mentions_count": {
+ "type": "integer"
+ },
+ "discussion_url": {
+ "description": "The URL of the release discussion.",
+ "type": "string",
+ "format": "uri"
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ }
+ },
+ "required": [
+ "assets_url",
+ "upload_url",
+ "tarball_url",
+ "zipball_url",
+ "created_at",
+ "published_at",
+ "draft",
+ "id",
+ "node_id",
+ "author",
+ "html_url",
+ "name",
+ "prerelease",
+ "tag_name",
+ "target_commitish",
+ "assets",
+ "url"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "post",
- "requestPath": "/repos/{template_owner}/{template_repo}/generate",
- "title": "Create a repository using a template",
- "category": "repos",
- "subcategory": "repos",
+ "requestPath": "/repos/{owner}/{repo}/releases",
+ "title": "Create a release",
+ "category": "releases",
+ "subcategory": "releases",
"parameters": [
{
- "name": "template_owner",
- "description": "The account owner of the template repository. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -686929,8 +724116,8 @@
}
},
{
- "name": "template_repo",
- "description": "The name of the template repository without the .git extension. The name is not case sensitive.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -686941,39 +724128,70 @@
"bodyParameters": [
{
"type": "string",
- "name": "owner",
+ "name": "tag_name",
"in": "body",
- "description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
"
+ "description": "The name of the tag.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "target_commitish",
+ "in": "body",
+ "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.
"
},
{
"type": "string",
"name": "name",
"in": "body",
- "description": "The name of the new repository.
",
- "isRequired": true
+ "description": "The name of the release.
"
},
{
"type": "string",
- "name": "description",
+ "name": "body",
"in": "body",
- "description": "A short description of the new repository.
"
+ "description": "Text describing the contents of the tag.
"
},
{
"type": "boolean",
- "name": "include_all_branches",
+ "name": "draft",
"in": "body",
- "description": "Set to true to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: false.
",
+ "description": "true to create a draft (unpublished) release, false to create a published one.
",
"default": false
},
{
"type": "boolean",
- "name": "private",
+ "name": "prerelease",
"in": "body",
- "description": "Either true to create a new private repository or false to create a new public one.
",
+ "description": "true to identify the release as a prerelease. false to identify the release as a full release.
",
+ "default": false
+ },
+ {
+ "type": "string",
+ "name": "discussion_category_name",
+ "in": "body",
+ "description": "If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see \"Managing categories for discussions in your repository .\"
"
+ },
+ {
+ "type": "boolean",
+ "name": "generate_release_notes",
+ "in": "body",
+ "description": "Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes.
",
"default": false
+ },
+ {
+ "type": "string",
+ "name": "make_latest",
+ "in": "body",
+ "description": "Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to true for newly published releases. legacy specifies that the latest release should be determined based on the release creation date and higher semantic version.
",
+ "enum": [
+ "true",
+ "false",
+ "legacy"
+ ],
+ "default": "true"
}
],
- "descriptionHTML": "Creates a new repository using a repository template. Use the template_owner and template_repo route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the Get a repository endpoint and check that the is_template key is true.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.
",
+ "descriptionHTML": "Users with push access to the repository can create a release.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
",
"codeExamples": [
{
"key": "default",
@@ -686982,15 +724200,17 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "owner": "octocat",
- "name": "Hello-World",
- "description": "This is your first repository",
- "include_all_branches": false,
- "private": false
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "generate_release_notes": false
},
"parameters": {
- "template_owner": "TEMPLATE_OWNER",
- "template_repo": "TEMPLATE_REPO"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
@@ -686998,11 +724218,25 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
+ "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
+ "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
+ "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
+ "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
+ "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
+ "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
+ "id": 1,
+ "node_id": "MDc6UmVsZWFzZTE=",
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "immutable": false,
+ "created_at": "2013-02-27T19:35:32Z",
+ "published_at": "2013-02-27T19:35:32Z",
+ "author": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -687022,522 +724256,150 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "language": null,
- "forks_count": 9,
- "forks": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "open_issues": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "pull": true,
- "push": false,
- "admin": false
- },
- "allow_rebase_merge": true,
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
- "login": "octocat",
+ "assets": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Release",
+ "description": "A release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "html_url": {
+ "type": "string",
+ "format": "uri"
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "web_commit_signoff_required": false,
- "subscribers_count": 42,
- "network_count": 0,
- "organization": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "assets_url": {
+ "type": "string",
+ "format": "uri"
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "upload_url": {
+ "type": "string"
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "tarball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- },
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "zipball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "id": {
+ "type": "integer"
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "node_id": {
+ "type": "string"
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
+ "tag_name": {
+ "description": "The name of the tag.",
+ "type": "string",
"examples": [
- 1296269
+ "v1.0.0"
]
},
- "node_id": {
+ "target_commitish": {
+ "description": "Specifies the commitish value that determines where the Git tag is created from.",
"type": "string",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "master"
]
},
"name": {
- "type": "string",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "draft": {
+ "description": "true to create a draft (unpublished) release, false to create a published one.",
+ "type": "boolean",
"examples": [
- "Hello-World"
+ false
]
},
- "full_name": {
- "type": "string",
+ "prerelease": {
+ "description": "Whether to identify the release as a prerelease or a full release.",
+ "type": "boolean",
"examples": [
- "octocat/Hello-World"
+ false
]
},
- "owner": {
+ "immutable": {
+ "description": "Whether or not the release is immutable.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "author": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -687705,2846 +724567,4285 @@
"url"
]
},
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
+ "assets": {
"type": "array",
"items": {
- "type": "string"
- },
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "template_repository": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "lexical_commit_sha": {
- "type": "string"
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- ]
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
},
- "temp_clone_token": {
- "type": [
- "string",
- "null"
- ]
+ "body_html": {
+ "type": "string"
},
- "allow_squash_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
+ "body_text": {
+ "type": "string"
},
- "allow_auto_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
+ "mentions_count": {
+ "type": "integer"
},
- "delete_branch_on_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
+ "discussion_url": {
+ "description": "The URL of the release discussion.",
+ "type": "string",
+ "format": "uri"
},
- "allow_merge_commit": {
- "type": "boolean",
- "examples": [
- true
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
]
- },
- "allow_update_branch": {
- "type": "boolean",
+ }
+ },
+ "required": [
+ "assets_url",
+ "upload_url",
+ "tarball_url",
+ "zipball_url",
+ "created_at",
+ "published_at",
+ "draft",
+ "id",
+ "node_id",
+ "author",
+ "html_url",
+ "name",
+ "prerelease",
+ "tag_name",
+ "target_commitish",
+ "assets",
+ "url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if the discussion category name is invalid
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ },
+ {
+ "\"Contents\" repository permissions": "write",
+ "\"Workflows\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/releases/generate-notes",
+ "title": "Generate release notes content for a release",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "tag_name",
+ "in": "body",
+ "description": "The tag name for the release. This can be an existing tag or a new one.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "target_commitish",
+ "in": "body",
+ "description": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.
"
+ },
+ {
+ "type": "string",
+ "name": "previous_tag_name",
+ "in": "body",
+ "description": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.
"
+ },
+ {
+ "type": "string",
+ "name": "configuration_file_path",
+ "in": "body",
+ "description": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.
"
+ }
+ ],
+ "descriptionHTML": "Generate a name and body describing a release . The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "tag_name": "v1.0.0",
+ "target_commitish": "main",
+ "previous_tag_name": "v0.9.2",
+ "configuration_file_path": ".github/custom_release_config.yml"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Name and body of generated release notes
",
+ "example": {
+ "name": "Release v1.0.0 is now available!",
+ "body": "##Changes in Release v1.0.0 ... ##Contributors @monalisa"
+ },
+ "schema": {
+ "title": "Generated Release Notes Content",
+ "description": "Generated name and body describing a release",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The generated name of the release",
+ "type": "string",
"examples": [
- true
+ "Release v1.0.0 is now available!"
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "examples": [
- false
- ]
+ "body": {
+ "description": "The generated body describing the contents of the release supporting markdown formatting",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "body"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Name and body of generated release notes
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases/latest",
+ "title": "Get the latest release",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "View the latest published full release for the repository.
\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.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
+ "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
+ "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
+ "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
+ "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
+ "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
+ "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
+ "id": 1,
+ "node_id": "MDc6UmVsZWFzZTE=",
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "immutable": false,
+ "created_at": "2013-02-27T19:35:32Z",
+ "published_at": "2013-02-27T19:35:32Z",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assets": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Release",
+ "description": "A release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "squash_merge_commit_title": {
+ "html_url": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
- "examples": [
- "PR_TITLE"
- ]
+ "format": "uri"
},
- "squash_merge_commit_message": {
+ "assets_url": {
"type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
+ "format": "uri"
+ },
+ "upload_url": {
+ "type": "string"
+ },
+ "tarball_url": {
+ "type": [
+ "string",
+ "null"
],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
+ "format": "uri"
},
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
+ "zipball_url": {
+ "type": [
+ "string",
+ "null"
],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "tag_name": {
+ "description": "The name of the tag.",
+ "type": "string",
"examples": [
- "PR_TITLE"
+ "v1.0.0"
]
},
- "merge_commit_message": {
+ "target_commitish": {
+ "description": "Specifies the commitish value that determines where the Git tag is created from.",
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
"examples": [
- "PR_BODY"
+ "master"
]
},
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "web_commit_signoff_required": {
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "draft": {
+ "description": "true to create a draft (unpublished) release, false to create a published one.",
"type": "boolean",
"examples": [
false
]
},
- "subscribers_count": {
- "type": "integer",
+ "prerelease": {
+ "description": "Whether to identify the release as a prerelease or a full release.",
+ "type": "boolean",
"examples": [
- 42
+ false
]
},
- "network_count": {
- "type": "integer",
+ "immutable": {
+ "description": "Whether or not the release is immutable.",
+ "type": "boolean",
"examples": [
- 0
+ false
]
},
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
},
- "organization": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "author": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the repository",
"type": "integer",
"format": "int64",
"examples": [
- 42
+ 1
]
},
"node_id": {
"type": "string",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "MDQ6VXNlcjE="
]
},
- "name": {
- "description": "The name of the repository.",
+ "avatar_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Team Environment"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "full_name": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat/Hello-World"
+ "https://api.github.com/users/octocat"
]
},
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
]
},
- "forks": {
- "type": "integer"
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
},
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
},
- "html_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "description": {
- "type": [
- "string",
- "null"
- ],
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "This your first repo!"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "fork": {
- "type": "boolean"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
},
- "url": {
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "archive_url": {
+ "type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "User"
]
},
- "assignees_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "blobs_url": {
+ "user_view_type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "assets": {
+ "type": "array",
+ "items": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "mentions_count": {
+ "type": "integer"
+ },
+ "discussion_url": {
+ "description": "The URL of the release discussion.",
+ "type": "string",
+ "format": "uri"
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ }
+ },
+ "required": [
+ "assets_url",
+ "upload_url",
+ "tarball_url",
+ "zipball_url",
+ "created_at",
+ "published_at",
+ "draft",
+ "id",
+ "node_id",
+ "author",
+ "html_url",
+ "name",
+ "prerelease",
+ "tag_name",
+ "target_commitish",
+ "assets",
+ "url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases/tags/{tag}",
+ "title": "Get a release by tag name",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "tag",
+ "description": "tag parameter
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get a published release with the specified tag.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "tag": "TAG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
+ "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
+ "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
+ "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
+ "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
+ "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
+ "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
+ "id": 1,
+ "node_id": "MDc6UmVsZWFzZTE=",
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "immutable": false,
+ "created_at": "2013-02-27T19:35:32Z",
+ "published_at": "2013-02-27T19:35:32Z",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assets": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Release",
+ "description": "A release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "assets_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "upload_url": {
+ "type": "string"
+ },
+ "tarball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "zipball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "tag_name": {
+ "description": "The name of the tag.",
+ "type": "string",
+ "examples": [
+ "v1.0.0"
+ ]
+ },
+ "target_commitish": {
+ "description": "Specifies the commitish value that determines where the Git tag is created from.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "draft": {
+ "description": "true to create a draft (unpublished) release, false to create a published one.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "prerelease": {
+ "description": "Whether to identify the release as a prerelease or a full release.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "immutable": {
+ "description": "Whether or not the release is immutable.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "author": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "branches_url": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "octocat"
]
},
- "collaborators_url": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "MDQ6VXNlcjE="
]
},
- "comments_url": {
+ "avatar_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "commits_url": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://api.github.com/users/octocat"
]
},
- "compare_url": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "contents_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "contributors_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "deployments_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "downloads_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "events_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "forks_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
+ "https://api.github.com/users/octocat/repos"
]
},
- "git_commits_url": {
+ "events_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "git_refs_url": {
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "git_tags_url": {
+ "type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "User"
]
},
- "git_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
"examples": [
- "git:github.com/octocat/Hello-World.git"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "issue_comment_url": {
+ "user_view_type": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "assets": {
+ "type": "array",
+ "items": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
},
- "issue_events_url": {
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "mentions_count": {
+ "type": "integer"
+ },
+ "discussion_url": {
+ "description": "The URL of the release discussion.",
+ "type": "string",
+ "format": "uri"
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ }
+ },
+ "required": [
+ "assets_url",
+ "upload_url",
+ "tarball_url",
+ "zipball_url",
+ "created_at",
+ "published_at",
+ "draft",
+ "id",
+ "node_id",
+ "author",
+ "html_url",
+ "name",
+ "prerelease",
+ "tag_name",
+ "target_commitish",
+ "assets",
+ "url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
+ "title": "Get a release",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a public release with the specified release ID.
\n Note
\n
\nThis returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"Getting started with the REST API .\"
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Note: This returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"Getting started with the REST API .\"
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
+ "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
+ "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
+ "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
+ "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
+ "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
+ "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
+ "id": 1,
+ "node_id": "MDc6UmVsZWFzZTE=",
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "immutable": false,
+ "created_at": "2013-02-27T19:35:32Z",
+ "published_at": "2013-02-27T19:35:32Z",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assets": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Release",
+ "description": "A release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "assets_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "upload_url": {
+ "type": "string"
+ },
+ "tarball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "zipball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "tag_name": {
+ "description": "The name of the tag.",
+ "type": "string",
+ "examples": [
+ "v1.0.0"
+ ]
+ },
+ "target_commitish": {
+ "description": "Specifies the commitish value that determines where the Git tag is created from.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "draft": {
+ "description": "true to create a draft (unpublished) release, false to create a published one.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "prerelease": {
+ "description": "Whether to identify the release as a prerelease or a full release.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "immutable": {
+ "description": "Whether or not the release is immutable.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "author": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "keys_url": {
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "octocat"
]
},
- "labels_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ 1
]
},
- "languages_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "MDQ6VXNlcjE="
]
},
- "merges_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "milestones_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "notifications_url": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://api.github.com/users/octocat"
]
},
- "pulls_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://github.com/octocat"
]
},
- "releases_url": {
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "ssh_url": {
+ "following_url": {
"type": "string",
"examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "stargazers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "statuses_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "subscribers_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "subscription_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "tags_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/repos"
]
},
- "teams_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "trees_url": {
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "clone_url": {
+ "type": {
"type": "string",
"examples": [
- "https://github.com/octocat/Hello-World.git"
+ "User"
]
},
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "hooks_url": {
+ "starred_at": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "svn_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "assets": {
+ "type": "array",
+ "items": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
},
- "homepage": {
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "mentions_count": {
+ "type": "integer"
+ },
+ "discussion_url": {
+ "description": "The URL of the release discussion.",
+ "type": "string",
+ "format": "uri"
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ }
+ },
+ "required": [
+ "assets_url",
+ "upload_url",
+ "tarball_url",
+ "zipball_url",
+ "created_at",
+ "published_at",
+ "draft",
+ "id",
+ "node_id",
+ "author",
+ "html_url",
+ "name",
+ "prerelease",
+ "tag_name",
+ "target_commitish",
+ "assets",
+ "url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Note: This returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see \"Getting started with the REST API .\"
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Unauthorized
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
+ "title": "Update a release",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "tag_name",
+ "in": "body",
+ "description": "The name of the tag.
"
+ },
+ {
+ "type": "string",
+ "name": "target_commitish",
+ "in": "body",
+ "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.
"
+ },
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the release.
"
+ },
+ {
+ "type": "string",
+ "name": "body",
+ "in": "body",
+ "description": "Text describing the contents of the tag.
"
+ },
+ {
+ "type": "boolean",
+ "name": "draft",
+ "in": "body",
+ "description": "true makes the release a draft, and false publishes the release.
"
+ },
+ {
+ "type": "boolean",
+ "name": "prerelease",
+ "in": "body",
+ "description": "true to identify the release as a prerelease, false to identify the release as a full release.
"
+ },
+ {
+ "type": "string",
+ "name": "make_latest",
+ "in": "body",
+ "description": "Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to true for newly published releases. legacy specifies that the latest release should be determined based on the release creation date and higher semantic version.
",
+ "enum": [
+ "true",
+ "false",
+ "legacy"
+ ],
+ "default": true
+ },
+ {
+ "type": "string",
+ "name": "discussion_category_name",
+ "in": "body",
+ "description": "If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see \"Managing categories for discussions in your repository .\"
"
+ }
+ ],
+ "descriptionHTML": "Users with push access to the repository can edit a release.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/1",
+ "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0",
+ "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets",
+ "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
+ "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0",
+ "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0",
+ "discussion_url": "https://github.com/octocat/Hello-World/discussions/90",
+ "id": 1,
+ "node_id": "MDc6UmVsZWFzZTE=",
+ "tag_name": "v1.0.0",
+ "target_commitish": "master",
+ "name": "v1.0.0",
+ "body": "Description of the release",
+ "draft": false,
+ "prerelease": false,
+ "immutable": false,
+ "created_at": "2013-02-27T19:35:32Z",
+ "published_at": "2013-02-27T19:35:32Z",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "assets": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Release",
+ "description": "A release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "assets_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "upload_url": {
+ "type": "string"
+ },
+ "tarball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "zipball_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "tag_name": {
+ "description": "The name of the tag.",
+ "type": "string",
+ "examples": [
+ "v1.0.0"
+ ]
+ },
+ "target_commitish": {
+ "description": "Specifies the commitish value that determines where the Git tag is created from.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "draft": {
+ "description": "true to create a draft (unpublished) release, false to create a published one.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "prerelease": {
+ "description": "Whether to identify the release as a prerelease or a full release.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "immutable": {
+ "description": "Whether or not the release is immutable.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "author": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
]
},
- "language": {
+ "email": {
"type": [
"string",
"null"
]
},
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
+ "login": {
+ "type": "string",
"examples": [
- 80
+ "octocat"
]
},
- "watchers_count": {
+ "id": {
"type": "integer",
+ "format": "int64",
"examples": [
- 80
+ 1
]
},
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
+ "node_id": {
+ "type": "string",
"examples": [
- 108
+ "MDQ6VXNlcjE="
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "avatar_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "master"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "open_issues_count": {
- "type": "integer",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- 0
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
+ "url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat"
]
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://github.com/octocat"
]
},
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/followers"
]
},
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
+ "following_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
+ "gists_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
+ "starred_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "2011-01-26T19:06:43Z"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "2011-01-26T19:01:12Z"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "2011-01-26T19:14:43Z"
+ "https://api.github.com/users/octocat/repos"
]
},
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
+ "events_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- true
+ "https://api.github.com/users/octocat/received_events"
]
},
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
+ "type": {
+ "type": "string",
"examples": [
- false
+ "User"
]
},
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
+ "starred_at": {
+ "type": "string",
"examples": [
- false
+ "\"2020-07-09T00:17:55Z\""
]
},
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
+ "user_view_type": {
"type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "assets": {
+ "type": "array",
+ "items": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
},
- "merge_commit_message": {
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "mentions_count": {
+ "type": "integer"
+ },
+ "discussion_url": {
+ "description": "The URL of the release discussion.",
+ "type": "string",
+ "format": "uri"
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ "format": "uri"
},
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "total_count": {
+ "type": "integer"
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
+ "+1": {
+ "type": "integer"
},
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
+ "-1": {
+ "type": "integer"
},
- "open_issues": {
+ "laugh": {
"type": "integer"
},
- "watchers": {
+ "confused": {
"type": "integer"
},
- "master_branch": {
- "type": "string"
+ "heart": {
+ "type": "integer"
},
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
+ "hooray": {
+ "type": "integer"
},
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
+ "eyes": {
+ "type": "integer"
},
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
+ "rocket": {
+ "type": "integer"
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
"url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
+ }
+ },
+ "required": [
+ "assets_url",
+ "upload_url",
+ "tarball_url",
+ "zipball_url",
+ "created_at",
+ "published_at",
+ "draft",
+ "id",
+ "node_id",
+ "author",
+ "html_url",
+ "name",
+ "prerelease",
+ "tag_name",
+ "target_commitish",
+ "assets",
+ "url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if the discussion category name is invalid
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
+ "title": "Delete a release",
+ "category": "releases",
+ "subcategory": "releases",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Users with push access to the repository can delete a release.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "assets": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
+ "title": "Get a release asset",
+ "category": "releases",
+ "subcategory": "assets",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "asset_id",
+ "description": "The unique identifier of the asset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "To download the asset's binary content:
\n\nIf within a browser, fetch the location specified in the browser_download_url key provided in the response. \nAlternatively, set the Accept header of the request to\napplication/octet-stream .\nThe API will either redirect the client to the location, or stream it directly if possible.\nAPI clients should handle both a 200 or 302 response. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "asset_id": "ASSET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "schema": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
]
},
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "permissions": {
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "pull": {
- "type": "boolean"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "triage": {
- "type": "boolean"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "push": {
- "type": "boolean"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "maintain": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
"type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "admin",
- "pull",
- "push"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "302",
+ "description": "Found
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
+ "title": "Update a release asset",
+ "category": "releases",
+ "subcategory": "assets",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "asset_id",
+ "description": "The unique identifier of the asset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The file name of the asset.
"
+ },
+ {
+ "type": "string",
+ "name": "label",
+ "in": "body",
+ "description": "An alternate short description of the asset. Used in place of the filename.
"
+ },
+ {
+ "type": "string",
+ "name": "state",
+ "in": "body",
+ "description": ""
+ }
+ ],
+ "descriptionHTML": "Users with push access to the repository can edit a release asset.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "foo-1.0.0-osx.zip",
+ "label": "Mac binary"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "asset_id": "ASSET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "schema": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -690711,914 +729012,874 @@
"type",
"url"
]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
+ "title": "Delete a release asset",
+ "category": "releases",
+ "subcategory": "assets",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "asset_id",
+ "description": "The unique identifier of the asset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "asset_id": "ASSET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/assets",
+ "title": "List release assets",
+ "category": "releases",
+ "subcategory": "assets",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
+ ]
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://uploads.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/releases/{release_id}/assets",
+ "title": "Upload a release asset",
+ "category": "releases",
+ "subcategory": "assets",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "release_id",
+ "description": "The unique identifier of the release.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "name",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": ""
+ },
+ {
+ "name": "label",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": ""
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url returned in\nthe response of the Create a release endpoint to upload a release asset.
\nYou need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length header automatically. Use the required Content-Type header to provide the media type of the asset. For a list of media types, see Media Types . For example:
\napplication/zip
\nGitHub Enterprise Cloud expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway status. This may leave an empty asset with a state of starter. It can be safely deleted.
\nNotes:
\n\nGitHub Enterprise Cloud renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The \"List release assets \"\nendpoint lists the renamed filenames. For more information and help, contact GitHub Enterprise Cloud Support . \nTo find the release_id query the GET /repos/{owner}/{repo}/releases/latest endpoint . \nIf you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset. \n ",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/octet-stream",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": "@example.zip",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "release_id": "RELEASE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response for successful upload
",
+ "example": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
+ "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
+ "id": 1,
+ "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
+ "name": "example.zip",
+ "label": "short description",
+ "state": "uploaded",
+ "content_type": "application/zip",
+ "size": 1024,
+ "digest": "sha256:2151b604e3429bff440b9fbc03eb3617bc2603cda96c95b9bb05277f9ddba255",
+ "download_count": 42,
+ "created_at": "2013-02-27T19:35:32Z",
+ "updated_at": "2013-02-27T19:35:32Z",
+ "uploader": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ },
+ "schema": {
+ "title": "Release Asset",
+ "description": "Data related to a release.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "forks": {
+ "browser_download_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "id": {
"type": "integer"
},
- "master_branch": {
+ "node_id": {
"type": "string"
},
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
+ "name": {
+ "description": "The file name of the asset.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
},
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
- ]
- },
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
- }
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
+ "state": {
+ "description": "State of the release asset.",
+ "type": "string",
+ "enum": [
+ "uploaded",
+ "open"
]
},
- "security_and_analysis": {
+ "content_type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "digest": {
"type": [
- "object",
+ "string",
"null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ ]
+ },
+ "download_count": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "uploader": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "status": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "octocat"
]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "MDQ6VXNlcjE="
]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
+ },
+ "avatar_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "html_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "followers_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "following_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "gists_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
- }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
"id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
"name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
+ "content_type",
"size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
+ "digest",
+ "state",
+ "url",
+ "node_id",
+ "download_count",
+ "label",
+ "uploader",
+ "browser_download_url",
"created_at",
- "updated_at",
- "network_count",
- "subscribers_count"
+ "updated_at"
]
}
}
@@ -691627,48 +729888,112 @@
"statusCodes": [
{
"httpStatusCode": "201",
- "description": "Created
"
+ "description": "Response for successful upload
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Response if you upload an asset with the same filename as another uploaded asset
"
}
],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Contents\" repository permissions": "read"
- }
- ]
- }
- },
+ "previews": []
+ }
+ ]
+ },
+ "repos": {
+ "repos": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repositories",
- "title": "List public repositories",
+ "requestPath": "/orgs/{org}/repos",
+ "title": "List organization repositories",
"category": "repos",
"subcategory": "repos",
"parameters": [
{
- "name": "since",
- "description": "A repository ID. Only return repositories with an ID greater than this ID.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "type",
+ "description": "Specifies the types of repositories you want returned. internal is not yet supported when a GitHub App calls this endpoint with an installation access token.
",
"in": "query",
"required": false,
"schema": {
- "type": "integer"
+ "type": "string",
+ "enum": [
+ "all",
+ "private",
+ "forks",
+ "sources",
+ "member",
+ "internal"
+ ]
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "pushed",
+ "full_name"
+ ],
+ "default": "created"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The order to sort by. Default: asc when using full_name, otherwise desc.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists all public repositories in the order that they were created.
\nNote:
\n\nFor GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise. \nPagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of repositories. \n ",
+ "descriptionHTML": "Lists repositories for the specified organization.
\n Note
\n
\nIn order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization .\"
\n
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
},
"response": {
"statusCode": "200",
@@ -691742,7 +730067,56 @@
"tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
"teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
"trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
+ },
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_validity_checks": {
+ "status": "disabled"
+ }
+ }
}
],
"schema": {
@@ -692417,7 +730791,10 @@
"type": "string"
},
"url": {
- "type": "string"
+ "type": [
+ "string",
+ "null"
+ ]
},
"node_id": {
"type": "string"
@@ -692621,14 +730998,6 @@
{
"httpStatusCode": "200",
"description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -692646,1258 +731015,22 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/user/repos",
- "title": "List repositories for the authenticated user",
+ "verb": "post",
+ "requestPath": "/orgs/{org}/repos",
+ "title": "Create an organization repository",
"category": "repos",
"subcategory": "repos",
"parameters": [
{
- "name": "visibility",
- "description": "Limit results to repositories with the specified visibility.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private"
- ],
- "default": "all"
- }
- },
- {
- "name": "affiliation",
- "description": "Comma-separated list of values. Can include:
\n\nowner: Repositories that are owned by the authenticated user. \ncollaborator: Repositories that the user has been added to as a collaborator. \norganization_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. \n ",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "default": "owner,collaborator,organization_member"
- }
- },
- {
- "name": "type",
- "description": "Limit results to repositories of the specified type. Will cause a 422 error if used in the same request as visibility or affiliation .
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "public",
- "private",
- "member"
- ],
- "default": "all"
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- }
- },
- {
- "name": "direction",
- "description": "The order to sort by. Default: asc when using full_name, otherwise desc.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "since",
- "description": "Only show repositories updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "format": "date-time"
- }
- },
- {
- "name": "before",
- "description": "Only show repositories updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
- "in": "query",
- "required": false,
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "format": "date-time"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists repositories that the authenticated user has explicit permission (:read, :write, or :admin) to access.
\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.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Default response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "template_repository": null,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- }
+ "type": "string"
}
}
],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": false,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/user/repos",
- "title": "Create a repository for the authenticated user",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [],
"bodyParameters": [
{
"type": "string",
@@ -693925,32 +731058,50 @@
"description": "Whether the repository is private.
",
"default": false
},
+ {
+ "type": "string",
+ "name": "visibility",
+ "in": "body",
+ "description": "The visibility of the repository.
",
+ "enum": [
+ "public",
+ "private",
+ "internal"
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
"in": "body",
- "description": "Whether issues are enabled.
",
+ "description": "Either true to enable issues for this repository or false to disable them.
",
"default": true
},
{
"type": "boolean",
"name": "has_projects",
"in": "body",
- "description": "Whether projects are enabled.
",
+ "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.
",
"default": true
},
{
"type": "boolean",
"name": "has_wiki",
"in": "body",
- "description": "Whether the wiki is enabled.
",
+ "description": "Either true to enable the wiki for this repository or false to disable it.
",
"default": true
},
{
"type": "boolean",
- "name": "has_discussions",
+ "name": "has_downloads",
"in": "body",
- "description": "Whether discussions are enabled.
",
+ "description": "Whether downloads are enabled.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "is_template",
+ "in": "body",
+ "description": "Either true to make this repo available as a template repository or false to prevent it.
",
"default": false
},
{
@@ -693963,54 +731114,61 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "description": "Whether the repository is initialized with a minimal README.
",
+ "description": "Pass true to create an initial commit with empty README.
",
"default": false
},
{
"type": "string",
"name": "gitignore_template",
"in": "body",
- "description": "The desired language or platform to apply to the .gitignore.
"
+ "description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
"
},
{
"type": "string",
"name": "license_template",
"in": "body",
- "description": "The license keyword of the open source license for this repository.
"
+ "description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
"
},
{
"type": "boolean",
"name": "allow_squash_merge",
"in": "body",
- "description": "Whether to allow squash merges for pull requests.
",
+ "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging.
",
"default": true
},
{
"type": "boolean",
"name": "allow_merge_commit",
"in": "body",
- "description": "Whether to allow merge commits for pull requests.
",
+ "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits.
",
"default": true
},
{
"type": "boolean",
"name": "allow_rebase_merge",
"in": "body",
- "description": "Whether to allow rebase merges for pull requests.
",
+ "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging.
",
"default": true
},
{
"type": "boolean",
"name": "allow_auto_merge",
"in": "body",
- "description": "Whether to allow Auto-merge to be used on pull requests.
",
+ "description": "Either true to allow auto-merge on pull requests, or false to disallow auto-merge.
",
"default": false
},
{
"type": "boolean",
"name": "delete_branch_on_merge",
"in": "body",
- "description": "Whether to delete head branches when pull requests are merged
",
+ "description": "Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion. The authenticated user must be an organization owner to set this property to true.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "use_squash_pr_title_as_default",
+ "in": "body",
+ "description": "Either true to allow squash-merge commits to use pull request title, or false to use commit message. **This property is closing down. Please use squash_merge_commit_title instead.
",
"default": false
},
{
@@ -694056,21 +731214,13 @@
]
},
{
- "type": "boolean",
- "name": "has_downloads",
- "in": "body",
- "description": "Whether downloads are enabled.
",
- "default": true
- },
- {
- "type": "boolean",
- "name": "is_template",
+ "type": "object",
+ "name": "custom_properties",
"in": "body",
- "description": "Whether this repository acts as a template that can be used to generate new repositories.
",
- "default": false
+ "description": "The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.
"
}
],
- "descriptionHTML": "Creates a new repository for the authenticated user.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.
",
+ "descriptionHTML": "Creates a new repository in the specified organization. The authenticated user must be a member of the organization.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.
",
"codeExamples": [
{
"key": "default",
@@ -694080,10 +731230,15 @@
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"name": "Hello-World",
- "description": "This is your first repo!",
+ "description": "This is your first repository",
"homepage": "https://github.com",
"private": false,
- "is_template": true
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true
+ },
+ "parameters": {
+ "org": "ORG"
}
},
"response": {
@@ -698381,2864 +735536,354 @@
"properties": {
"lexical_search_ok": {
"type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "forks": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
- ]
- },
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
- }
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "network_count",
- "subscribers_count"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "401",
- "description": "Requires authentication
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": false,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/users/{username}/repos",
- "title": "List repositories for a user",
- "category": "repos",
- "subcategory": "repos",
- "parameters": [
- {
- "name": "username",
- "description": "The handle for the GitHub user account.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "type",
- "description": "Limit results to repositories of the specified type.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "member"
- ],
- "default": "owner"
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- }
- },
- {
- "name": "direction",
- "description": "The order to sort by. Default: asc when using full_name, otherwise desc.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists public repositories for the specified user.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "username": "USERNAME"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
- },
- "secret_scanning_push_protection": {
- "status": "disabled"
- },
- "secret_scanning_validity_checks": {
- "status": "disabled"
- }
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- }
- ],
- "attestations": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/attestations",
- "title": "Create an attestation",
- "category": "repos",
- "subcategory": "attestations",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "object",
- "name": "bundle",
- "in": "body",
- "description": "The attestation's Sigstore Bundle.\nRefer to the Sigstore Bundle Specification for more information.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "mediaType",
- "description": ""
- },
- {
- "type": "object",
- "name": "verificationMaterial",
- "description": ""
- },
- {
- "type": "object",
- "name": "dsseEnvelope",
- "description": ""
- }
- ]
- }
- ],
- "descriptionHTML": "Store an artifact attestation and associate it with a repository.
\nThe authenticated user must have write permission to the repository and, if using a fine-grained access token, the attestations:write permission is required.
\nArtifact attestations are meant to be created using the attest action . For more information, see our guide on using artifact attestations to establish a build's provenance .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example of a request body",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "value": {
- "bundle": {
- "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
- "verificationMaterial": {
- "tlogEntries": [
- {
- "logIndex": "97913980",
- "logId": {
- "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="
- },
- "kindVersion": {
- "kind": "dsse",
- "version": "0.0.1"
- },
- "integratedTime": "1716998992",
- "inclusionPromise": {
- "signedEntryTimestamp": "MEYCIQCeEsQAy+qXtULkh52wbnHrkt2R2JQ05P9STK/xmdpQ2AIhANiG5Gw6cQiMnwvUz1+9UKtG/vlC8dduq07wsFOViwSL"
- },
- "inclusionProof": {
- "logIndex": "93750549",
- "rootHash": "KgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=",
- "treeSize": "93750551",
- "hashes": [
- "8LI21mzwxnUSo0fuZeFsUrz2ujZ4QAL+oGeTG+5toZg=",
- "nCb369rcIytNhGwWoqBv+eV49X3ZKpo/HJGKm9V+dck=",
- "hnNQ9mUdSwYCfdV21pd87NucrdRRNZATowlaRR1hJ4A=",
- "MBhhK33vlD4Tq/JKgAaXUI4VjmosWKe6+7RNpQ2ncNM=",
- "XKWUE3stvGV1OHsIGiCGfn047Ok6uD4mFkh7BaicaEc=",
- "Tgve40VPFfuei+0nhupdGpfPPR+hPpZjxgTiDT8WNoY=",
- "wV+S/7tLtYGzkLaSb6UDqexNyhMvumHK/RpTNvEZuLU=",
- "uwaWufty6sn6XqO1Tb9M3Vz6sBKPu0HT36mStxJNd7s=",
- "jUfeMOXQP0XF1JAnCEETVbfRKMUwCzrVUzYi8vnDMVs=",
- "xQKjzJAwwdlQG/YUYBKPXxbCmhMYKo1wnv+6vDuKWhQ=",
- "cX3Agx+hP66t1ZLbX/yHbfjU46/3m/VAmWyG/fhxAVc=",
- "sjohk/3DQIfXTgf/5XpwtdF7yNbrf8YykOMHr1CyBYQ=",
- "98enzMaC+x5oCMvIZQA5z8vu2apDMCFvE/935NfuPw8="
- ],
- "checkpoint": {
- "envelope": "rekor.sigstore.dev - 2605736670972794746\\n93750551\\nKgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=\\n\\n— rekor.sigstore.dev wNI9ajBEAiBkLzdjY8A9HReU7rmtjwZ+JpSuYtEr9SmvSwUIW7FBjgIgKo+vhkW3tqc+gc8fw9gza3xLoncA8a+MTaJYCaLGA9c=\\n"
- }
- },
- "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiM2I1YzkwNDk5MGFiYzE4NjI1ZWE3Njg4MzE1OGEwZmI4MTEwMjM4MGJkNjQwZjI5OWJlMzYwZWVkOTMxNjYwYiJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6IjM4ZGNlZDJjMzE1MGU2OTQxMDViYjZiNDNjYjY3NzBiZTYzZDdhNGM4NjNiMTc2YTkwMmU1MGQ5ZTAyN2ZiMjMifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVRQ0lFR0lHQW03Z1pWTExwc3JQY2puZEVqaXVjdEUyL2M5K2o5S0d2YXp6M3JsQWlBZDZPMTZUNWhrelJNM0liUlB6bSt4VDQwbU5RWnhlZmQ3bGFEUDZ4MlhMUT09IiwidmVyaWZpZXIiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VkcVZFTkRRbWhUWjBGM1NVSkJaMGxWVjFsNGNVdHpjazFUTTFOMmJEVkphalZQUkdaQ1owMUtUeTlKZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwUmQwNVVTVFZOVkZsM1QxUlZlVmRvWTA1TmFsRjNUbFJKTlUxVVdYaFBWRlY1VjJwQlFVMUdhM2RGZDFsSUNrdHZXa2w2YWpCRFFWRlpTVXR2V2tsNmFqQkVRVkZqUkZGblFVVmtiV2RvVGs1M00yNVZMMHQxWlZGbmMzQkhTRmMzWjJnNVdFeEVMMWRrU1RoWlRVSUtLekJ3TUZZMGJ6RnJTRzgyWTAweGMwUktaM0pEWjFCUlZYcDRjSFZaZFc4cmVIZFFTSGxzTDJ0RWVXWXpSVXhxYTJGUFEwSlVUWGRuWjFWMlRVRTBSd3BCTVZWa1JIZEZRaTkzVVVWQmQwbElaMFJCVkVKblRsWklVMVZGUkVSQlMwSm5aM0pDWjBWR1FsRmpSRUY2UVdSQ1owNVdTRkUwUlVablVWVnhaa05RQ25aWVMwRjJVelJEWkdoUk1taGlXbGRLVTA5RmRsWnZkMGgzV1VSV1VqQnFRa0puZDBadlFWVXpPVkJ3ZWpGWmEwVmFZalZ4VG1wd1MwWlhhWGhwTkZrS1drUTRkMWRuV1VSV1VqQlNRVkZJTDBKR1FYZFViMXBOWVVoU01HTklUVFpNZVRsdVlWaFNiMlJYU1hWWk1qbDBUREpPYzJGVE9XcGlSMnQyVEcxa2NBcGtSMmd4V1drNU0ySXpTbkphYlhoMlpETk5kbHBIVm5kaVJ6azFZbGRXZFdSRE5UVmlWM2hCWTIxV2JXTjVPVzlhVjBaclkzazVNR051Vm5WaGVrRTFDa0puYjNKQ1owVkZRVmxQTDAxQlJVSkNRM1J2WkVoU2QyTjZiM1pNTTFKMllUSldkVXh0Um1wa1IyeDJZbTVOZFZveWJEQmhTRlpwWkZoT2JHTnRUbllLWW01U2JHSnVVWFZaTWpsMFRVSTRSME5wYzBkQlVWRkNaemM0ZDBGUlNVVkZXR1IyWTIxMGJXSkhPVE5ZTWxKd1l6TkNhR1JIVG05TlJGbEhRMmx6UndwQlVWRkNaemM0ZDBGUlRVVkxSMXBvV2xkWmVWcEhVbXRQUkVacFRVUmplazVxWXpCUFJGRjRUVEpGTTFsNldUQk9iVTVyVFVkS2JWbDZTVEpaZWtGM0NsbFVRWGRIUVZsTFMzZFpRa0pCUjBSMmVrRkNRa0ZSUzFKSFZuZGlSemsxWWxkV2RXUkVRVlpDWjI5eVFtZEZSVUZaVHk5TlFVVkdRa0ZrYW1KSGEzWUtXVEo0Y0UxQ05FZERhWE5IUVZGUlFtYzNPSGRCVVZsRlJVaEtiRnB1VFhaaFIxWm9Xa2hOZG1SSVNqRmliWE4zVDNkWlMwdDNXVUpDUVVkRWRucEJRZ3BEUVZGMFJFTjBiMlJJVW5kamVtOTJURE5TZG1FeVZuVk1iVVpxWkVkc2RtSnVUWFZhTW13d1lVaFdhV1JZVG14amJVNTJZbTVTYkdKdVVYVlpNamwwQ2sxR2QwZERhWE5IUVZGUlFtYzNPSGRCVVd0RlZHZDRUV0ZJVWpCalNFMDJUSGs1Ym1GWVVtOWtWMGwxV1RJNWRFd3lUbk5oVXpscVlrZHJka3h0WkhBS1pFZG9NVmxwT1ROaU0wcHlXbTE0ZG1RelRYWmFSMVozWWtjNU5XSlhWblZrUXpVMVlsZDRRV050Vm0xamVUbHZXbGRHYTJONU9UQmpibFoxWVhwQk5BcENaMjl5UW1kRlJVRlpUeTlOUVVWTFFrTnZUVXRIV21oYVYxbDVXa2RTYTA5RVJtbE5SR042VG1wak1FOUVVWGhOTWtVeldYcFpNRTV0VG10TlIwcHRDbGw2U1RKWmVrRjNXVlJCZDBoUldVdExkMWxDUWtGSFJIWjZRVUpEZDFGUVJFRXhibUZZVW05a1YwbDBZVWM1ZW1SSFZtdE5RMjlIUTJselIwRlJVVUlLWnpjNGQwRlJkMFZJUVhkaFlVaFNNR05JVFRaTWVUbHVZVmhTYjJSWFNYVlpNamwwVERKT2MyRlRPV3BpUjJ0M1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWdwRVVWRnhSRU5vYlZsWFZtMU5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBGSENrTnBjMGRCVVZGQ1p6YzRkMEZSTkVWRlozZFJZMjFXYldONU9XOWFWMFpyWTNrNU1HTnVWblZoZWtGYVFtZHZja0puUlVWQldVOHZUVUZGVUVKQmMwMEtRMVJKZUUxcVdYaE5la0V3VDFSQmJVSm5iM0pDWjBWRlFWbFBMMDFCUlZGQ1FtZE5SbTFvTUdSSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhZ3BpUjJ0M1IwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWUlVVdEVRV2N4VDFSamQwNUVZM2hOVkVKalFtZHZja0puUlVWQldVOHZUVUZGVTBKRk5FMVVSMmd3Q21SSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhbUpIYTNaWk1uaHdUSGsxYm1GWVVtOWtWMGwyWkRJNWVXRXlXbk5pTTJSNlRESlNiR05IZUhZS1pWY3hiR0p1VVhWbFZ6RnpVVWhLYkZwdVRYWmhSMVpvV2toTmRtUklTakZpYlhOM1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWM1VYRkVRMmh0V1ZkV2JRcE5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBWSFEybHpSMEZSVVVKbk56aDNDa0ZTVVVWRmQzZFNaREk1ZVdFeVduTmlNMlJtV2tkc2VtTkhSakJaTW1kM1ZGRlpTMHQzV1VKQ1FVZEVkbnBCUWtaUlVTOUVSREZ2WkVoU2QyTjZiM1lLVERKa2NHUkhhREZaYVRWcVlqSXdkbGt5ZUhCTU1rNXpZVk01YUZrelVuQmlNalY2VEROS01XSnVUWFpQVkVrMFQxUkJNMDVVWXpGTmFUbG9aRWhTYkFwaVdFSXdZM2s0ZUUxQ1dVZERhWE5IUVZGUlFtYzNPSGRCVWxsRlEwRjNSMk5JVm1saVIyeHFUVWxIVEVKbmIzSkNaMFZGUVdSYU5VRm5VVU5DU0RCRkNtVjNRalZCU0dOQk0xUXdkMkZ6WWtoRlZFcHFSMUkwWTIxWFl6TkJjVXBMV0hKcVpWQkxNeTlvTkhCNVowTTRjRGR2TkVGQlFVZFFlRkl4ZW1KblFVRUtRa0ZOUVZORVFrZEJhVVZCS3pobmJGRkplRTlCYUZoQ1FVOVRObE1yT0ZweGQwcGpaSGQzVTNJdlZGZHBhSE16WkV4eFZrRjJiME5KVVVSaWVUbG9NUXBKWTNWRVJYSXJlbk5YYVV3NFVIYzFRMU5VZEd0c2RFbzBNakZ6UlRneFZuWjFOa0Z3VkVGTFFtZG5jV2hyYWs5UVVWRkVRWGRPYmtGRVFtdEJha0VyQ2tSSU4xQXJhR2cwVmtoWFprTlhXSFJ5UzFSdlFrdDFZa0pyUzNCbVYwTlpVWGhxV0UweWRsWXZibEJ4WWxwR1dVOVdXazlpWlRaQlRuSm5lV1J2V1VNS1RVWlZUV0l6ZUhwelJrNVJXWFp6UlZsUGFUSkxibkoyUmpCMFoyOXdiVmhIVm05NmJsb3JjUzh5UVVsRVZ6bEdNVVUzV1RaWk1EWXhaVzkxUVZsa1NBcFhkejA5Q2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLIn1dfX0="
- }
- ],
- "timestampVerificationData": {},
- "certificate": {
- "rawBytes": "MIIGjTCCBhSgAwIBAgIUWYxqKsrMS3Svl5Ij5ODfBgMJO/IwCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwNTI5MTYwOTUyWhcNMjQwNTI5MTYxOTUyWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmghNNw3nU/KueQgspGHW7gh9XLD/WdI8YMB+0p0V4o1kHo6cM1sDJgrCgPQUzxpuYuo+xwPHyl/kDyf3ELjkaOCBTMwggUvMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUqfCPvXKAvS4CdhQ2hbZWJSOEvVowHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wWgYDVR0RAQH/BFAwToZMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA5BgorBgEEAYO/MAEBBCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMB8GCisGAQQBg78wAQIEEXdvcmtmbG93X2Rpc3BhdGNoMDYGCisGAQQBg78wAQMEKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwGAYKKwYBBAGDvzABBAQKRGVwbG95bWVudDAVBgorBgEEAYO/MAEFBAdjbGkvY2xpMB4GCisGAQQBg78wAQYEEHJlZnMvaGVhZHMvdHJ1bmswOwYKKwYBBAGDvzABCAQtDCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMFwGCisGAQQBg78wAQkETgxMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA4BgorBgEEAYO/MAEKBCoMKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwHQYKKwYBBAGDvzABCwQPDA1naXRodWItaG9zdGVkMCoGCisGAQQBg78wAQwEHAwaaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkwOAYKKwYBBAGDvzABDQQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCAGCisGAQQBg78wAQ4EEgwQcmVmcy9oZWFkcy90cnVuazAZBgorBgEEAYO/MAEPBAsMCTIxMjYxMzA0OTAmBgorBgEEAYO/MAEQBBgMFmh0dHBzOi8vZ2l0aHViLmNvbS9jbGkwGAYKKwYBBAGDvzABEQQKDAg1OTcwNDcxMTBcBgorBgEEAYO/MAESBE4MTGh0dHBzOi8vZ2l0aHViLmNvbS9jbGkvY2xpLy5naXRodWIvd29ya2Zsb3dzL2RlcGxveW1lbnQueW1sQHJlZnMvaGVhZHMvdHJ1bmswOAYKKwYBBAGDvzABEwQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCEGCisGAQQBg78wARQEEwwRd29ya2Zsb3dfZGlzcGF0Y2gwTQYKKwYBBAGDvzABFQQ/DD1odHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaS9hY3Rpb25zL3J1bnMvOTI4OTA3NTc1Mi9hdHRlbXB0cy8xMBYGCisGAQQBg78wARYECAwGcHVibGljMIGLBgorBgEEAdZ5AgQCBH0EewB5AHcA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGPxR1zbgAABAMASDBGAiEA+8glQIxOAhXBAOS6S+8ZqwJcdwwSr/TWihs3dLqVAvoCIQDby9h1IcuDEr+zsWiL8Pw5CSTtkltJ421sE81Vvu6ApTAKBggqhkjOPQQDAwNnADBkAjA+DH7P+hh4VHWfCWXtrKToBKubBkKpfWCYQxjXM2vV/nPqbZFYOVZObe6ANrgydoYCMFUMb3xzsFNQYvsEYOi2KnrvF0tgopmXGVoznZ+q/2AIDW9F1E7Y6Y061eouAYdHWw=="
- }
- },
- "dsseEnvelope": {
- "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiZ2hfMi41MC4wX3dpbmRvd3NfYXJtNjQuemlwIiwiZGlnZXN0Ijp7InNoYTI1NiI6IjhhYWQxMjBiNDE2Mzg2YjQyNjllZjYyYzhmZGViY2FkMzFhNzA4NDcyOTc4MTdhMTQ5ZGFmOTI3ZWRjODU1NDgifX1dLCJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YxIiwicHJlZGljYXRlIjp7ImJ1aWxkRGVmaW5pdGlvbiI6eyJidWlsZFR5cGUiOiJodHRwczovL3Nsc2EtZnJhbWV3b3JrLmdpdGh1Yi5pby9naXRodWItYWN0aW9ucy1idWlsZHR5cGVzL3dvcmtmbG93L3YxIiwiZXh0ZXJuYWxQYXJhbWV0ZXJzIjp7IndvcmtmbG93Ijp7InJlZiI6InJlZnMvaGVhZHMvdHJ1bmsiLCJyZXBvc2l0b3J5IjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkiLCJwYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWwifX0sImludGVybmFsUGFyYW1ldGVycyI6eyJnaXRodWIiOnsiZXZlbnRfbmFtZSI6IndvcmtmbG93X2Rpc3BhdGNoIiwicmVwb3NpdG9yeV9pZCI6IjIxMjYxMzA0OSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1OTcwNDcxMSJ9fSwicmVzb2x2ZWREZXBlbmRlbmNpZXMiOlt7InVyaSI6ImdpdCtodHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaUByZWZzL2hlYWRzL3RydW5rIiwiZGlnZXN0Ijp7ImdpdENvbW1pdCI6ImZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAifX1dfSwicnVuRGV0YWlscyI6eyJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly9naXRodWIuY29tL2FjdGlvbnMvcnVubmVyL2dpdGh1Yi1ob3N0ZWQifSwibWV0YWRhdGEiOnsiaW52b2NhdGlvbklkIjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvYWN0aW9ucy9ydW5zLzkyODkwNzU3NTIvYXR0ZW1wdHMvMSJ9fX19",
- "payloadType": "application/vnd.in-toto+json",
- "signatures": [
- {
- "sig": "MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ=="
- }
- ]
- }
- }
- }
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "response
",
- "example": {
- "id": 2
- },
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the attestation."
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Attestations\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/attestations/{subject_digest}",
- "title": "List attestations",
- "category": "repos",
- "subcategory": "attestations",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "subject_digest",
- "description": "The parameter should be set to the attestation's subject's SHA256 digest, in the form sha256:HEX_DIGEST.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- },
- {
- "name": "predicate_type",
- "description": "Optional filter for fetching attestations with a given predicate type.\nThis option accepts provenance, sbom, release, or freeform text\nfor custom predicate types.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List a collection of artifact attestations with a given subject digest that are associated with a repository.
\nThe authenticated user making the request must have read access to the repository. In addition, when using a fine-grained access token the attestations:read permission is required.
\nPlease note: in order to offer meaningful security benefits, an attestation's signature and timestamps must be cryptographically verified, and the identity of the attestation signer must be validated. Attestations can be verified using the GitHub CLI attestation verify command . For more information, see our guide on how to use artifact attestations to establish a build's provenance .
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "subject_digest": "SUBJECT_DIGEST"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "attestations": [
- {
- "bundle": {
- "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
- "verificationMaterial": {
- "tlogEntries": [
- {
- "logIndex": "97913980",
- "logId": {
- "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="
- },
- "kindVersion": {
- "kind": "dsse",
- "version": "0.0.1"
- },
- "integratedTime": "1716998992",
- "inclusionPromise": {
- "signedEntryTimestamp": "MEYCIQCeEsQAy+qXtULkh52wbnHrkt2R2JQ05P9STK/xmdpQ2AIhANiG5Gw6cQiMnwvUz1+9UKtG/vlC8dduq07wsFOViwSL"
- },
- "inclusionProof": {
- "logIndex": "93750549",
- "rootHash": "KgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=",
- "treeSize": "93750551",
- "hashes": [
- "8LI21mzwxnUSo0fuZeFsUrz2ujZ4QAL+oGeTG+5toZg=",
- "nCb369rcIytNhGwWoqBv+eV49X3ZKpo/HJGKm9V+dck=",
- "hnNQ9mUdSwYCfdV21pd87NucrdRRNZATowlaRR1hJ4A=",
- "MBhhK33vlD4Tq/JKgAaXUI4VjmosWKe6+7RNpQ2ncNM=",
- "XKWUE3stvGV1OHsIGiCGfn047Ok6uD4mFkh7BaicaEc=",
- "Tgve40VPFfuei+0nhupdGpfPPR+hPpZjxgTiDT8WNoY=",
- "wV+S/7tLtYGzkLaSb6UDqexNyhMvumHK/RpTNvEZuLU=",
- "uwaWufty6sn6XqO1Tb9M3Vz6sBKPu0HT36mStxJNd7s=",
- "jUfeMOXQP0XF1JAnCEETVbfRKMUwCzrVUzYi8vnDMVs=",
- "xQKjzJAwwdlQG/YUYBKPXxbCmhMYKo1wnv+6vDuKWhQ=",
- "cX3Agx+hP66t1ZLbX/yHbfjU46/3m/VAmWyG/fhxAVc=",
- "sjohk/3DQIfXTgf/5XpwtdF7yNbrf8YykOMHr1CyBYQ=",
- "98enzMaC+x5oCMvIZQA5z8vu2apDMCFvE/935NfuPw8="
- ],
- "checkpoint": {
- "envelope": "rekor.sigstore.dev - 2605736670972794746\\n93750551\\nKgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=\\n\\n— rekor.sigstore.dev wNI9ajBEAiBkLzdjY8A9HReU7rmtjwZ+JpSuYtEr9SmvSwUIW7FBjgIgKo+vhkW3tqc+gc8fw9gza3xLoncA8a+MTaJYCaLGA9c=\\n"
- }
- },
- "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiM2I1YzkwNDk5MGFiYzE4NjI1ZWE3Njg4MzE1OGEwZmI4MTEwMjM4MGJkNjQwZjI5OWJlMzYwZWVkOTMxNjYwYiJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6IjM4ZGNlZDJjMzE1MGU2OTQxMDViYjZiNDNjYjY3NzBiZTYzZDdhNGM4NjNiMTc2YTkwMmU1MGQ5ZTAyN2ZiMjMifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVRQ0lFR0lHQW03Z1pWTExwc3JQY2puZEVqaXVjdEUyL2M5K2o5S0d2YXp6M3JsQWlBZDZPMTZUNWhrelJNM0liUlB6bSt4VDQwbU5RWnhlZmQ3bGFEUDZ4MlhMUT09IiwidmVyaWZpZXIiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VkcVZFTkRRbWhUWjBGM1NVSkJaMGxWVjFsNGNVdHpjazFUTTFOMmJEVkphalZQUkdaQ1owMUtUeTlKZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwUmQwNVVTVFZOVkZsM1QxUlZlVmRvWTA1TmFsRjNUbFJKTlUxVVdYaFBWRlY1VjJwQlFVMUdhM2RGZDFsSUNrdHZXa2w2YWpCRFFWRlpTVXR2V2tsNmFqQkVRVkZqUkZGblFVVmtiV2RvVGs1M00yNVZMMHQxWlZGbmMzQkhTRmMzWjJnNVdFeEVMMWRrU1RoWlRVSUtLekJ3TUZZMGJ6RnJTRzgyWTAweGMwUktaM0pEWjFCUlZYcDRjSFZaZFc4cmVIZFFTSGxzTDJ0RWVXWXpSVXhxYTJGUFEwSlVUWGRuWjFWMlRVRTBSd3BCTVZWa1JIZEZRaTkzVVVWQmQwbElaMFJCVkVKblRsWklVMVZGUkVSQlMwSm5aM0pDWjBWR1FsRmpSRUY2UVdSQ1owNVdTRkUwUlVablVWVnhaa05RQ25aWVMwRjJVelJEWkdoUk1taGlXbGRLVTA5RmRsWnZkMGgzV1VSV1VqQnFRa0puZDBadlFWVXpPVkJ3ZWpGWmEwVmFZalZ4VG1wd1MwWlhhWGhwTkZrS1drUTRkMWRuV1VSV1VqQlNRVkZJTDBKR1FYZFViMXBOWVVoU01HTklUVFpNZVRsdVlWaFNiMlJYU1hWWk1qbDBUREpPYzJGVE9XcGlSMnQyVEcxa2NBcGtSMmd4V1drNU0ySXpTbkphYlhoMlpETk5kbHBIVm5kaVJ6azFZbGRXZFdSRE5UVmlWM2hCWTIxV2JXTjVPVzlhVjBaclkzazVNR051Vm5WaGVrRTFDa0puYjNKQ1owVkZRVmxQTDAxQlJVSkNRM1J2WkVoU2QyTjZiM1pNTTFKMllUSldkVXh0Um1wa1IyeDJZbTVOZFZveWJEQmhTRlpwWkZoT2JHTnRUbllLWW01U2JHSnVVWFZaTWpsMFRVSTRSME5wYzBkQlVWRkNaemM0ZDBGUlNVVkZXR1IyWTIxMGJXSkhPVE5ZTWxKd1l6TkNhR1JIVG05TlJGbEhRMmx6UndwQlVWRkNaemM0ZDBGUlRVVkxSMXBvV2xkWmVWcEhVbXRQUkVacFRVUmplazVxWXpCUFJGRjRUVEpGTTFsNldUQk9iVTVyVFVkS2JWbDZTVEpaZWtGM0NsbFVRWGRIUVZsTFMzZFpRa0pCUjBSMmVrRkNRa0ZSUzFKSFZuZGlSemsxWWxkV2RXUkVRVlpDWjI5eVFtZEZSVUZaVHk5TlFVVkdRa0ZrYW1KSGEzWUtXVEo0Y0UxQ05FZERhWE5IUVZGUlFtYzNPSGRCVVZsRlJVaEtiRnB1VFhaaFIxWm9Xa2hOZG1SSVNqRmliWE4zVDNkWlMwdDNXVUpDUVVkRWRucEJRZ3BEUVZGMFJFTjBiMlJJVW5kamVtOTJURE5TZG1FeVZuVk1iVVpxWkVkc2RtSnVUWFZhTW13d1lVaFdhV1JZVG14amJVNTJZbTVTYkdKdVVYVlpNamwwQ2sxR2QwZERhWE5IUVZGUlFtYzNPSGRCVVd0RlZHZDRUV0ZJVWpCalNFMDJUSGs1Ym1GWVVtOWtWMGwxV1RJNWRFd3lUbk5oVXpscVlrZHJka3h0WkhBS1pFZG9NVmxwT1ROaU0wcHlXbTE0ZG1RelRYWmFSMVozWWtjNU5XSlhWblZrUXpVMVlsZDRRV050Vm0xamVUbHZXbGRHYTJONU9UQmpibFoxWVhwQk5BcENaMjl5UW1kRlJVRlpUeTlOUVVWTFFrTnZUVXRIV21oYVYxbDVXa2RTYTA5RVJtbE5SR042VG1wak1FOUVVWGhOTWtVeldYcFpNRTV0VG10TlIwcHRDbGw2U1RKWmVrRjNXVlJCZDBoUldVdExkMWxDUWtGSFJIWjZRVUpEZDFGUVJFRXhibUZZVW05a1YwbDBZVWM1ZW1SSFZtdE5RMjlIUTJselIwRlJVVUlLWnpjNGQwRlJkMFZJUVhkaFlVaFNNR05JVFRaTWVUbHVZVmhTYjJSWFNYVlpNamwwVERKT2MyRlRPV3BpUjJ0M1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWdwRVVWRnhSRU5vYlZsWFZtMU5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBGSENrTnBjMGRCVVZGQ1p6YzRkMEZSTkVWRlozZFJZMjFXYldONU9XOWFWMFpyWTNrNU1HTnVWblZoZWtGYVFtZHZja0puUlVWQldVOHZUVUZGVUVKQmMwMEtRMVJKZUUxcVdYaE5la0V3VDFSQmJVSm5iM0pDWjBWRlFWbFBMMDFCUlZGQ1FtZE5SbTFvTUdSSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhZ3BpUjJ0M1IwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWUlVVdEVRV2N4VDFSamQwNUVZM2hOVkVKalFtZHZja0puUlVWQldVOHZUVUZGVTBKRk5FMVVSMmd3Q21SSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhbUpIYTNaWk1uaHdUSGsxYm1GWVVtOWtWMGwyWkRJNWVXRXlXbk5pTTJSNlRESlNiR05IZUhZS1pWY3hiR0p1VVhWbFZ6RnpVVWhLYkZwdVRYWmhSMVpvV2toTmRtUklTakZpYlhOM1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWM1VYRkVRMmh0V1ZkV2JRcE5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBWSFEybHpSMEZSVVVKbk56aDNDa0ZTVVVWRmQzZFNaREk1ZVdFeVduTmlNMlJtV2tkc2VtTkhSakJaTW1kM1ZGRlpTMHQzV1VKQ1FVZEVkbnBCUWtaUlVTOUVSREZ2WkVoU2QyTjZiM1lLVERKa2NHUkhhREZaYVRWcVlqSXdkbGt5ZUhCTU1rNXpZVk01YUZrelVuQmlNalY2VEROS01XSnVUWFpQVkVrMFQxUkJNMDVVWXpGTmFUbG9aRWhTYkFwaVdFSXdZM2s0ZUUxQ1dVZERhWE5IUVZGUlFtYzNPSGRCVWxsRlEwRjNSMk5JVm1saVIyeHFUVWxIVEVKbmIzSkNaMFZGUVdSYU5VRm5VVU5DU0RCRkNtVjNRalZCU0dOQk0xUXdkMkZ6WWtoRlZFcHFSMUkwWTIxWFl6TkJjVXBMV0hKcVpWQkxNeTlvTkhCNVowTTRjRGR2TkVGQlFVZFFlRkl4ZW1KblFVRUtRa0ZOUVZORVFrZEJhVVZCS3pobmJGRkplRTlCYUZoQ1FVOVRObE1yT0ZweGQwcGpaSGQzVTNJdlZGZHBhSE16WkV4eFZrRjJiME5KVVVSaWVUbG9NUXBKWTNWRVJYSXJlbk5YYVV3NFVIYzFRMU5VZEd0c2RFbzBNakZ6UlRneFZuWjFOa0Z3VkVGTFFtZG5jV2hyYWs5UVVWRkVRWGRPYmtGRVFtdEJha0VyQ2tSSU4xQXJhR2cwVmtoWFprTlhXSFJ5UzFSdlFrdDFZa0pyUzNCbVYwTlpVWGhxV0UweWRsWXZibEJ4WWxwR1dVOVdXazlpWlRaQlRuSm5lV1J2V1VNS1RVWlZUV0l6ZUhwelJrNVJXWFp6UlZsUGFUSkxibkoyUmpCMFoyOXdiVmhIVm05NmJsb3JjUzh5UVVsRVZ6bEdNVVUzV1RaWk1EWXhaVzkxUVZsa1NBcFhkejA5Q2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLIn1dfX0="
- }
- ],
- "timestampVerificationData": {},
- "certificate": {
- "rawBytes": "MIIGjTCCBhSgAwIBAgIUWYxqKsrMS3Svl5Ij5ODfBgMJO/IwCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwNTI5MTYwOTUyWhcNMjQwNTI5MTYxOTUyWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmghNNw3nU/KueQgspGHW7gh9XLD/WdI8YMB+0p0V4o1kHo6cM1sDJgrCgPQUzxpuYuo+xwPHyl/kDyf3ELjkaOCBTMwggUvMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUqfCPvXKAvS4CdhQ2hbZWJSOEvVowHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wWgYDVR0RAQH/BFAwToZMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA5BgorBgEEAYO/MAEBBCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMB8GCisGAQQBg78wAQIEEXdvcmtmbG93X2Rpc3BhdGNoMDYGCisGAQQBg78wAQMEKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwGAYKKwYBBAGDvzABBAQKRGVwbG95bWVudDAVBgorBgEEAYO/MAEFBAdjbGkvY2xpMB4GCisGAQQBg78wAQYEEHJlZnMvaGVhZHMvdHJ1bmswOwYKKwYBBAGDvzABCAQtDCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMFwGCisGAQQBg78wAQkETgxMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA4BgorBgEEAYO/MAEKBCoMKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwHQYKKwYBBAGDvzABCwQPDA1naXRodWItaG9zdGVkMCoGCisGAQQBg78wAQwEHAwaaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkwOAYKKwYBBAGDvzABDQQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCAGCisGAQQBg78wAQ4EEgwQcmVmcy9oZWFkcy90cnVuazAZBgorBgEEAYO/MAEPBAsMCTIxMjYxMzA0OTAmBgorBgEEAYO/MAEQBBgMFmh0dHBzOi8vZ2l0aHViLmNvbS9jbGkwGAYKKwYBBAGDvzABEQQKDAg1OTcwNDcxMTBcBgorBgEEAYO/MAESBE4MTGh0dHBzOi8vZ2l0aHViLmNvbS9jbGkvY2xpLy5naXRodWIvd29ya2Zsb3dzL2RlcGxveW1lbnQueW1sQHJlZnMvaGVhZHMvdHJ1bmswOAYKKwYBBAGDvzABEwQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCEGCisGAQQBg78wARQEEwwRd29ya2Zsb3dfZGlzcGF0Y2gwTQYKKwYBBAGDvzABFQQ/DD1odHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaS9hY3Rpb25zL3J1bnMvOTI4OTA3NTc1Mi9hdHRlbXB0cy8xMBYGCisGAQQBg78wARYECAwGcHVibGljMIGLBgorBgEEAdZ5AgQCBH0EewB5AHcA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGPxR1zbgAABAMASDBGAiEA+8glQIxOAhXBAOS6S+8ZqwJcdwwSr/TWihs3dLqVAvoCIQDby9h1IcuDEr+zsWiL8Pw5CSTtkltJ421sE81Vvu6ApTAKBggqhkjOPQQDAwNnADBkAjA+DH7P+hh4VHWfCWXtrKToBKubBkKpfWCYQxjXM2vV/nPqbZFYOVZObe6ANrgydoYCMFUMb3xzsFNQYvsEYOi2KnrvF0tgopmXGVoznZ+q/2AIDW9F1E7Y6Y061eouAYdHWw=="
- }
- },
- "dsseEnvelope": {
- "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiZ2hfMi41MC4wX3dpbmRvd3NfYXJtNjQuemlwIiwiZGlnZXN0Ijp7InNoYTI1NiI6IjhhYWQxMjBiNDE2Mzg2YjQyNjllZjYyYzhmZGViY2FkMzFhNzA4NDcyOTc4MTdhMTQ5ZGFmOTI3ZWRjODU1NDgifX1dLCJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YxIiwicHJlZGljYXRlIjp7ImJ1aWxkRGVmaW5pdGlvbiI6eyJidWlsZFR5cGUiOiJodHRwczovL3Nsc2EtZnJhbWV3b3JrLmdpdGh1Yi5pby9naXRodWItYWN0aW9ucy1idWlsZHR5cGVzL3dvcmtmbG93L3YxIiwiZXh0ZXJuYWxQYXJhbWV0ZXJzIjp7IndvcmtmbG93Ijp7InJlZiI6InJlZnMvaGVhZHMvdHJ1bmsiLCJyZXBvc2l0b3J5IjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkiLCJwYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWwifX0sImludGVybmFsUGFyYW1ldGVycyI6eyJnaXRodWIiOnsiZXZlbnRfbmFtZSI6IndvcmtmbG93X2Rpc3BhdGNoIiwicmVwb3NpdG9yeV9pZCI6IjIxMjYxMzA0OSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1OTcwNDcxMSJ9fSwicmVzb2x2ZWREZXBlbmRlbmNpZXMiOlt7InVyaSI6ImdpdCtodHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaUByZWZzL2hlYWRzL3RydW5rIiwiZGlnZXN0Ijp7ImdpdENvbW1pdCI6ImZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAifX1dfSwicnVuRGV0YWlscyI6eyJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly9naXRodWIuY29tL2FjdGlvbnMvcnVubmVyL2dpdGh1Yi1ob3N0ZWQifSwibWV0YWRhdGEiOnsiaW52b2NhdGlvbklkIjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvYWN0aW9ucy9ydW5zLzkyODkwNzU3NTIvYXR0ZW1wdHMvMSJ9fX19",
- "payloadType": "application/vnd.in-toto+json",
- "signatures": [
- {
- "sig": "MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ=="
- }
- ]
- }
- },
- "repository_id": 1
- },
- {
- "bundle": {
- "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
- "verificationMaterial": {
- "tlogEntries": [
- {
- "logIndex": "97913980",
- "logId": {
- "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="
- },
- "kindVersion": {
- "kind": "dsse",
- "version": "0.0.1"
- },
- "integratedTime": "1716998992",
- "inclusionPromise": {
- "signedEntryTimestamp": "MEYCIQCeEsQAy+qXtULkh52wbnHrkt2R2JQ05P9STK/xmdpQ2AIhANiG5Gw6cQiMnwvUz1+9UKtG/vlC8dduq07wsFOViwSL"
- },
- "inclusionProof": {
- "logIndex": "93750549",
- "rootHash": "KgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=",
- "treeSize": "93750551",
- "hashes": [
- "8LI21mzwxnUSo0fuZeFsUrz2ujZ4QAL+oGeTG+5toZg=",
- "nCb369rcIytNhGwWoqBv+eV49X3ZKpo/HJGKm9V+dck=",
- "hnNQ9mUdSwYCfdV21pd87NucrdRRNZATowlaRR1hJ4A=",
- "MBhhK33vlD4Tq/JKgAaXUI4VjmosWKe6+7RNpQ2ncNM=",
- "XKWUE3stvGV1OHsIGiCGfn047Ok6uD4mFkh7BaicaEc=",
- "Tgve40VPFfuei+0nhupdGpfPPR+hPpZjxgTiDT8WNoY=",
- "wV+S/7tLtYGzkLaSb6UDqexNyhMvumHK/RpTNvEZuLU=",
- "uwaWufty6sn6XqO1Tb9M3Vz6sBKPu0HT36mStxJNd7s=",
- "jUfeMOXQP0XF1JAnCEETVbfRKMUwCzrVUzYi8vnDMVs=",
- "xQKjzJAwwdlQG/YUYBKPXxbCmhMYKo1wnv+6vDuKWhQ=",
- "cX3Agx+hP66t1ZLbX/yHbfjU46/3m/VAmWyG/fhxAVc=",
- "sjohk/3DQIfXTgf/5XpwtdF7yNbrf8YykOMHr1CyBYQ=",
- "98enzMaC+x5oCMvIZQA5z8vu2apDMCFvE/935NfuPw8="
- ],
- "checkpoint": {
- "envelope": "rekor.sigstore.dev - 2605736670972794746\\n93750551\\nKgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=\\n\\n— rekor.sigstore.dev wNI9ajBEAiBkLzdjY8A9HReU7rmtjwZ+JpSuYtEr9SmvSwUIW7FBjgIgKo+vhkW3tqc+gc8fw9gza3xLoncA8a+MTaJYCaLGA9c=\\n"
- }
- },
- "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiM2I1YzkwNDk5MGFiYzE4NjI1ZWE3Njg4MzE1OGEwZmI4MTEwMjM4MGJkNjQwZjI5OWJlMzYwZWVkOTMxNjYwYiJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6IjM4ZGNlZDJjMzE1MGU2OTQxMDViYjZiNDNjYjY3NzBiZTYzZDdhNGM4NjNiMTc2YTkwMmU1MGQ5ZTAyN2ZiMjMifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVRQ0lFR0lHQW03Z1pWTExwc3JQY2puZEVqaXVjdEUyL2M5K2o5S0d2YXp6M3JsQWlBZDZPMTZUNWhrelJNM0liUlB6bSt4VDQwbU5RWnhlZmQ3bGFEUDZ4MlhMUT09IiwidmVyaWZpZXIiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VkcVZFTkRRbWhUWjBGM1NVSkJaMGxWVjFsNGNVdHpjazFUTTFOMmJEVkphalZQUkdaQ1owMUtUeTlKZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwUmQwNVVTVFZOVkZsM1QxUlZlVmRvWTA1TmFsRjNUbFJKTlUxVVdYaFBWRlY1VjJwQlFVMUdhM2RGZDFsSUNrdHZXa2w2YWpCRFFWRlpTVXR2V2tsNmFqQkVRVkZqUkZGblFVVmtiV2RvVGs1M00yNVZMMHQxWlZGbmMzQkhTRmMzWjJnNVdFeEVMMWRrU1RoWlRVSUtLekJ3TUZZMGJ6RnJTRzgyWTAweGMwUktaM0pEWjFCUlZYcDRjSFZaZFc4cmVIZFFTSGxzTDJ0RWVXWXpSVXhxYTJGUFEwSlVUWGRuWjFWMlRVRTBSd3BCTVZWa1JIZEZRaTkzVVVWQmQwbElaMFJCVkVKblRsWklVMVZGUkVSQlMwSm5aM0pDWjBWR1FsRmpSRUY2UVdSQ1owNVdTRkUwUlVablVWVnhaa05RQ25aWVMwRjJVelJEWkdoUk1taGlXbGRLVTA5RmRsWnZkMGgzV1VSV1VqQnFRa0puZDBadlFWVXpPVkJ3ZWpGWmEwVmFZalZ4VG1wd1MwWlhhWGhwTkZrS1drUTRkMWRuV1VSV1VqQlNRVkZJTDBKR1FYZFViMXBOWVVoU01HTklUVFpNZVRsdVlWaFNiMlJYU1hWWk1qbDBUREpPYzJGVE9XcGlSMnQyVEcxa2NBcGtSMmd4V1drNU0ySXpTbkphYlhoMlpETk5kbHBIVm5kaVJ6azFZbGRXZFdSRE5UVmlWM2hCWTIxV2JXTjVPVzlhVjBaclkzazVNR051Vm5WaGVrRTFDa0puYjNKQ1owVkZRVmxQTDAxQlJVSkNRM1J2WkVoU2QyTjZiM1pNTTFKMllUSldkVXh0Um1wa1IyeDJZbTVOZFZveWJEQmhTRlpwWkZoT2JHTnRUbllLWW01U2JHSnVVWFZaTWpsMFRVSTRSME5wYzBkQlVWRkNaemM0ZDBGUlNVVkZXR1IyWTIxMGJXSkhPVE5ZTWxKd1l6TkNhR1JIVG05TlJGbEhRMmx6UndwQlVWRkNaemM0ZDBGUlRVVkxSMXBvV2xkWmVWcEhVbXRQUkVacFRVUmplazVxWXpCUFJGRjRUVEpGTTFsNldUQk9iVTVyVFVkS2JWbDZTVEpaZWtGM0NsbFVRWGRIUVZsTFMzZFpRa0pCUjBSMmVrRkNRa0ZSUzFKSFZuZGlSemsxWWxkV2RXUkVRVlpDWjI5eVFtZEZSVUZaVHk5TlFVVkdRa0ZrYW1KSGEzWUtXVEo0Y0UxQ05FZERhWE5IUVZGUlFtYzNPSGRCVVZsRlJVaEtiRnB1VFhaaFIxWm9Xa2hOZG1SSVNqRmliWE4zVDNkWlMwdDNXVUpDUVVkRWRucEJRZ3BEUVZGMFJFTjBiMlJJVW5kamVtOTJURE5TZG1FeVZuVk1iVVpxWkVkc2RtSnVUWFZhTW13d1lVaFdhV1JZVG14amJVNTJZbTVTYkdKdVVYVlpNamwwQ2sxR2QwZERhWE5IUVZGUlFtYzNPSGRCVVd0RlZHZDRUV0ZJVWpCalNFMDJUSGs1Ym1GWVVtOWtWMGwxV1RJNWRFd3lUbk5oVXpscVlrZHJka3h0WkhBS1pFZG9NVmxwT1ROaU0wcHlXbTE0ZG1RelRYWmFSMVozWWtjNU5XSlhWblZrUXpVMVlsZDRRV050Vm0xamVUbHZXbGRHYTJONU9UQmpibFoxWVhwQk5BcENaMjl5UW1kRlJVRlpUeTlOUVVWTFFrTnZUVXRIV21oYVYxbDVXa2RTYTA5RVJtbE5SR042VG1wak1FOUVVWGhOTWtVeldYcFpNRTV0VG10TlIwcHRDbGw2U1RKWmVrRjNXVlJCZDBoUldVdExkMWxDUWtGSFJIWjZRVUpEZDFGUVJFRXhibUZZVW05a1YwbDBZVWM1ZW1SSFZtdE5RMjlIUTJselIwRlJVVUlLWnpjNGQwRlJkMFZJUVhkaFlVaFNNR05JVFRaTWVUbHVZVmhTYjJSWFNYVlpNamwwVERKT2MyRlRPV3BpUjJ0M1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWdwRVVWRnhSRU5vYlZsWFZtMU5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBGSENrTnBjMGRCVVZGQ1p6YzRkMEZSTkVWRlozZFJZMjFXYldONU9XOWFWMFpyWTNrNU1HTnVWblZoZWtGYVFtZHZja0puUlVWQldVOHZUVUZGVUVKQmMwMEtRMVJKZUUxcVdYaE5la0V3VDFSQmJVSm5iM0pDWjBWRlFWbFBMMDFCUlZGQ1FtZE5SbTFvTUdSSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhZ3BpUjJ0M1IwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWUlVVdEVRV2N4VDFSamQwNUVZM2hOVkVKalFtZHZja0puUlVWQldVOHZUVUZGVTBKRk5FMVVSMmd3Q21SSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhbUpIYTNaWk1uaHdUSGsxYm1GWVVtOWtWMGwyWkRJNWVXRXlXbk5pTTJSNlRESlNiR05IZUhZS1pWY3hiR0p1VVhWbFZ6RnpVVWhLYkZwdVRYWmhSMVpvV2toTmRtUklTakZpYlhOM1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWM1VYRkVRMmh0V1ZkV2JRcE5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBWSFEybHpSMEZSVVVKbk56aDNDa0ZTVVVWRmQzZFNaREk1ZVdFeVduTmlNMlJtV2tkc2VtTkhSakJaTW1kM1ZGRlpTMHQzV1VKQ1FVZEVkbnBCUWtaUlVTOUVSREZ2WkVoU2QyTjZiM1lLVERKa2NHUkhhREZaYVRWcVlqSXdkbGt5ZUhCTU1rNXpZVk01YUZrelVuQmlNalY2VEROS01XSnVUWFpQVkVrMFQxUkJNMDVVWXpGTmFUbG9aRWhTYkFwaVdFSXdZM2s0ZUUxQ1dVZERhWE5IUVZGUlFtYzNPSGRCVWxsRlEwRjNSMk5JVm1saVIyeHFUVWxIVEVKbmIzSkNaMFZGUVdSYU5VRm5VVU5DU0RCRkNtVjNRalZCU0dOQk0xUXdkMkZ6WWtoRlZFcHFSMUkwWTIxWFl6TkJjVXBMV0hKcVpWQkxNeTlvTkhCNVowTTRjRGR2TkVGQlFVZFFlRkl4ZW1KblFVRUtRa0ZOUVZORVFrZEJhVVZCS3pobmJGRkplRTlCYUZoQ1FVOVRObE1yT0ZweGQwcGpaSGQzVTNJdlZGZHBhSE16WkV4eFZrRjJiME5KVVVSaWVUbG9NUXBKWTNWRVJYSXJlbk5YYVV3NFVIYzFRMU5VZEd0c2RFbzBNakZ6UlRneFZuWjFOa0Z3VkVGTFFtZG5jV2hyYWs5UVVWRkVRWGRPYmtGRVFtdEJha0VyQ2tSSU4xQXJhR2cwVmtoWFprTlhXSFJ5UzFSdlFrdDFZa0pyUzNCbVYwTlpVWGhxV0UweWRsWXZibEJ4WWxwR1dVOVdXazlpWlRaQlRuSm5lV1J2V1VNS1RVWlZUV0l6ZUhwelJrNVJXWFp6UlZsUGFUSkxibkoyUmpCMFoyOXdiVmhIVm05NmJsb3JjUzh5UVVsRVZ6bEdNVVUzV1RaWk1EWXhaVzkxUVZsa1NBcFhkejA5Q2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLIn1dfX0="
- }
- ],
- "timestampVerificationData": {},
- "certificate": {
- "rawBytes": "MIIGjTCCBhSgAwIBAgIUWYxqKsrMS3Svl5Ij5ODfBgMJO/IwCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwNTI5MTYwOTUyWhcNMjQwNTI5MTYxOTUyWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmghNNw3nU/KueQgspGHW7gh9XLD/WdI8YMB+0p0V4o1kHo6cM1sDJgrCgPQUzxpuYuo+xwPHyl/kDyf3ELjkaOCBTMwggUvMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUqfCPvXKAvS4CdhQ2hbZWJSOEvVowHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wWgYDVR0RAQH/BFAwToZMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA5BgorBgEEAYO/MAEBBCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMB8GCisGAQQBg78wAQIEEXdvcmtmbG93X2Rpc3BhdGNoMDYGCisGAQQBg78wAQMEKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwGAYKKwYBBAGDvzABBAQKRGVwbG95bWVudDAVBgorBgEEAYO/MAEFBAdjbGkvY2xpMB4GCisGAQQBg78wAQYEEHJlZnMvaGVhZHMvdHJ1bmswOwYKKwYBBAGDvzABCAQtDCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMFwGCisGAQQBg78wAQkETgxMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA4BgorBgEEAYO/MAEKBCoMKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwHQYKKwYBBAGDvzABCwQPDA1naXRodWItaG9zdGVkMCoGCisGAQQBg78wAQwEHAwaaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkwOAYKKwYBBAGDvzABDQQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCAGCisGAQQBg78wAQ4EEgwQcmVmcy9oZWFkcy90cnVuazAZBgorBgEEAYO/MAEPBAsMCTIxMjYxMzA0OTAmBgorBgEEAYO/MAEQBBgMFmh0dHBzOi8vZ2l0aHViLmNvbS9jbGkwGAYKKwYBBAGDvzABEQQKDAg1OTcwNDcxMTBcBgorBgEEAYO/MAESBE4MTGh0dHBzOi8vZ2l0aHViLmNvbS9jbGkvY2xpLy5naXRodWIvd29ya2Zsb3dzL2RlcGxveW1lbnQueW1sQHJlZnMvaGVhZHMvdHJ1bmswOAYKKwYBBAGDvzABEwQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCEGCisGAQQBg78wARQEEwwRd29ya2Zsb3dfZGlzcGF0Y2gwTQYKKwYBBAGDvzABFQQ/DD1odHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaS9hY3Rpb25zL3J1bnMvOTI4OTA3NTc1Mi9hdHRlbXB0cy8xMBYGCisGAQQBg78wARYECAwGcHVibGljMIGLBgorBgEEAdZ5AgQCBH0EewB5AHcA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGPxR1zbgAABAMASDBGAiEA+8glQIxOAhXBAOS6S+8ZqwJcdwwSr/TWihs3dLqVAvoCIQDby9h1IcuDEr+zsWiL8Pw5CSTtkltJ421sE81Vvu6ApTAKBggqhkjOPQQDAwNnADBkAjA+DH7P+hh4VHWfCWXtrKToBKubBkKpfWCYQxjXM2vV/nPqbZFYOVZObe6ANrgydoYCMFUMb3xzsFNQYvsEYOi2KnrvF0tgopmXGVoznZ+q/2AIDW9F1E7Y6Y061eouAYdHWw=="
- }
- },
- "dsseEnvelope": {
- "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiZ2hfMi41MC4wX3dpbmRvd3NfYXJtNjQuemlwIiwiZGlnZXN0Ijp7InNoYTI1NiI6IjhhYWQxMjBiNDE2Mzg2YjQyNjllZjYyYzhmZGViY2FkMzFhNzA4NDcyOTc4MTdhMTQ5ZGFmOTI3ZWRjODU1NDgifX1dLCJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YxIiwicHJlZGljYXRlIjp7ImJ1aWxkRGVmaW5pdGlvbiI6eyJidWlsZFR5cGUiOiJodHRwczovL3Nsc2EtZnJhbWV3b3JrLmdpdGh1Yi5pby9naXRodWItYWN0aW9ucy1idWlsZHR5cGVzL3dvcmtmbG93L3YxIiwiZXh0ZXJuYWxQYXJhbWV0ZXJzIjp7IndvcmtmbG93Ijp7InJlZiI6InJlZnMvaGVhZHMvdHJ1bmsiLCJyZXBvc2l0b3J5IjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkiLCJwYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWwifX0sImludGVybmFsUGFyYW1ldGVycyI6eyJnaXRodWIiOnsiZXZlbnRfbmFtZSI6IndvcmtmbG93X2Rpc3BhdGNoIiwicmVwb3NpdG9yeV9pZCI6IjIxMjYxMzA0OSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1OTcwNDcxMSJ9fSwicmVzb2x2ZWREZXBlbmRlbmNpZXMiOlt7InVyaSI6ImdpdCtodHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaUByZWZzL2hlYWRzL3RydW5rIiwiZGlnZXN0Ijp7ImdpdENvbW1pdCI6ImZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAifX1dfSwicnVuRGV0YWlscyI6eyJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly9naXRodWIuY29tL2FjdGlvbnMvcnVubmVyL2dpdGh1Yi1ob3N0ZWQifSwibWV0YWRhdGEiOnsiaW52b2NhdGlvbklkIjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvYWN0aW9ucy9ydW5zLzkyODkwNzU3NTIvYXR0ZW1wdHMvMSJ9fX19",
- "payloadType": "application/vnd.in-toto+json",
- "signatures": [
- {
- "sig": "MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ=="
- }
- ]
- }
- },
- "repository_id": 1
- }
- ]
- },
- "schema": {
- "type": "object",
- "properties": {
- "attestations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "bundle": {
- "type": "object",
- "properties": {
- "mediaType": {
- "type": "string"
- },
- "verificationMaterial": {
- "type": "object",
- "properties": {},
- "additionalProperties": true
- },
- "dsseEnvelope": {
- "type": "object",
- "properties": {},
- "additionalProperties": true
- }
- },
- "description": "The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information."
- },
- "repository_id": {
- "type": "integer"
- },
- "bundle_url": {
- "type": "string"
- },
- "initiator": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Attestations\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- }
- ],
- "autolinks": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/autolinks",
- "title": "Get all autolinks of a repository",
- "category": "repos",
- "subcategory": "autolinks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets all autolinks that are configured for a repository.
\nInformation about autolinks are only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "key_prefix": "TICKET-",
- "url_template": "https://example.com/TICKET?query=",
- "is_alphanumeric": true
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Autolink reference",
- "description": "An autolink reference.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "key_prefix": {
- "description": "The prefix of a key that is linkified.",
- "type": "string",
- "examples": [
- "TICKET-"
- ]
- },
- "url_template": {
- "description": "A template for the target URL that is generated if a key was found.",
- "type": "string",
- "examples": [
- "https://example.com/TICKET?query="
- ]
- },
- "is_alphanumeric": {
- "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
- "type": "boolean",
- "examples": [
- true
- ]
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
},
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "id",
- "key_prefix",
- "url_template",
- "is_alphanumeric"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/autolinks",
- "title": "Create an autolink reference for a repository",
- "category": "repos",
- "subcategory": "autolinks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "key_prefix",
- "in": "body",
- "description": "This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "url_template",
- "in": "body",
- "description": "The URL must contain <num> for the reference number. <num> matches different characters depending on the value of is_alphanumeric.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "is_alphanumeric",
- "in": "body",
- "description": "Whether this autolink reference matches alphanumeric characters. If true, the <num> parameter of the url_template matches alphanumeric characters A-Z (case insensitive), 0-9, and -. If false, this autolink reference only matches numeric characters.
",
- "default": true
- }
- ],
- "descriptionHTML": "Users with admin access to the repository can create an autolink.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "key_prefix": "TICKET-",
- "url_template": "https://example.com/TICKET?query=",
- "is_alphanumeric": true
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "response
",
- "example": {
- "id": 1,
- "key_prefix": "TICKET-",
- "url_template": "https://example.com/TICKET?query=",
- "is_alphanumeric": true
- },
- "schema": {
- "title": "Autolink reference",
- "description": "An autolink reference.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "key_prefix": {
- "description": "The prefix of a key that is linkified.",
- "type": "string",
- "examples": [
- "TICKET-"
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "url_template": {
- "description": "A template for the target URL that is generated if a key was found.",
- "type": "string",
- "examples": [
- "https://example.com/TICKET?query="
- ]
+ "forks": {
+ "type": "integer"
},
- "is_alphanumeric": {
- "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
- "type": "boolean",
- "examples": [
- true
- ]
+ "master_branch": {
+ "type": "string"
},
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "id",
- "key_prefix",
- "url_template",
- "is_alphanumeric"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
- "title": "Get an autolink reference of a repository",
- "category": "repos",
- "subcategory": "autolinks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "autolink_id",
- "description": "The unique identifier of the autolink.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "This returns a single autolink reference by ID that was configured for the given repository.
\nInformation about autolinks are only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "autolink_id": "AUTOLINK_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "key_prefix": "TICKET-",
- "url_template": "https://example.com/TICKET?query=",
- "is_alphanumeric": true
- },
- "schema": {
- "title": "Autolink reference",
- "description": "An autolink reference.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 3
- ]
+ "open_issues": {
+ "type": "integer"
},
- "key_prefix": {
- "description": "The prefix of a key that is linkified.",
- "type": "string",
- "examples": [
- "TICKET-"
- ]
+ "watchers": {
+ "type": "integer"
},
- "url_template": {
- "description": "A template for the target URL that is generated if a key was found.",
- "type": "string",
- "examples": [
- "https://example.com/TICKET?query="
- ]
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
},
- "is_alphanumeric": {
- "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
- "type": "boolean",
- "examples": [
- true
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
]
},
- "updated_at": {
+ "security_and_analysis": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time"
- }
- },
- "required": [
- "id",
- "key_prefix",
- "url_template",
- "is_alphanumeric"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
- "title": "Delete an autolink reference from a repository",
- "category": "repos",
- "subcategory": "autolinks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "autolink_id",
- "description": "The unique identifier of the autolink.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "This deletes a single autolink reference by ID that was configured for the given repository.
\nInformation about autolinks are only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "autolink_id": "AUTOLINK_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "bypass-requests": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/bypass-requests/push-rules",
- "title": "List repository push rule bypass requests",
- "category": "repos",
- "subcategory": "bypass-requests",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "reviewer",
- "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "requester",
- "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
- }
- },
- {
- "name": "request_status",
- "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "completed",
- "cancelled",
- "approved",
- "expired",
- "deleted",
- "denied",
- "open",
- "all"
- ],
- "default": "all"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists the requests made by users of a repository to bypass push protection rules
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "push_ruleset_bypass",
- "data": [
- {
- "ruleset_id": 410,
- "ruleset_name": "Exclude image files",
- "total_violations": 1,
- "rule_type": "file_extension_restriction"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
- "status": "denied",
- "requester_comment": "Updating site images to follow changes in marketing. Part 1",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1",
- "html_url": "https://github.com/octo-org/smile/exemptions/1"
- },
- {
- "id": 12,
- "number": 24,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "push_ruleset_bypass",
- "data": [
- {
- "ruleset_id": 410,
- "ruleset_name": "Exclude image files",
- "total_violations": 1,
- "rule_type": "file_extension_restriction"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
- "status": "denied",
- "requester_comment": "Updating site images to follow changes in marketing. Part 2",
- "expires_at": "2024-07-08T07:43:03Z",
- "created_at": "2024-07-01T07:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/2",
- "html_url": "https://github.com/octo-org/smile/exemptions/2"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Push rule bypass request",
- "description": "A bypass request made by a user asking to be exempted from a push rule in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the bypass request."
- },
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the bypass request within its repository."
- },
- "repository": {
- "type": "object",
- "description": "The repository the bypass request is for.",
- "properties": {
- "id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the repository the bypass request is for."
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The name of the repository the bypass request is for."
- },
- "full_name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The full name of the repository the bypass request is for."
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the bypass request is for.",
- "properties": {
- "id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the organization."
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The name of the organization."
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the bypass.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the bypass."
- },
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who requested the bypass."
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the push rules that are being requested to be bypassed.",
- "items": {
+ },
+ "secret_scanning_push_protection": {
"type": "object",
"properties": {
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset for the rules that were violated."
- },
- "ruleset_name": {
+ "status": {
"type": "string",
- "description": "The name of the ruleset for the rules that were violated."
- },
- "total_violations": {
- "type": "integer",
- "description": "The number of rule violations generated from the push associated with this request."
- },
- "rule_type": {
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "description": "The type of rule that was violated."
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
}
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the bypass request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "completed",
- "expired",
- "deleted",
- "open"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the bypass request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the bypass request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
+ },
+ "secret_scanning_ai_detection": {
"type": "object",
"properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
- },
- "reviewer": {
- "type": "object",
- "description": "The user who reviewed the bypass request.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
- },
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
- }
- }
- },
"status": {
"type": "string",
- "description": "The response status to the bypass request until dismissed.",
"enum": [
- "approved",
- "denied",
- "dismissed"
+ "enabled",
+ "disabled"
]
- },
- "created_at": {
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
}
}
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the bypass request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/exemptions/1"
- ]
}
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
- }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -701248,7 +735893,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "write"
+ "\"Administration\" repository permissions": "write"
}
]
}
@@ -701256,10 +735901,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}",
- "title": "Get a repository push bypass request",
+ "requestPath": "/repos/{owner}/{repo}",
+ "title": "Get a repository",
"category": "repos",
- "subcategory": "bypass-requests",
+ "subcategory": "repos",
"parameters": [
{
"name": "owner",
@@ -701278,20 +735923,10 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "bypass_request_number",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- },
- "description": "The number that identifies the bypass request within the context of the given repository.
",
- "example": 1
}
],
"bodyParameters": [],
- "descriptionHTML": "Get information about a request to bypass push protection rules for a repository.
",
+ "descriptionHTML": "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.
\n Note
\n
\n
\nIn order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization .\" \nTo view merge-related settings, you must have the contents:read and contents:write permissions. \n \n
",
"codeExamples": [
{
"key": "default",
@@ -701300,5512 +735935,4652 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "bypass_request_number": "BYPASS_REQUEST_NUMBER"
+ "repo": "REPO"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Default response
",
"example": {
- "id": 12,
- "number": 24,
- "repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
"id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "forks": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "open_issues": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "pull": true,
+ "push": false,
+ "admin": false
+ },
+ "allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "spdx_id": "MIT",
+ "url": "https://api.github.com/licenses/mit",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
},
"organization": {
+ "login": "octocat",
"id": 1,
- "name": "octo-org"
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
},
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
},
- "request_type": "push_ruleset_bypass",
- "data": [
- {
- "ruleset_id": 410,
- "ruleset_name": "Exclude image files",
- "total_violations": 1,
- "rule_type": "file_extension_restriction"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
- "status": "denied",
- "requester_comment": "Updating site images to follow changes in marketing. Part 2",
- "expires_at": "2024-07-08T07:43:03Z",
- "created_at": "2024-07-01T07:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1,
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
},
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_non_provider_patterns": {
+ "status": "disabled"
+ },
+ "secret_scanning_validity_checks": {
+ "status": "disabled"
+ }
}
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/2",
- "html_url": "https://github.com/octo-org/smile/exemptions/2"
+ }
},
"schema": {
- "title": "Push rule bypass request",
- "description": "A bypass request made by a user asking to be exempted from a push rule in this repository.",
+ "title": "Full Repository",
+ "description": "Full Repository",
"type": "object",
"properties": {
"id": {
"type": "integer",
- "description": "The unique identifier of the bypass request."
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
},
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the bypass request within its repository."
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
},
- "repository": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
- "description": "The repository the bypass request is for.",
"properties": {
- "id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the repository the bypass request is for."
- },
"name": {
"type": [
"string",
"null"
- ],
- "description": "The name of the repository the bypass request is for."
+ ]
},
- "full_name": {
+ "email": {
"type": [
"string",
"null"
- ],
- "description": "The full name of the repository the bypass request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the bypass request is for.",
- "properties": {
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the organization."
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "name": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the bypass.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the bypass."
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
- "actor_name": {
+ "url": {
"type": "string",
- "description": "The name of the GitHub user who requested the bypass."
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
- }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
},
- "request_type": {
+ "labels_url": {
"type": "string",
- "description": "The type of request."
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
},
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the push rules that are being requested to be bypassed.",
- "items": {
- "type": "object",
- "properties": {
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset for the rules that were violated."
- },
- "ruleset_name": {
- "type": "string",
- "description": "The name of the ruleset for the rules that were violated."
- },
- "total_violations": {
- "type": "integer",
- "description": "The number of rule violations generated from the push associated with this request."
- },
- "rule_type": {
- "type": "string",
- "description": "The type of rule that was violated."
- }
- }
- }
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
},
- "resource_identifier": {
+ "merges_url": {
"type": "string",
- "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "format": "uri",
"examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "status": {
+ "milestones_url": {
"type": "string",
- "description": "The status of the bypass request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "completed",
- "expired",
- "deleted",
- "open"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the bypass request."
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
},
- "expires_at": {
+ "pulls_url": {
"type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request will expire."
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
},
- "created_at": {
+ "releases_url": {
"type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request was created."
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
},
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the bypass request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
- },
- "reviewer": {
- "type": "object",
- "description": "The user who reviewed the bypass request.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
- },
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
- }
- }
- },
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
- }
- }
- }
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
},
- "url": {
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "html_url": {
+ "statuses_url": {
"type": "string",
- "description": "The URL to view the bypass request in a browser.",
- "format": "uri",
"examples": [
- "https://github.com/octo-org/smile/exemptions/1"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "contents": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/contents/{path}",
- "title": "Get repository content",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "path",
- "description": "path parameter
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- },
- {
- "name": "ref",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory with the path parameter. If you omit the path parameter, you will receive the contents of the repository's root directory.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents for files and symlinks. \napplication/vnd.github.html+json : Returns the file contents in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \napplication/vnd.github.object+json : Returns the contents in a consistent object format regardless of the content type. For example, instead of an array of objects for a directory, the response will be an object with an entries attribute containing the array of objects. \n \nIf the content is a directory, the response will be an array of objects, one object for each item in the directory. When listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value should be \"submodule\". This behavior exists for backwards compatibility purposes . In the next major version of the API, the type will be returned as \"submodule\".
\nIf the content is a symlink and the symlink's target is a normal file in the repository, then the API responds with the content of the file. Otherwise, the API responds with an object describing the symlink itself.
\nIf the content is a submodule, the submodule_git_url field 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. If 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.
\nNotes :
\n\nTo get a repository's contents recursively, you can recursively get the tree . \nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve\nmore files, use the Git Trees API . \nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download. \nIf the requested file's size is:\n\n1 MB or smaller: All features of this endpoint are supported. \nBetween 1-100 MB: Only the raw or object custom media types are supported. Both will work as normal, except that when using the object media type, the content field will be an empty\nstring and the encoding field will be \"none\". To get the contents of these larger files, use the raw media type. \nGreater than 100 MB: This endpoint is not supported. \n \n \n ",
- "codeExamples": [
- {
- "key": "response-if-content-is-a-file",
- "request": {
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/vnd.github.object",
- "description": "Response if content is a file
",
- "example": {
- "type": "file",
- "encoding": "base64",
- "size": 5362,
- "name": "README.md",
- "path": "README.md",
- "content": "IyBZb2dhIEJvmsgaW4gcHJvZ3Jlc3MhIEZlZWwgdAoKOndhcm5pbmc6IFdvc\\nZnJlZSBmUgdG8gY0byBjaGVjayBvdXQgdGhlIGFwcCwgYnV0IGJlIHN1c29t\\nZSBiYWNrIG9uY2UgaXQgaXMgY29tcGxldGUuCgpBIHdlYiBhcHAgdGhhdCBs\\nZWFkcyB5b3UgdGhyb3VnaCBhIHlvZ2Egc2Vzc2lvbi4KCltXb3Jrb3V0IG5v\\ndyFdKGh0dHBzOi8vc2tlZHdhcmRzODguZ2l0aHViLmlvL3lvZ2EvKQoKPGlt\\nZyBzcmM9InNyYy9pbWFnZXMvbWFza2FibGVfaWNvbl81MTIucG5nIiBhbHQ9\\nImJvdCBsaWZ0aW5nIHdlaWdodHMiIHdpZHRoPSIxMDAiLz4KCkRvIHlvdSBo\\nYXZlIGZlZWRiYWNrIG9yIGlkZWFzIGZvciBpbXByb3ZlbWVudD8gW09wZW4g\\nYW4gaXNzdWVdKGh0dHBzOi8vZ2l0aHViLmNvbS9za2Vkd2FyZHM4OC95b2dh\\nL2lzc3Vlcy9uZXcpLgoKV2FudCBtb3JlIGdhbWVzPyBWaXNpdCBbQ25TIEdh\\nbWVzXShodHRwczovL3NrZWR3YXJkczg4LmdpdGh1Yi5pby9wb3J0Zm9saW8v\\nKS4KCiMjIERldmVsb3BtZW50CgpUbyBhZGQgYSBuZXcgcG9zZSwgYWRkIGFu\\nIGVudHJ5IHRvIHRoZSByZWxldmFudCBmaWxlIGluIGBzcmMvYXNhbmFzYC4K\\nClRvIGJ1aWxkLCBydW4gYG5wbSBydW4gYnVpbGRgLgoKVG8gcnVuIGxvY2Fs\\nbHkgd2l0aCBsaXZlIHJlbG9hZGluZyBhbmQgbm8gc2VydmljZSB3b3JrZXIs\\nIHJ1biBgbnBtIHJ1biBkZXZgLiAoSWYgYSBzZXJ2aWNlIHdvcmtlciB3YXMg\\ncHJldmlvdXNseSByZWdpc3RlcmVkLCB5b3UgY2FuIHVucmVnaXN0ZXIgaXQg\\naW4gY2hyb21lIGRldmVsb3BlciB0b29sczogYEFwcGxpY2F0aW9uYCA+IGBT\\nZXJ2aWNlIHdvcmtlcnNgID4gYFVucmVnaXN0ZXJgLikKClRvIHJ1biBsb2Nh\\nbGx5IGFuZCByZWdpc3RlciB0aGUgc2VydmljZSB3b3JrZXIsIHJ1biBgbnBt\\nIHN0YXJ0YC4KClRvIGRlcGxveSwgcHVzaCB0byBgbWFpbmAgb3IgbWFudWFs\\nbHkgdHJpZ2dlciB0aGUgYC5naXRodWIvd29ya2Zsb3dzL2RlcGxveS55bWxg\\nIHdvcmtmbG93Lgo=\\n",
- "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
- "_links": {
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
- }
- },
- "schema": {
- "title": "Content Tree",
- "description": "Content Tree",
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
},
- "size": {
- "type": "integer"
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
},
- "name": {
- "type": "string"
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
},
- "path": {
- "type": "string"
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
},
- "sha": {
- "type": "string"
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
},
- "content": {
- "type": "string"
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
},
- "url": {
+ "clone_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
},
- "git_url": {
+ "mirror_url": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "html_url": {
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
},
- "download_url": {
+ "language": {
"type": [
"string",
"null"
- ],
- "format": "uri"
+ ]
},
- "entries": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
- ]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
},
- "encoding": {
- "type": "string"
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "required": [
- "git",
- "html",
- "self"
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
- }
- },
- {
- "key": "response-if-content-is-a-directory",
- "request": {
- "description": "Example 2: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/vnd.github.object",
- "description": "Response if content is a directory and the application/vnd.github.v3.object media type is requested
",
- "example": {
- "type": "dir",
- "size": 0,
- "name": "src",
- "path": "src",
- "sha": "2962be1c94eaae9794b3080790ec9d74b2fa8358",
- "url": "https://api.github.com/repos/octocat/octorepo/contents/src?ref=main",
- "git_url": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "html_url": "https://github.com/octocat/octorepo/blob/main/src",
- "download_url": "https://raw.githubusercontent.com/octocat/octorepo/main/src",
- "_links": {
- "self": "https://api.github.com/repos/octocat/octorepo/contents/src",
- "git": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "html": "https://github.com/octocat/octorepo/blob/main/src"
- },
- "entries": [
- {
- "type": "file",
- "size": 625,
- "name": "app.js",
- "path": "src/app.js",
- "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "url": "https://api.github.com/repos/octocat/octorepo/contents/src/app.js",
- "git_url": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "html_url": "https://github.com/octocat/octorepo/blob/main/src/app.js",
- "download_url": "https://raw.githubusercontent.com/octocat/octorepo/main/src/app.js",
- "_links": {
- "self": "https://api.github.com/repos/octocat/octorepo/contents/src/app.js",
- "git": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "html": "https://github.com/octocat/octorepo/blob/main/src/app.js"
- }
},
- {
- "type": "dir",
- "size": 0,
- "name": "images",
- "path": "src/images",
- "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
- "url": "https://api.github.com/repos/octocat/octorepo/contents/src/images",
- "git_url": "https://api.github.com/repos/octocat/octorepo/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
- "html_url": "https://github.com/octocat/octorepo/tree/main/src/images",
- "download_url": null,
- "_links": {
- "self": "https://api.github.com/repos/octocat/octorepo/contents/src/images",
- "git": "https://api.github.com/repos/octocat/octorepo/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
- "html": "https://github.com/octocat/octorepo/tree/main/src/images"
- }
- }
- ]
- },
- "schema": {
- "title": "Content Tree",
- "description": "Content Tree",
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "size": {
- "type": "integer"
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "name": {
- "type": "string"
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "path": {
- "type": "string"
+ "has_pages": {
+ "type": "boolean"
},
- "sha": {
- "type": "string"
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "content": {
- "type": "string"
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "url": {
- "type": "string",
- "format": "uri"
+ "archived": {
+ "type": "boolean"
},
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
},
- "entries": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
- ]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
},
- "encoding": {
- "type": "string"
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
},
- "_links": {
+ "permissions": {
"type": "object",
"properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "admin": {
+ "type": "boolean"
},
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "maintain": {
+ "type": "boolean"
},
- "self": {
- "type": "string",
- "format": "uri"
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
}
},
"required": [
- "git",
- "html",
- "self"
+ "admin",
+ "pull",
+ "push"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
- }
- },
- {
- "key": "response-if-content-is-a-file",
- "request": {
- "description": "Example 3: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response if content is a file
",
- "example": {
- "type": "file",
- "encoding": "base64",
- "size": 5362,
- "name": "README.md",
- "path": "README.md",
- "content": "IyBZb2dhIEJvmsgaW4gcHJvZ3Jlc3MhIEZlZWwgdAoKOndhcm5pbmc6IFdvc\\nZnJlZSBmUgdG8gY0byBjaGVjayBvdXQgdGhlIGFwcCwgYnV0IGJlIHN1c29t\\nZSBiYWNrIG9uY2UgaXQgaXMgY29tcGxldGUuCgpBIHdlYiBhcHAgdGhhdCBs\\nZWFkcyB5b3UgdGhyb3VnaCBhIHlvZ2Egc2Vzc2lvbi4KCltXb3Jrb3V0IG5v\\ndyFdKGh0dHBzOi8vc2tlZHdhcmRzODguZ2l0aHViLmlvL3lvZ2EvKQoKPGlt\\nZyBzcmM9InNyYy9pbWFnZXMvbWFza2FibGVfaWNvbl81MTIucG5nIiBhbHQ9\\nImJvdCBsaWZ0aW5nIHdlaWdodHMiIHdpZHRoPSIxMDAiLz4KCkRvIHlvdSBo\\nYXZlIGZlZWRiYWNrIG9yIGlkZWFzIGZvciBpbXByb3ZlbWVudD8gW09wZW4g\\nYW4gaXNzdWVdKGh0dHBzOi8vZ2l0aHViLmNvbS9za2Vkd2FyZHM4OC95b2dh\\nL2lzc3Vlcy9uZXcpLgoKV2FudCBtb3JlIGdhbWVzPyBWaXNpdCBbQ25TIEdh\\nbWVzXShodHRwczovL3NrZWR3YXJkczg4LmdpdGh1Yi5pby9wb3J0Zm9saW8v\\nKS4KCiMjIERldmVsb3BtZW50CgpUbyBhZGQgYSBuZXcgcG9zZSwgYWRkIGFu\\nIGVudHJ5IHRvIHRoZSByZWxldmFudCBmaWxlIGluIGBzcmMvYXNhbmFzYC4K\\nClRvIGJ1aWxkLCBydW4gYG5wbSBydW4gYnVpbGRgLgoKVG8gcnVuIGxvY2Fs\\nbHkgd2l0aCBsaXZlIHJlbG9hZGluZyBhbmQgbm8gc2VydmljZSB3b3JrZXIs\\nIHJ1biBgbnBtIHJ1biBkZXZgLiAoSWYgYSBzZXJ2aWNlIHdvcmtlciB3YXMg\\ncHJldmlvdXNseSByZWdpc3RlcmVkLCB5b3UgY2FuIHVucmVnaXN0ZXIgaXQg\\naW4gY2hyb21lIGRldmVsb3BlciB0b29sczogYEFwcGxpY2F0aW9uYCA+IGBT\\nZXJ2aWNlIHdvcmtlcnNgID4gYFVucmVnaXN0ZXJgLikKClRvIHJ1biBsb2Nh\\nbGx5IGFuZCByZWdpc3RlciB0aGUgc2VydmljZSB3b3JrZXIsIHJ1biBgbnBt\\nIHN0YXJ0YC4KClRvIGRlcGxveSwgcHVzaCB0byBgbWFpbmAgb3IgbWFudWFs\\nbHkgdHJpZ2dlciB0aGUgYC5naXRodWIvd29ya2Zsb3dzL2RlcGxveS55bWxg\\nIHdvcmtmbG93Lgo=\\n",
- "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
- "_links": {
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
- }
- },
- "schema": {
- "oneOf": [
- {
- "title": "Content Directory",
- "description": "A list of directory items",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "dir",
- "file",
- "submodule",
- "symlink"
- ]
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ },
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
},
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "self": {
- "type": "string",
- "format": "uri"
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
- "required": [
- "git",
- "html",
- "self"
- ]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
- },
- {
- "title": "Content File",
- "description": "Content File",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file"
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "allow_squash_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
+ {
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "git": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
},
- "html": {
+ "spdx_id": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "examples": [
+ "MIT"
+ ]
},
- "self": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
"type": "string",
"format": "uri"
}
},
"required": [
- "git",
- "html",
- "self"
- ]
- },
- "target": {
- "type": "string",
- "examples": [
- "\"actual/actual.md\""
- ]
- },
- "submodule_git_url": {
- "type": "string",
- "examples": [
- "\"git://example.com/defunkt/dotjs.git\""
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
]
}
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "content",
- "encoding"
]
},
- {
- "title": "Symlink Content",
- "description": "An object describing a symlink",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "symlink"
- ]
- },
- "target": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "_links": {
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "git": {
+ "name": {
"type": [
"string",
"null"
- ],
- "format": "uri"
+ ]
},
- "html": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
- "self": {
+ "url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "git",
- "html",
- "self"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "target"
]
},
- {
- "title": "Submodule Content",
- "description": "An object describing a submodule",
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "enum": [
- "submodule"
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
]
},
- "submodule_git_url": {
+ "node_id": {
"type": "string",
- "format": "uri"
- },
- "size": {
- "type": "integer"
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
},
"name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
},
- "url": {
+ "full_name": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "octocat/Hello-World"
+ ]
},
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "forks": {
+ "type": "integer"
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
},
- "_links": {
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "git": {
+ "name": {
"type": [
"string",
"null"
- ],
- "format": "uri"
+ ]
},
- "html": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
- "self": {
+ "url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "git",
- "html",
- "self"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "submodule_git_url"
- ]
- }
- ]
- }
- }
- },
- {
- "key": "response-if-content-is-a-directory",
- "request": {
- "description": "Example 4: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response if content is a directory and the application/json media type is requested
",
- "example": [
- {
- "type": "file",
- "size": 625,
- "name": "octokit.rb",
- "path": "lib/octokit.rb",
- "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb",
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/lib/octokit.rb",
- "_links": {
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb",
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
- "html": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb"
- }
- },
- {
- "type": "dir",
- "size": 0,
- "name": "octokit",
- "path": "lib/octokit",
- "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
- "html_url": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit",
- "download_url": null,
- "_links": {
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit",
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
- "html": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit"
- }
- }
- ],
- "schema": {
- "oneOf": [
- {
- "title": "Content Directory",
- "description": "A list of directory items",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "dir",
- "file",
- "submodule",
- "symlink"
- ]
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
- ]
- }
},
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
- },
- {
- "title": "Content File",
- "description": "Content File",
- "type": "object",
- "properties": {
- "type": {
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
- "enum": [
- "file"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
]
},
- "encoding": {
- "type": "string"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
},
- "size": {
- "type": "integer"
+ "fork": {
+ "type": "boolean"
},
- "name": {
- "type": "string"
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
},
- "path": {
- "type": "string"
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
},
- "content": {
- "type": "string"
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
},
- "sha": {
- "type": "string"
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
},
- "url": {
+ "branches_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
},
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "target": {
+ "contents_url": {
"type": "string",
"examples": [
- "\"actual/actual.md\""
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "submodule_git_url": {
+ "contributors_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "\"git://example.com/defunkt/dotjs.git\""
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "content",
- "encoding"
- ]
- },
- {
- "title": "Symlink Content",
- "description": "An object describing a symlink",
- "type": "object",
- "properties": {
- "type": {
+ },
+ "deployments_url": {
"type": "string",
- "enum": [
- "symlink"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "target": {
- "type": "string"
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
},
- "size": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
},
- "name": {
- "type": "string"
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
},
- "path": {
- "type": "string"
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
},
- "sha": {
- "type": "string"
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
},
- "url": {
+ "git_tags_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
},
"git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "target"
- ]
- },
- {
- "title": "Submodule Content",
- "description": "An object describing a submodule",
- "type": "object",
- "properties": {
- "type": {
+ },
+ "issue_events_url": {
"type": "string",
- "enum": [
- "submodule"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "submodule_git_url": {
+ "issues_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
},
- "size": {
- "type": "integer"
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
},
- "name": {
- "type": "string"
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
},
- "path": {
- "type": "string"
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
},
- "sha": {
- "type": "string"
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
},
- "url": {
+ "milestones_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
},
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "submodule_git_url"
- ]
- }
- ]
- }
- }
- },
- {
- "key": "response-if-content-is-a-symlink",
- "request": {
- "description": "Example 5: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response if content is a symlink and the application/json media type is requested
",
- "example": {
- "type": "symlink",
- "target": "/path/to/symlink/target",
- "size": 23,
- "name": "some-symlink",
- "path": "bin/some-symlink",
- "sha": "452a98979c88e093d682cab404a3ec82babebb48",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48",
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink",
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/bin/some-symlink",
- "_links": {
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48",
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink",
- "html": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink"
- }
- },
- "schema": {
- "oneOf": [
- {
- "title": "Content Directory",
- "description": "A list of directory items",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "dir",
- "file",
- "submodule",
- "symlink"
- ]
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
- ]
- }
},
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
- },
- {
- "title": "Content File",
- "description": "Content File",
- "type": "object",
- "properties": {
- "type": {
+ "stargazers_url": {
"type": "string",
- "enum": [
- "file"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "encoding": {
- "type": "string"
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
},
- "size": {
- "type": "integer"
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
},
- "name": {
- "type": "string"
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
},
- "path": {
- "type": "string"
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
},
- "content": {
- "type": "string"
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
},
- "sha": {
- "type": "string"
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
},
- "url": {
+ "clone_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
},
- "git_url": {
+ "mirror_url": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "html_url": {
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
},
- "download_url": {
+ "language": {
"type": [
"string",
"null"
- ],
- "format": "uri"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
]
},
- "target": {
- "type": "string",
+ "stargazers_count": {
+ "type": "integer",
"examples": [
- "\"actual/actual.md\""
+ 80
]
},
- "submodule_git_url": {
- "type": "string",
+ "watchers_count": {
+ "type": "integer",
"examples": [
- "\"git://example.com/defunkt/dotjs.git\""
+ 80
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "content",
- "encoding"
- ]
- },
- {
- "title": "Symlink Content",
- "description": "An object describing a symlink",
- "type": "object",
- "properties": {
- "type": {
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
- "enum": [
- "symlink"
+ "examples": [
+ "master"
]
},
- "target": {
- "type": "string"
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
},
- "size": {
- "type": "integer"
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "name": {
- "type": "string"
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "path": {
- "type": "string"
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "sha": {
- "type": "string"
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "url": {
- "type": "string",
- "format": "uri"
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "git_url": {
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
},
- "html_url": {
+ "created_at": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
},
- "download_url": {
+ "updated_at": {
"type": [
"string",
"null"
],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "target"
- ]
- },
- {
- "title": "Submodule Content",
- "description": "An object describing a submodule",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "submodule"
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
]
},
- "submodule_git_url": {
- "type": "string",
- "format": "uri"
+ "temp_clone_token": {
+ "type": "string"
},
- "size": {
- "type": "integer"
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "name": {
- "type": "string"
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "path": {
- "type": "string"
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "sha": {
- "type": "string"
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "url": {
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
"type": "string",
- "format": "uri"
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
- "git_url": {
- "type": [
- "string",
- "null"
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
],
- "format": "uri"
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
- "html_url": {
- "type": [
- "string",
- "null"
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
],
- "format": "uri"
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
- "download_url": {
- "type": [
- "string",
- "null"
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
],
- "format": "uri"
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
},
- "_links": {
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
"type": "object",
+ "description": "The status of the code search index for this repository",
"properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "lexical_search_ok": {
+ "type": "boolean"
},
- "self": {
- "type": "string",
- "format": "uri"
+ "lexical_commit_sha": {
+ "type": "string"
}
- },
- "required": [
- "git",
- "html",
- "self"
- ]
+ }
}
},
"required": [
- "_links",
- "git_url",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "download_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
- "path",
- "sha",
- "size",
- "type",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url",
- "submodule_git_url"
- ]
- }
- ]
- }
- }
- },
- {
- "key": "response-if-content-is-a-submodule",
- "request": {
- "description": "Example 6: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response if content is a submodule and the application/json media type is requested
",
- "example": {
- "type": "submodule",
- "submodule_git_url": "git://github.com/jquery/qunit.git",
- "size": 0,
- "name": "qunit",
- "path": "test/qunit",
- "sha": "6ca3721222109997540bd6d9ccd396902e0ad2f9",
- "url": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master",
- "git_url": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9",
- "html_url": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9",
- "download_url": null,
- "_links": {
- "git": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9",
- "self": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master",
- "html": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9"
- }
- },
- "schema": {
- "oneOf": [
- {
- "title": "Content Directory",
- "description": "A list of directory items",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "dir",
- "file",
- "submodule",
- "symlink"
- ]
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
- ]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url"
- ]
- }
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
},
- {
- "title": "Content File",
- "description": "Content File",
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "enum": [
- "file"
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
]
},
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "integer"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
},
"name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
},
- "url": {
+ "full_name": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "octocat/Hello-World"
+ ]
},
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "forks": {
+ "type": "integer"
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
},
- "_links": {
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "git": {
+ "name": {
"type": [
"string",
"null"
- ],
- "format": "uri"
+ ]
},
- "html": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "format": "uri"
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
- "self": {
+ "url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "git",
- "html",
- "self"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "target": {
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "\"actual/actual.md\""
+ "https://github.com/octocat/Hello-World"
]
},
- "submodule_git_url": {
- "type": "string",
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "\"git://example.com/defunkt/dotjs.git\""
+ "This your first repo!"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "content",
- "encoding"
- ]
- },
- {
- "title": "Symlink Content",
- "description": "An object describing a symlink",
- "type": "object",
- "properties": {
- "type": {
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
- "enum": [
- "symlink"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "target": {
- "type": "string"
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
},
- "size": {
- "type": "integer"
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
},
- "name": {
- "type": "string"
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
},
- "path": {
- "type": "string"
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
},
- "sha": {
- "type": "string"
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
},
- "url": {
+ "comments_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
},
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "target"
- ]
- },
- {
- "title": "Submodule Content",
- "description": "An object describing a submodule",
- "type": "object",
- "properties": {
- "type": {
+ },
+ "deployments_url": {
"type": "string",
- "enum": [
- "submodule"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "submodule_git_url": {
+ "downloads_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
},
- "size": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
},
- "name": {
- "type": "string"
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
},
- "path": {
- "type": "string"
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
},
- "sha": {
- "type": "string"
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
},
- "url": {
+ "git_tags_url": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
},
"git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "git",
- "html",
- "self"
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "submodule_git_url"
- ]
- }
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "302",
- "description": "Found
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/contents/{path}",
- "title": "Create or update file contents",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "path",
- "description": "path parameter
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "message",
- "in": "body",
- "description": "The commit message.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "content",
- "in": "body",
- "description": "The new file content, using Base64 encoding.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "sha",
- "in": "body",
- "description": "Required if you are updating a file . The blob SHA of the file being replaced.
"
- },
- {
- "type": "string",
- "name": "branch",
- "in": "body",
- "description": "The branch name. Default: the repository’s default branch.
"
- },
- {
- "type": "object",
- "name": "committer",
- "in": "body",
- "description": "The person that committed the file. Default: the authenticated user.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "email",
- "description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "date",
- "description": ""
- }
- ]
- },
- {
- "type": "object",
- "name": "author",
- "in": "body",
- "description": "The author of the file. Default: The committer or the authenticated user if you omit committer.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "email",
- "description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "date",
- "description": ""
- }
- ]
- }
- ],
- "descriptionHTML": "Creates a new file or replaces an existing file in a repository.
\n Note
\n
\nIf you use this endpoint and the \"Delete a file \" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
\n
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint. The workflow scope is also required in order to modify files in the .github/workflows directory.
",
- "codeExamples": [
- {
- "key": "example-for-creating-a-file",
- "request": {
- "contentType": "application/json",
- "description": "Example for creating a file",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "message": "my commit message",
- "committer": {
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "content": "bXkgbmV3IGZpbGUgY29udGVudHM="
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "content": {
- "name": "hello.txt",
- "path": "notes/hello.txt",
- "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
- "size": 9,
- "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
- "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt",
- "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
- "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt",
- "type": "file",
- "_links": {
- "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
- "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
- "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt"
- }
- },
- "commit": {
- "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
- "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==",
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
- "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
- "author": {
- "date": "2014-11-07T22:01:45Z",
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "committer": {
- "date": "2014-11-07T22:01:45Z",
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "message": "my commit message",
- "tree": {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
- "sha": "691272480426f78a0138979dd3ce63b77f706feb"
- },
- "parents": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
- "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5",
- "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
- }
- ],
- "verification": {
- "verified": false,
- "reason": "unsigned",
- "signature": null,
- "payload": null,
- "verified_at": null
- }
- }
- },
- "schema": {
- "title": "File Commit",
- "description": "File Commit",
- "type": "object",
- "required": [
- "content",
- "commit"
- ],
- "properties": {
- "content": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
},
- "size": {
- "type": "integer"
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
},
- "url": {
- "type": "string"
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
},
- "html_url": {
- "type": "string"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
},
- "git_url": {
- "type": "string"
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
},
- "download_url": {
- "type": "string"
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
},
- "type": {
- "type": "string"
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
},
- "node_id": {
- "type": "string"
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
},
- "url": {
- "type": "string"
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
},
- "html_url": {
- "type": "string"
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
},
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
},
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
},
- "message": {
- "type": "string"
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
},
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
},
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
},
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": [
- "string",
- "null"
- ]
- },
- "payload": {
- "type": [
- "string",
- "null"
- ]
- },
- "verified_at": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- }
- }
- }
- }
- }
- },
- {
- "key": "example-for-updating-a-file",
- "request": {
- "contentType": "application/json",
- "description": "Example for updating a file",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "message": "a new commit message",
- "committer": {
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "content": "bXkgdXBkYXRlZCBmaWxlIGNvbnRlbnRz",
- "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "content": {
- "name": "hello.txt",
- "path": "notes/hello.txt",
- "sha": "a56507ed892d05a37c6d6128c260937ea4d287bd",
- "size": 9,
- "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
- "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt",
- "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd",
- "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt",
- "type": "file",
- "_links": {
- "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
- "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd",
- "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt"
- }
- },
- "commit": {
- "sha": "18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
- "node_id": "MDY6Q29tbWl0MThhNDNjZDhlMWUzYTc5Yzc4NmUzZDgwOGE3M2QyM2I2ZDIxMmIxNg==",
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
- "html_url": "https://github.com/octocat/Hello-World/git/commit/18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
- "author": {
- "date": "2014-11-07T22:01:45Z",
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "committer": {
- "date": "2014-11-07T22:01:45Z",
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "message": "my commit message",
- "tree": {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f",
- "sha": "9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f"
- },
- "parents": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/da5a433788da5c255edad7979b328b67d79f53f6",
- "html_url": "https://github.com/octocat/Hello-World/git/commit/da5a433788da5c255edad7979b328b67d79f53f6",
- "sha": "da5a433788da5c255edad7979b328b67d79f53f6"
- }
- ],
- "verification": {
- "verified": false,
- "reason": "unsigned",
- "signature": null,
- "payload": null,
- "verified_at": null
- }
- }
- },
- "schema": {
- "title": "File Commit",
- "description": "File Commit",
- "type": "object",
- "required": [
- "content",
- "commit"
- ],
- "properties": {
- "content": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "name": {
- "type": "string"
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
},
- "path": {
- "type": "string"
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
},
- "sha": {
- "type": "string"
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
},
- "size": {
- "type": "integer"
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
},
- "url": {
- "type": "string"
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
},
- "html_url": {
- "type": "string"
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "git_url": {
- "type": "string"
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
},
- "download_url": {
- "type": "string"
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
},
- "type": {
- "type": "string"
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "node_id": {
- "type": "string"
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
},
- "url": {
- "type": "string"
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
},
- "html_url": {
- "type": "string"
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
},
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
},
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
},
- "message": {
- "type": "string"
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
},
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "parents": {
+ "topics": {
"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",
- "null"
- ]
- },
- "payload": {
- "type": [
- "string",
- "null"
- ]
- },
- "verified_at": {
- "type": [
- "string",
- "null"
- ]
- }
+ "type": "string"
}
- }
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- },
- {
- "\"Contents\" repository permissions": "write",
- "\"Workflows\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/contents/{path}",
- "title": "Delete a file",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "path",
- "description": "path parameter
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "message",
- "in": "body",
- "description": "The commit message.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "sha",
- "in": "body",
- "description": "The blob SHA of the file being deleted.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "branch",
- "in": "body",
- "description": "The branch name. Default: the repository’s default branch
"
- },
- {
- "type": "object",
- "name": "committer",
- "in": "body",
- "description": "object containing information about the committer.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "The name of the author (or committer) of the commit
"
- },
- {
- "type": "string",
- "name": "email",
- "description": "The email of the author (or committer) of the commit
"
- }
- ]
- },
- {
- "type": "object",
- "name": "author",
- "in": "body",
- "description": "object containing information about the author.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "The name of the author (or committer) of the commit
"
- },
- {
- "type": "string",
- "name": "email",
- "description": "The email of the author (or committer) of the commit
"
- }
- ]
- }
- ],
- "descriptionHTML": "Deletes a file in a repository.
\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.
\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.
\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.
\n Note
\n
\nIf you use this endpoint and the \"Create or update file contents \" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "message": "my commit message",
- "committer": {
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "sha": "329688480d39049927147c162b9d2deaf885005f"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "path": "PATH"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "content": null,
- "commit": {
- "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
- "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==",
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
- "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
- "author": {
- "date": "2014-11-07T22:01:45Z",
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "committer": {
- "date": "2014-11-07T22:01:45Z",
- "name": "Monalisa Octocat",
- "email": "octocat@github.com"
- },
- "message": "my commit message",
- "tree": {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
- "sha": "691272480426f78a0138979dd3ce63b77f706feb"
- },
- "parents": [
- {
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
- "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5",
- "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
- }
- ],
- "verification": {
- "verified": false,
- "reason": "unsigned",
- "signature": null,
- "payload": null,
- "verified_at": null
- }
- }
- },
- "schema": {
- "title": "File Commit",
- "description": "File Commit",
- "type": "object",
- "required": [
- "content",
- "commit"
- ],
- "properties": {
- "content": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
},
- "sha": {
- "type": "string"
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "size": {
- "type": "integer"
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "url": {
- "type": "string"
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "html_url": {
- "type": "string"
+ "has_pages": {
+ "type": "boolean"
},
- "git_url": {
- "type": "string"
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
},
- "download_url": {
- "type": "string"
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "type": {
- "type": "string"
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
},
- "node_id": {
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
"type": "string"
},
- "url": {
- "type": "string"
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
},
- "html_url": {
- "type": "string"
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
},
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
},
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "message": {
+ "temp_clone_token": {
"type": "string"
},
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": [
- "string",
- "null"
- ]
- },
- "payload": {
- "type": [
- "string",
- "null"
- ]
- },
- "verified_at": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "write"
- },
- {
- "\"Contents\" repository permissions": "write",
- "\"Workflows\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/readme",
- "title": "Get a repository README",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ref",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets the preferred README for a repository.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents. This is the default if you do not specify a media type. \napplication/vnd.github.html+json : Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "type": "file",
- "encoding": "base64",
- "size": 5362,
- "name": "README.md",
- "path": "README.md",
- "content": "encoded content ...",
- "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
- "_links": {
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
- }
- },
- "schema": {
- "title": "Content File",
- "description": "Content File",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file"
- ]
- },
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": [
- "string",
- "null"
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
],
- "format": "uri"
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
- "html": {
- "type": [
- "string",
- "null"
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
],
- "format": "uri"
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
- "self": {
+ "merge_commit_title": {
"type": "string",
- "format": "uri"
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "git",
- "html",
- "self"
- ]
- },
- "target": {
- "type": "string",
- "examples": [
- "\"actual/actual.md\""
- ]
- },
- "submodule_git_url": {
- "type": "string",
- "examples": [
- "\"git://example.com/defunkt/dotjs.git\""
- ]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "content",
- "encoding"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/readme/{dir}",
- "title": "Get a repository README for a directory",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "dir",
- "description": "The alternate path to look for a README file
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- },
- {
- "name": "ref",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets the README from a repository directory.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents. This is the default if you do not specify a media type. \napplication/vnd.github.html+json : Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \n ",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "dir": "DIR"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "type": "file",
- "encoding": "base64",
- "size": 5362,
- "name": "README.md",
- "path": "README.md",
- "content": "encoded content ...",
- "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
- "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
- "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
- "_links": {
- "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
- "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
- "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
- }
- },
- "schema": {
- "title": "Content File",
- "description": "Content File",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file"
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "encoding": {
- "type": "string"
- },
- "size": {
+ "forks": {
"type": "integer"
},
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
+ "master_branch": {
"type": "string"
},
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "open_issues": {
+ "type": "integer"
},
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "watchers": {
+ "type": "integer"
},
- "download_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
},
- "_links": {
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
"type": "object",
"properties": {
- "git": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
},
- "html": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
"type": [
"string",
"null"
],
- "format": "uri"
- },
- "self": {
- "type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
}
},
"required": [
- "git",
- "html",
- "self"
- ]
- },
- "target": {
- "type": "string",
- "examples": [
- "\"actual/actual.md\""
+ "url",
+ "key",
+ "name",
+ "html_url"
]
},
- "submodule_git_url": {
- "type": "string",
- "examples": [
- "\"git://example.com/defunkt/dotjs.git\""
- ]
- }
- },
- "required": [
- "_links",
- "git_url",
- "html_url",
- "download_url",
- "name",
- "path",
- "sha",
- "size",
- "type",
- "url",
- "content",
- "encoding"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/tarball/{ref}",
- "title": "Download a repository archive (tar)",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ref",
- "in": "path",
- "required": true,
- "x-multi-segment": true,
- "schema": {
- "type": "string"
- },
- "description": ""
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a redirect URL to download a tar archive for a repository. If you omit :ref, the repository’s default branch (usually\nmain) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe Location header to make a second GET request.
\n Note
\n
\nFor private repositories, these links are temporary and expire after five minutes.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ref": "REF"
- }
- },
- "response": {
- "statusCode": "302",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "302",
- "description": "Found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/zipball/{ref}",
- "title": "Download a repository archive (zip)",
- "category": "repos",
- "subcategory": "contents",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ref",
- "in": "path",
- "required": true,
- "x-multi-segment": true,
- "schema": {
- "type": "string"
- },
- "description": ""
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a redirect URL to download a zip archive for a repository. If you omit :ref, the repository’s default branch (usually\nmain) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe Location header to make a second GET request.
\n Note
\n
\nFor private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ref": "REF"
- }
- },
- "response": {
- "statusCode": "302",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "302",
- "description": "Found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Contents\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- }
- ],
- "custom-properties": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/properties/values",
- "title": "Get all custom property values for a repository",
- "category": "repos",
- "subcategory": "custom-properties",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets all custom property values that are set for a repository.\nUsers with read access to the repository can use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "property_name": "environment",
- "value": "production"
- },
- {
- "property_name": "service",
- "value": "web"
- },
- {
- "property_name": "team",
- "value": "octocat"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Custom Property Value",
- "description": "Custom property name and associated value",
- "type": "object",
- "properties": {
- "property_name": {
- "type": "string",
- "description": "The name of the property"
- },
- "value": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
}
- ],
- "description": "The value assigned to the property",
- "type": [
- "null",
- "string",
- "array"
- ]
- }
- },
- "required": [
- "property_name",
- "value"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/properties/values",
- "title": "Create or update custom property values for a repository",
- "category": "repos",
- "subcategory": "custom-properties",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "array of objects",
- "name": "properties",
- "in": "body",
- "description": "A list of custom property names and associated values to apply to the repositories.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "property_name",
- "description": "The name of the property
",
- "isRequired": true
- },
- {
- "type": "null or string or array",
- "name": "value",
- "description": "The value assigned to the property
",
- "isRequired": true
- }
- ]
- }
- ],
- "descriptionHTML": "Create new or update existing custom property values for a repository.\nUsing a value of null for a custom property will remove or 'unset' the property value from the repository.
\nRepository admins and other users with the repository-level \"edit custom property values\" fine-grained permission can use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "properties": [
- {
- "property_name": "environment",
- "value": "production"
- },
- {
- "property_name": "service",
- "value": "web"
- },
- {
- "property_name": "team",
- "value": "octocat"
- }
- ]
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "No Content when custom property values are successfully created or updated
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content when custom property values are successfully created or updated
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Custom properties\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "forks": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/forks",
- "title": "List forks",
- "category": "repos",
- "subcategory": "forks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "description": "The sort order. stargazers will sort by star count.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "newest",
- "oldest",
- "stargazers",
- "watchers"
- ],
- "default": "newest"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": true,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "delete_branch_on_merge": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "spdx_id": "MIT",
- "url": "https://api.github.com/licenses/mit",
- "node_id": "MDc6TGljZW5zZW1pdA=="
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
},
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
}
}
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
}
}
}
@@ -706816,8 +740591,16 @@
"description": "OK
"
},
{
- "httpStatusCode": "400",
- "description": "Bad Request
"
+ "httpStatusCode": "301",
+ "description": "Moved permanently
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -706835,11 +740618,11 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/forks",
- "title": "Create a fork",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}",
+ "title": "Update a repository",
"category": "repos",
- "subcategory": "forks",
+ "subcategory": "repos",
"parameters": [
{
"name": "owner",
@@ -706863,24 +740646,280 @@
"bodyParameters": [
{
"type": "string",
- "name": "organization",
+ "name": "name",
"in": "body",
- "description": "Optional parameter to specify the organization name if forking into an organization.
"
+ "description": "The name of the repository.
"
},
{
"type": "string",
- "name": "name",
+ "name": "description",
"in": "body",
- "description": "When forking from an existing repository, a new name for the fork.
"
+ "description": "A short description of the repository.
"
+ },
+ {
+ "type": "string",
+ "name": "homepage",
+ "in": "body",
+ "description": "A URL with more information about the repository.
"
},
{
"type": "boolean",
- "name": "default_branch_only",
+ "name": "private",
"in": "body",
- "description": "When forking from an existing repository, fork with only the default branch.
"
+ "description": "Either true to make the repository private or false to make it public. Default: false. \nNote : You will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private.
",
+ "default": false
+ },
+ {
+ "type": "string",
+ "name": "visibility",
+ "in": "body",
+ "description": "The visibility of the repository.
",
+ "enum": [
+ "public",
+ "private",
+ "internal"
+ ]
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization .\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository.\nFor more information, see \"About GitHub Advanced\nSecurity .\"
\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "code_security",
+ "description": "Use the status property to enable or disable GitHub Code Security for this repository.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning .\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning .\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_ai_detection",
+ "description": "Use the status property to enable or disable secret scanning AI detection for this repository. For more information, see \"Responsible detection of generic secrets with AI .\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_non_provider_patterns",
+ "description": "Use the status property to enable or disable secret scanning non-provider patterns for this repository. For more information, see \"Supported secret scanning patterns .\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_validity_checks",
+ "description": "Use the status property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "has_issues",
+ "in": "body",
+ "description": "Either true to enable issues for this repository or false to disable them.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "has_projects",
+ "in": "body",
+ "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.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "has_wiki",
+ "in": "body",
+ "description": "Either true to enable the wiki for this repository or false to disable it.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "is_template",
+ "in": "body",
+ "description": "Either true to make this repo available as a template repository or false to prevent it.
",
+ "default": false
+ },
+ {
+ "type": "string",
+ "name": "default_branch",
+ "in": "body",
+ "description": "Updates the default branch for this repository.
"
+ },
+ {
+ "type": "boolean",
+ "name": "allow_squash_merge",
+ "in": "body",
+ "description": "Either true to allow squash-merging pull requests, or false to prevent squash-merging.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "allow_merge_commit",
+ "in": "body",
+ "description": "Either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "allow_rebase_merge",
+ "in": "body",
+ "description": "Either true to allow rebase-merging pull requests, or false to prevent rebase-merging.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "allow_auto_merge",
+ "in": "body",
+ "description": "Either true to allow auto-merge on pull requests, or false to disallow auto-merge.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "delete_branch_on_merge",
+ "in": "body",
+ "description": "Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "allow_update_branch",
+ "in": "body",
+ "description": "Either true to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "use_squash_pr_title_as_default",
+ "in": "body",
+ "description": "Either true to allow squash-merge commits to use pull request title, or false to use commit message. **This property is closing down. Please use squash_merge_commit_title instead.
",
+ "default": false
+ },
+ {
+ "type": "string",
+ "name": "squash_merge_commit_title",
+ "in": "body",
+ "description": "Required when using squash_merge_commit_message.
\nThe default value for a squash merge commit title:
\n\nPR_TITLE - default to the pull request's title. \nCOMMIT_OR_PR_TITLE - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). \n ",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "squash_merge_commit_message",
+ "in": "body",
+ "description": "The default value for a squash merge commit message:
\n\nPR_BODY - default to the pull request's body. \nCOMMIT_MESSAGES - default to the branch's commit messages. \nBLANK - default to a blank commit message. \n ",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "merge_commit_title",
+ "in": "body",
+ "description": "Required when using merge_commit_message.
\nThe default value for a merge commit title.
\n\nPR_TITLE - default to the pull request's title. \nMERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). \n ",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "merge_commit_message",
+ "in": "body",
+ "description": "The default value for a merge commit message.
\n\nPR_TITLE - default to the pull request's title. \nPR_BODY - default to the pull request's body. \nBLANK - default to a blank commit message. \n ",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "archived",
+ "in": "body",
+ "description": "Whether to archive this repository. false will unarchive a previously archived repository.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "allow_forking",
+ "in": "body",
+ "description": "Either true to allow private forks, or false to prevent private forks.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "web_commit_signoff_required",
+ "in": "body",
+ "description": "Either true to require contributors to sign off on web-based commits, or false to not require contributors to sign off on web-based commits.
",
+ "default": false
}
],
- "descriptionHTML": "Create a fork for the authenticated user.
\n Note
\n
\nForking 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 Cloud Support .
\n
\n Note
\n
\nAlthough this endpoint works with GitHub Apps, the GitHub App must be installed on the destination account with access to all repositories and on the source account with access to the source repository.
\n
",
+ "descriptionHTML": "Note : To edit a repository's topics, use the Replace all repository topics endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -706889,9 +740928,13 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "organization": "octocat",
"name": "Hello-World",
- "default_branch_only": true
+ "description": "This is your first repository",
+ "homepage": "https://github.com",
+ "private": true,
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true
},
"parameters": {
"owner": "OWNER",
@@ -706899,7 +740942,7 @@
}
},
"response": {
- "statusCode": "202",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
@@ -707107,4214 +741150,7913 @@
"node_id": "MDc6TGljZW5zZW1pdA==",
"html_url": "https://api.github.com/licenses/mit"
},
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "schema": {
+ "title": "Full Repository",
+ "description": "Full Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
+ ]
+ },
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "web_commit_signoff_required": false,
- "subscribers_count": 42,
- "network_count": 0,
- "organization": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "allow_squash_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- },
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
"examples": [
- 1296269
+ "PR_TITLE"
]
},
- "node_id": {
+ "squash_merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "PR_BODY"
]
},
- "name": {
+ "merge_commit_title": {
"type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
"examples": [
- "Hello-World"
+ "PR_TITLE"
]
},
- "full_name": {
+ "merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
"examples": [
- "octocat/Hello-World"
+ "PR_BODY"
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
"name": {
- "type": [
- "string",
- "null"
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
]
},
- "email": {
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
+ ],
+ "examples": [
+ "This your first repo!"
]
},
- "login": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
+ "archive_url": {
+ "type": "string",
"examples": [
- 1
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "node_id": {
+ "assignees_url": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "avatar_url": {
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "followers_url": {
+ "forks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "following_url": {
+ "git_commits_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "gists_url": {
+ "git_refs_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "starred_url": {
+ "git_tags_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "subscriptions_url": {
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "events_url": {
+ "statuses_url": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- "received_events_url": {
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "type": {
+ "subscription_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "User"
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- "site_admin": {
- "type": "boolean"
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
},
- "starred_at": {
+ "teams_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- "user_view_type": {
+ "trees_url": {
"type": "string",
"examples": [
- "public"
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
"type": "boolean"
},
- "maintain": {
- "type": "boolean"
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "push": {
- "type": "boolean"
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "triage": {
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
"type": "boolean"
},
- "pull": {
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
"type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
- "examples": [
- true
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "template_repository": {
- "anyOf": [
- {
- "type": "null"
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ {
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
+ "key": {
"type": "string",
"examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
+ "mit"
]
},
- "node_id": {
+ "name": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
+ "MIT License"
]
},
- "avatar_url": {
- "type": "string",
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "uri",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://api.github.com/licenses/mit"
]
},
- "gravatar_id": {
+ "spdx_id": {
"type": [
"string",
"null"
],
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MIT"
]
},
- "url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "MDc6TGljZW5zZW1pdA=="
]
},
"html_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "format": "uri"
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
+ "pull": {
"type": "boolean"
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
+ "triage": {
+ "type": "boolean"
},
- "description": {
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "commits_url": {
+ "login": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "octocat"
]
},
- "compare_url": {
- "type": "string",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ 1
]
},
- "contents_url": {
+ "node_id": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "MDQ6VXNlcjE="
]
},
- "contributors_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "deployments_url": {
- "type": "string",
- "format": "uri",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "downloads_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat"
]
},
- "events_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "https://github.com/octocat"
]
},
- "forks_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "issues_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "keys_url": {
+ "gists_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "labels_url": {
+ "starred_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "languages_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "merges_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "notifications_url": {
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "pulls_url": {
+ "events_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "releases_url": {
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "ssh_url": {
+ "type": {
"type": "string",
"examples": [
- "git@github.com:octocat/Hello-World.git"
+ "User"
]
},
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "statuses_url": {
+ "starred_at": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "subscribers_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
},
- "subscription_url": {
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "tags_url": {
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "teams_url": {
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "trees_url": {
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "clone_url": {
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "hooks_url": {
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "svn_url": {
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "307",
+ "description": "Temporary Redirect
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}",
+ "title": "Delete a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Deleting a repository requires admin access.
\nIf an organization owner has configured the organization to prevent members from deleting organization-owned\nrepositories, you will get a 403 Forbidden response.
\nOAuth app tokens and personal access tokens (classic) need the delete_repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "307",
+ "description": "Temporary Redirect
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/activity",
+ "title": "List repository activities",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ref",
+ "description": "The Git reference for the activities you want to list.
\nThe ref for a branch can be formatted either as refs/heads/BRANCH_NAME or BRANCH_NAME, where BRANCH_NAME is the name of your branch.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "actor",
+ "description": "The GitHub username to use to filter by the actor who performed the activity.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for activity that occurred in the past 24 hours, and week will filter for activity that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ]
+ }
+ },
+ {
+ "name": "activity_type",
+ "description": "The activity type to filter by.
\nFor example, you can choose to filter by \"force_push\", to see all force pushes to the repository.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "push",
+ "force_push",
+ "branch_creation",
+ "branch_deletion",
+ "pr_merge",
+ "merge_queue_merge"
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.
\nFor more information about viewing repository activity,\nsee \"Viewing activity and data for your repository .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "before": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "after": "827efc6d56897b048c772eb4087f854f46256132",
+ "ref": "refs/heads/main",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "push_type": "normal",
+ "pusher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Activity",
+ "description": "Activity",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "before": {
+ "type": "string",
+ "description": "The SHA of the commit before the activity.",
+ "examples": [
+ "6dcb09b5b57875f334f61aebed695e2e4193db5e"
+ ]
+ },
+ "after": {
+ "type": "string",
+ "description": "The SHA of the commit after the activity.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "ref": {
+ "type": "string",
+ "description": "The full Git reference, formatted as `refs/heads/`.",
+ "examples": [
+ "refs/heads/main"
+ ]
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the activity occurred.",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "activity_type": {
+ "type": "string",
+ "enum": [
+ "push",
+ "force_push",
+ "branch_deletion",
+ "branch_creation",
+ "pr_merge",
+ "merge_queue_merge"
+ ],
+ "description": "The type of the activity that was performed.",
+ "examples": [
+ "force_push"
+ ]
+ },
+ "actor": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- ]
- },
- "temp_clone_token": {
- "type": [
- "string",
- "null"
- ]
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
},
- "allow_squash_merge": {
+ "required": [
+ "id",
+ "node_id",
+ "before",
+ "after",
+ "ref",
+ "timestamp",
+ "activity_type",
+ "actor"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/automated-security-fixes",
+ "title": "Check if Dependabot security updates are enabled for a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see \"Configuring Dependabot security updates \".
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response if Dependabot is enabled
",
+ "example": {
+ "enabled": true,
+ "paused": false
+ },
+ "schema": {
+ "title": "Check Dependabot security updates",
+ "description": "Check Dependabot security updates",
+ "type": "object",
+ "properties": {
+ "enabled": {
"type": "boolean",
+ "description": "Whether Dependabot security updates are enabled for the repository.",
"examples": [
true
]
},
- "allow_auto_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
+ "paused": {
"type": "boolean",
+ "description": "Whether Dependabot security updates are paused for the repository.",
"examples": [
false
]
+ }
+ },
+ "required": [
+ "enabled",
+ "paused"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Response if Dependabot is enabled
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if Dependabot is not enabled for the repository
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/automated-security-fixes",
+ "title": "Enable Dependabot security updates",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see \"Configuring Dependabot security updates \".
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/automated-security-fixes",
+ "title": "Disable Dependabot security updates",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Disables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see \"Configuring Dependabot security updates \".
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/codeowners/errors",
+ "title": "List CODEOWNERS errors",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ref",
+ "description": "A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. main)
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List any syntax errors that are detected in the CODEOWNERS\nfile.
\nFor more information about the correct CODEOWNERS syntax,\nsee \"About code owners .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "errors": [
+ {
+ "line": 3,
+ "column": 1,
+ "kind": "Invalid pattern",
+ "source": "***/*.rb @monalisa",
+ "suggestion": "Did you mean `**/*.rb`?",
+ "message": "Invalid pattern on line 3: Did you mean `**/*.rb`?\n\n ***/*.rb @monalisa\n ^",
+ "path": ".github/CODEOWNERS"
},
- "allow_merge_commit": {
- "type": "boolean",
- "examples": [
- true
- ]
+ {
+ "line": 7,
+ "column": 7,
+ "kind": "Invalid owner",
+ "source": "*.txt docs@",
+ "suggestion": null,
+ "message": "Invalid owner on line 7:\n\n *.txt docs@\n ^",
+ "path": ".github/CODEOWNERS"
+ }
+ ]
+ },
+ "schema": {
+ "title": "CODEOWNERS errors",
+ "description": "A list of errors found in a repo's CODEOWNERS file",
+ "type": "object",
+ "properties": {
+ "errors": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "line": {
+ "description": "The line number where this errors occurs.",
+ "type": "integer",
+ "examples": [
+ 7
+ ]
+ },
+ "column": {
+ "description": "The column number where this errors occurs.",
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "source": {
+ "description": "The contents of the line where the error occurs.",
+ "type": "string",
+ "examples": [
+ "* user"
+ ]
+ },
+ "kind": {
+ "description": "The type of error.",
+ "type": "string",
+ "examples": [
+ "Invalid owner"
+ ]
+ },
+ "suggestion": {
+ "description": "Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The pattern `/` will never match anything, did you mean `*` instead?"
+ ]
+ },
+ "message": {
+ "description": "A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting).",
+ "type": "string",
+ "examples": [
+ "Invalid owner on line 7:\n\n * user\n ^"
+ ]
+ },
+ "path": {
+ "description": "The path of the file where the error occured.",
+ "type": "string",
+ "examples": [
+ ".github/CODEOWNERS"
+ ]
+ }
+ },
+ "required": [
+ "line",
+ "column",
+ "kind",
+ "message",
+ "path"
+ ]
+ }
+ }
+ },
+ "required": [
+ "errors"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/contributors",
+ "title": "List repository contributors",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "anon",
+ "description": "Set to 1 or true to include anonymous contributors in results.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "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 caches contributor data to improve performance.
\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.
",
+ "codeExamples": [
+ {
+ "key": "response-if-repository-contains-content",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "If repository contains content
",
+ "example": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 32
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Contributor",
+ "description": "Contributor",
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "following_url": {
+ "type": "string"
+ },
+ "gists_url": {
+ "type": "string"
+ },
+ "starred_url": {
+ "type": "string"
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string"
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "type": "string"
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "contributions": {
+ "type": "integer"
+ },
+ "email": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "user_view_type": {
+ "type": "string"
+ }
},
- "allow_update_branch": {
+ "required": [
+ "contributions",
+ "type"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "If repository contains content
"
+ },
+ {
+ "httpStatusCode": "204",
+ "description": "Response if repository is empty
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/dispatches",
+ "title": "Create a repository dispatch event",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "event_type",
+ "in": "body",
+ "description": "A custom webhook event name. Must be 100 characters or fewer.
",
+ "isRequired": true
+ },
+ {
+ "type": "object",
+ "name": "client_payload",
+ "in": "body",
+ "description": "JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.
"
+ }
+ ],
+ "descriptionHTML": "You can use this endpoint to trigger a webhook event called repository_dispatch when you want activity that happens outside of GitHub Enterprise Cloud to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the repository_dispatch event occurs. For an example repository_dispatch webhook payload, see \"RepositoryDispatchEvent .\"
\nThe client_payload parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the client_payload can include a message that a user would like to send using a GitHub Actions workflow. Or the client_payload can be used as a test to debug your workflow.
\nThis input example shows how you can use the client_payload as a test to debug your workflow.
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "event_type": "on-demand-test",
+ "client_payload": {
+ "unit": false,
+ "integration": true
+ }
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/immutable-releases",
+ "title": "Check if immutable releases are enabled for a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Shows whether immutable releases are enabled or disabled. Also identifies whether immutability is being\nenforced by the repository owner. The authenticated user must have admin read access to the repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response if immutable releases are enabled
",
+ "example": {
+ "enabled": true,
+ "enforced_by_owner": false
+ },
+ "schema": {
+ "title": "Check immutable releases",
+ "description": "Check immutable releases",
+ "type": "object",
+ "properties": {
+ "enabled": {
"type": "boolean",
+ "description": "Whether immutable releases are enabled for the repository.",
"examples": [
true
]
},
- "use_squash_pr_title_as_default": {
+ "enforced_by_owner": {
"type": "boolean",
+ "description": "Whether immutable releases are enforced by the repository owner.",
"examples": [
false
]
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "web_commit_signoff_required": {
+ }
+ },
+ "required": [
+ "enabled",
+ "enforced_by_owner"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Response if immutable releases are enabled
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if immutable releases are not enabled for the repository
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/immutable-releases",
+ "title": "Enable immutable releases",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Enables immutable releases for a repository. The authenticated user must have admin access to the repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "A header with no content is returned.
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "A header with no content is returned.
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/immutable-releases",
+ "title": "Disable immutable releases",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Disables immutable releases for a repository. The authenticated user must have admin access to the repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "A header with no content is returned.
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "A header with no content is returned.
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/languages",
+ "title": "List repository languages",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "C": 78769,
+ "Python": 7769
+ },
+ "schema": {
+ "title": "Language",
+ "description": "Language",
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting",
+ "title": "Check if private vulnerability reporting is enabled for a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a boolean indicating whether or not private vulnerability reporting is enabled for the repository. For more information, see \"Evaluating the security settings of a repository \".
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Private vulnerability reporting status
",
+ "example": {
+ "enabled": true
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "enabled": {
"type": "boolean",
- "examples": [
- false
- ]
- },
- "subscribers_count": {
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "network_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "organization": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
+ "description": "Whether or not private vulnerability reporting is enabled for the repository."
+ }
+ },
+ "required": [
+ "enabled"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "Private vulnerability reporting status
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Bad Request
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting",
+ "title": "Enable private vulnerability reporting for a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "A header with no content is returned.
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "A header with no content is returned.
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Bad Request
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting",
+ "title": "Disable private vulnerability reporting for a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Disables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability \".
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "A header with no content is returned.
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "A header with no content is returned.
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Bad Request
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/tags",
+ "title": "List repository tags",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "name": "v0.1",
+ "commit": {
+ "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc",
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc"
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
+ "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1",
+ "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1",
+ "node_id": "MDQ6VXNlcjE="
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Tag",
+ "description": "Tag",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "v0.1"
+ ]
+ },
+ "commit": {
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string"
},
- "required": [
- "admin",
- "pull",
- "push"
- ]
+ "url": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "required": [
+ "sha",
+ "url"
+ ]
+ },
+ "zipball_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/zipball/v0.1"
+ ]
+ },
+ "tarball_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/tarball/v0.1"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "node_id",
+ "commit",
+ "zipball_url",
+ "tarball_url"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/teams",
+ "title": "List repository teams",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the teams that have access to the specified repository and that are also visible to the authenticated user.
\nFor a public repository, a team is listed only if that team added the public repository explicitly.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to use this endpoint with a public repository, and repo scope to use this endpoint with a private repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
}
},
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
},
- "lexical_commit_sha": {
- "type": "string"
- }
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
}
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/topics",
+ "title": "Get all repository topics",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "names": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ]
+ },
+ "schema": {
+ "title": "Topic",
+ "description": "A topic aggregates entities that are related to a subject.",
+ "type": "object",
+ "properties": {
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "names"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/topics",
+ "title": "Replace all repository topics",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "array of strings",
+ "name": "names",
+ "in": "body",
+ "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 will be saved as lowercase.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": "",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "names": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "names": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ]
+ },
+ "schema": {
+ "title": "Topic",
+ "description": "A topic aggregates entities that are related to a subject.",
+ "type": "object",
+ "properties": {
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "names"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/transfer",
+ "title": "Transfer a repository",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "new_owner",
+ "in": "body",
+ "description": "The username or organization name the repository will be transferred to.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "new_name",
+ "in": "body",
+ "description": "The new name to be given to the repository.
"
+ },
+ {
+ "type": "array of integers",
+ "name": "team_ids",
+ "in": "body",
+ "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
"
+ }
+ ],
+ "descriptionHTML": "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 .
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "new_owner": "github",
+ "team_ids": [
+ 12,
+ 345
+ ],
+ "new_name": "octorepo"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ }
+ },
+ "schema": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
]
},
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
"name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
"type": [
"string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "deployments_url": {
+ "login": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "octocat"
]
},
- "downloads_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ 1
]
},
- "events_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "MDQ6VXNlcjE="
]
},
- "forks_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "labels_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "languages_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat"
]
},
- "merges_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://github.com/octocat"
]
},
- "stargazers_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/followers"
]
},
- "statuses_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "subscribers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "subscription_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "tags_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "teams_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "clone_url": {
+ "repos_url": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
"format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/repos"
]
},
- "hooks_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "svn_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ "https://api.github.com/users/octocat/received_events"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "type": {
"type": "string",
"examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "User"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
+ "site_admin": {
"type": "boolean"
},
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
+ "starred_at": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
"examples": [
- true
+ "\"2020-07-09T00:17:55Z\""
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
+ "user_view_type": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "public"
]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "forks": {
- "type": "integer"
+ "private": {
+ "type": "boolean"
},
- "master_branch": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
"type": "string"
},
- "open_issues": {
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer"
},
- "watchers": {
+ "stargazers_count": {
"type": "integer"
},
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
"type": "boolean"
},
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
"code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
"type": "object",
"properties": {
- "url": {
+ "key": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ "contributor_covenant"
]
},
- "key": {
+ "name": {
"type": "string",
"examples": [
- "citizen_code_of_conduct"
+ "Contributor Covenant"
]
},
- "name": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
"type": "string",
"examples": [
- "Citizen Code of Conduct"
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
]
},
"html_url": {
@@ -711322,17 +749064,67 @@
"string",
"null"
],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
+ "format": "uri"
}
},
"required": [
"url",
+ "html_url",
"key",
- "name",
- "html_url"
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
]
},
"security_and_analysis": {
@@ -711494,36 +749286,7 @@
"tags_url",
"teams_url",
"trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "network_count",
- "subscribers_count"
+ "url"
]
}
}
@@ -711533,115 +749296,28 @@
{
"httpStatusCode": "202",
"description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
+ "serverToServer": false,
+ "fineGrainedPat": false,
"permissions": [
{
- "\"Administration\" repository permissions": "write",
- "\"Contents\" repository permissions": "read"
- }
- ]
- }
- }
- ],
- "lfs": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/lfs",
- "title": "Enable Git LFS for a repository",
- "category": "repos",
- "subcategory": "lfs",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Enables Git LFS for a repository.
\nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "202",
- "contentType": "application/json",
- "description": "Accepted
",
- "example": null,
- "schema": {
- "type": "object"
- }
+ "\"Administration\" repository permissions": "write"
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "403",
- "description": "We will return a 403 with one of the following messages:
\n\nGit LFS support not enabled because Git LFS is globally disabled. \nGit LFS support not enabled because Git LFS is disabled for the root repository in the network. \nGit LFS support not enabled because Git LFS is disabled for . \n "
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
+ ],
+ "disabledForPatV2": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/lfs",
- "title": "Disable Git LFS for a repository",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/vulnerability-alerts",
+ "title": "Check if vulnerability alerts are enabled for a repository",
"category": "repos",
- "subcategory": "lfs",
+ "subcategory": "repos",
"parameters": [
{
"name": "owner",
@@ -711663,7 +749339,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Disables Git LFS for a repository.
\nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "descriptionHTML": "Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin read access to the repository. For more information, see \"About security alerts for vulnerable dependencies \".
",
"codeExamples": [
{
"key": "default",
@@ -711677,506 +749353,82 @@
},
"response": {
"statusCode": "204",
- "description": "Response
"
+ "description": "Response if repository is enabled with vulnerability alerts
"
}
}
],
"statusCodes": [
{
"httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- }
- ],
- "rule-suites": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/rule-suites",
- "title": "List repository rule suites",
- "category": "repos",
- "subcategory": "rule-suites",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ref",
- "description": "The name of the ref. Cannot contain wildcard characters. Optionally prefix with refs/heads/ to limit to branches or refs/tags/ to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- },
- {
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
- }
- },
- {
- "name": "actor_name",
- "description": "The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.
",
- "in": "query",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "rule_suite_result",
- "description": "The rule suite results to filter on. When specified, only suites with this result will be returned.
",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "pass",
- "fail",
- "bypass",
- "all"
- ],
- "default": "all"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists suites of rule evaluations at the repository level.\nFor more information, see \"Managing rulesets for a repository .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 21,
- "actor_id": 12,
- "actor_name": "octocat",
- "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d",
- "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01",
- "ref": "refs/heads/i-see-everything",
- "repository_id": 404,
- "repository_name": "octo-repo",
- "pushed_at": "2023-07-06T08:43:03Z",
- "result": "bypass"
- },
- {
- "id": 25,
- "actor_id": 11,
- "actor_name": "not-octocat",
- "before_sha": "48994e4e01ccc943624c6231f172702b82b233cc",
- "after_sha": "ecfd5a1025fa271a33ca5608d089476a2df3c9a1",
- "ref": "refs/heads/i-am-everything",
- "repository_id": 404,
- "repository_name": "octo-repo",
- "pushed_at": "2023-07-07T08:43:03Z",
- "result": "pass",
- "evaluation_result": "fail"
- }
- ],
- "schema": {
- "title": "Rule Suites",
- "description": "Response",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the rule insight."
- },
- "actor_id": {
- "type": "integer",
- "description": "The number that identifies the user."
- },
- "actor_name": {
- "type": "string",
- "description": "The handle for the GitHub user account."
- },
- "before_sha": {
- "type": "string",
- "description": "The first commit sha before the push evaluation."
- },
- "after_sha": {
- "type": "string",
- "description": "The last commit sha in the push evaluation."
- },
- "ref": {
- "type": "string",
- "description": "The ref name that the evaluation ran on."
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository associated with the rule evaluation."
- },
- "repository_name": {
- "type": "string",
- "description": "The name of the repository without the `.git` extension."
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "result": {
- "type": "string",
- "enum": [
- "pass",
- "fail",
- "bypass"
- ],
- "description": "The result of the rule evaluations for rules with the `active` enforcement status."
- },
- "evaluation_result": {
- "type": "string",
- "enum": [
- "pass",
- "fail",
- "bypass"
- ],
- "description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
+ "description": "Response if repository is enabled with vulnerability alerts
"
},
{
"httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "description": "Not Found if repository is not enabled with vulnerability alerts
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
"serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}",
- "title": "Get a repository rule suite",
- "category": "repos",
- "subcategory": "rule-suites",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "rule_suite_id",
- "description": "The unique identifier of the rule suite result.\nTo get this ID, you can use GET /repos/{owner}/{repo}/rulesets/rule-suites \nfor repositories and GET /orgs/{org}/rulesets/rule-suites \nfor organizations.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets information about a suite of rule evaluations from within a repository.\nFor more information, see \"Managing rulesets for a repository .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "rule_suite_id": "RULE_SUITE_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 21,
- "actor_id": 12,
- "actor_name": "octocat",
- "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d",
- "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01",
- "ref": "refs/heads/i-see-everything",
- "repository_id": 404,
- "repository_name": "octo-repo",
- "pushed_at": "2023-07-06T08:43:03Z",
- "result": "bypass",
- "evaluation_result": "fail",
- "rule_evaluations": [
- {
- "rule_source": {
- "type": "ruleset",
- "id": 2,
- "name": "Author email must be a GitHub email address"
- },
- "enforcement": "active",
- "result": "pass",
- "rule_type": "commit_author_email_pattern"
- },
- {
- "rule_source": {
- "type": "protected_branch"
- },
- "enforcement": "active",
- "result": "fail",
- "rule_type": "pull_request",
- "details": "Changes must be made through a pull request."
- },
- {
- "rule_source": {
- "type": "ruleset",
- "id": 3,
- "name": "Evaluate commit message pattern"
- },
- "enforcement": "evaluate",
- "result": "fail",
- "rule_type": "commit_message_pattern"
- }
- ]
- },
- "schema": {
- "title": "Rule Suite",
- "description": "Response",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the rule insight."
- },
- "actor_id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The number that identifies the user."
- },
- "actor_name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The handle for the GitHub user account."
- },
- "before_sha": {
- "type": "string",
- "description": "The previous commit SHA of the ref."
- },
- "after_sha": {
- "type": "string",
- "description": "The new commit SHA of the ref."
- },
- "ref": {
- "type": "string",
- "description": "The ref name that the evaluation ran on."
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository associated with the rule evaluation."
- },
- "repository_name": {
- "type": "string",
- "description": "The name of the repository without the `.git` extension."
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "result": {
- "type": "string",
- "enum": [
- "pass",
- "fail",
- "bypass"
- ],
- "description": "The result of the rule evaluations for rules with the `active` enforcement status."
- },
- "evaluation_result": {
- "type": [
- "string",
- "null"
- ],
- "enum": [
- "pass",
- "fail",
- "bypass",
- null
- ],
- "description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run."
- },
- "rule_evaluations": {
- "type": "array",
- "description": "Details on the evaluated rules.",
- "items": {
- "type": "object",
- "properties": {
- "rule_source": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of rule source."
- },
- "id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the rule source."
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The name of the rule source."
- }
- }
- },
- "enforcement": {
- "type": "string",
- "enum": [
- "active",
- "evaluate",
- "deleted ruleset"
- ],
- "description": "The enforcement level of this rule source."
- },
- "result": {
- "type": "string",
- "enum": [
- "pass",
- "fail"
- ],
- "description": "The result of the evaluation of the individual rule."
- },
- "rule_type": {
- "type": "string",
- "description": "The type of rule."
- },
- "details": {
- "type": [
- "string",
- "null"
- ],
- "description": "The detailed failure message for the rule. Null if the rule passed."
- }
- }
- }
- }
- }
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/vulnerability-alerts",
+ "title": "Enable vulnerability alerts",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see \"About security alerts for vulnerable dependencies \".
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
}
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "204",
+ "description": "No Content
"
}
],
"previews": [],
@@ -712190,16 +749442,14 @@
}
]
}
- }
- ],
- "rules": [
+ },
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rules/branches/{branch}",
- "title": "Get rules for a branch",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/vulnerability-alerts",
+ "title": "Disable vulnerability alerts",
"category": "repos",
- "subcategory": "rules",
+ "subcategory": "repos",
"parameters": [
{
"name": "owner",
@@ -712218,5487 +749468,5749 @@
"schema": {
"type": "string"
}
- },
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Disables dependency alerts and the dependency graph for a repository.\nThe authenticated user must have admin access to the repository. For more information,\nsee \"About security alerts for vulnerable dependencies \".
",
+ "codeExamples": [
{
- "name": "branch",
- "description": "The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API .
",
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{template_owner}/{template_repo}/generate",
+ "title": "Create a repository using a template",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "template_owner",
+ "description": "The account owner of the template repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
- },
- "x-multi-segment": true
+ }
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "template_repo",
+ "description": "The name of the template repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "owner",
+ "in": "body",
+ "description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
"
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the new repository.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A short description of the new repository.
"
+ },
+ {
+ "type": "boolean",
+ "name": "include_all_branches",
+ "in": "body",
+ "description": "Set to true to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: false.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "private",
+ "in": "body",
+ "description": "Either true to create a new private repository or false to create a new public one.
",
+ "default": false
}
],
- "bodyParameters": [],
- "descriptionHTML": "Returns all active rules that apply to the specified branch. The branch does not need to exist; rules that would apply\nto a branch with that name will be returned. All active rules that apply will be returned, regardless of the level\nat which they are configured (e.g. repository or organization). Rules in rulesets with \"evaluate\" or \"disabled\"\nenforcement statuses are not returned.
",
+ "descriptionHTML": "Creates a new repository using a repository template. Use the template_owner and template_repo route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the Get a repository endpoint and check that the is_template key is true.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "owner": "octocat",
+ "name": "Hello-World",
+ "description": "This is your first repository",
+ "include_all_branches": false,
+ "private": false
+ },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "branch": "BRANCH"
+ "template_owner": "TEMPLATE_OWNER",
+ "template_repo": "TEMPLATE_REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "type": "commit_message_pattern",
- "ruleset_source_type": "Repository",
- "ruleset_source": "monalisa/my-repo",
- "ruleset_id": 42,
- "parameters": {
- "operator": "starts_with",
- "pattern": "issue"
- }
+ "example": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- {
- "type": "commit_author_email_pattern",
- "ruleset_source_type": "Organization",
- "ruleset_source": "my-org",
- "ruleset_id": 73,
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "language": null,
+ "forks_count": 9,
+ "forks": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "open_issues": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "pull": true,
+ "push": false,
+ "admin": false
+ },
+ "allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
}
- ],
+ },
"schema": {
- "type": "array",
- "items": {
- "title": "Repository Rule",
- "type": "object",
- "description": "A repository rule with ruleset details.",
- "oneOf": [
- {
- "allOf": [
- {
- "title": "creation",
- "description": "Only allow users with bypass permission to create matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "creation"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "update",
- "description": "Only allow users with bypass permission to update matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "update"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "update_allows_fetch_and_merge": {
- "type": "boolean",
- "description": "Branch can pull changes from its upstream repository"
- }
- },
- "required": [
- "update_allows_fetch_and_merge"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "deletion"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_linear_history"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "merge_queue",
- "description": "Merges must be performed via a merge queue.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "merge_queue"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "check_response_timeout_minutes": {
- "type": "integer",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
- "minimum": 1,
- "maximum": 360
- },
- "grouping_strategy": {
- "type": "string",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
- ]
- },
- "max_entries_to_build": {
- "type": "integer",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
- "minimum": 0,
- "maximum": 100
- },
- "max_entries_to_merge": {
- "type": "integer",
- "description": "The maximum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "merge_method": {
- "type": "string",
- "description": "Method to use when merging changes from queued pull requests.",
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
- ]
- },
- "min_entries_to_merge": {
- "type": "integer",
- "description": "The minimum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "min_entries_to_merge_wait_minutes": {
- "type": "integer",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
- "minimum": 0,
- "maximum": 360
- }
- },
- "required": [
- "check_response_timeout_minutes",
- "grouping_strategy",
- "max_entries_to_build",
- "max_entries_to_merge",
- "merge_method",
- "min_entries_to_merge",
- "min_entries_to_merge_wait_minutes"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_deployments"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "required_deployment_environments": {
- "type": "array",
- "description": "The environments that must be successfully deployed to before branches can be merged.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "required_deployment_environments"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_signatures"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "pull_request"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "allowed_merge_methods": {
- "type": "array",
- "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
- "items": {
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- },
- "dismiss_stale_reviews_on_push": {
- "type": "boolean",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
- },
- "require_code_owner_review": {
- "type": "boolean",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner."
- },
- "require_last_push_approval": {
- "type": "boolean",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
- },
- "required_approving_review_count": {
- "type": "integer",
- "description": "The number of approving reviews that are required before a pull request can be merged.",
- "minimum": 0,
- "maximum": 10
- },
- "required_review_thread_resolution": {
- "type": "boolean",
- "description": "All conversations on code must be resolved before a pull request can be merged."
- },
- "required_reviewers": {
- "type": "array",
- "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
- "items": {
- "title": "RequiredReviewerConfiguration",
- "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
- "type": "object",
- "properties": {
- "file_patterns": {
- "type": "array",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
- "items": {
- "type": "string"
- }
- },
- "minimum_approvals": {
- "type": "integer",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
- },
- "reviewer": {
- "title": "Reviewer",
- "description": "A required reviewing team",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "ID of the reviewer which must review changes to matching files."
- },
- "type": {
- "type": "string",
- "description": "The type of the reviewer",
- "enum": [
- "Team"
- ]
- }
- },
- "required": [
- "id",
- "type"
- ]
- }
- },
- "required": [
- "file_patterns",
- "minimum_approvals",
- "reviewer"
- ]
- }
- }
- },
- "required": [
- "dismiss_stale_reviews_on_push",
- "require_code_owner_review",
- "require_last_push_approval",
- "required_approving_review_count",
- "required_review_thread_resolution"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_status_checks"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "required_status_checks": {
- "type": "array",
- "description": "Status checks that are required.",
- "items": {
- "title": "StatusCheckConfiguration",
- "description": "Required status check",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "description": "The status check context name that must be present on the commit."
- },
- "integration_id": {
- "type": "integer",
- "description": "The optional integration ID that this status check must originate from."
- }
- },
- "required": [
- "context"
- ]
- }
- },
- "strict_required_status_checks_policy": {
- "type": "boolean",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
- }
- },
- "required": [
- "required_status_checks",
- "strict_required_status_checks_policy"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
+ "title": "Full Repository",
+ "description": "Full Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- {
- "allOf": [
- {
- "title": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "non_fast_forward"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- {
- "allOf": [
- {
- "title": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_message_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
+ ]
+ },
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
},
- {
- "allOf": [
- {
- "title": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_author_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "committer_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
},
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "branch_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
+ "pull": {
+ "type": "boolean"
},
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "tag_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
+ "triage": {
+ "type": "boolean"
},
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_path_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_paths": {
- "type": "array",
- "description": "The file paths that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
+ "push": {
+ "type": "boolean"
},
- "required": [
- "restricted_file_paths"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_path_length"
- ]
+ "maintain": {
+ "type": "boolean"
+ }
},
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_path_length": {
- "type": "integer",
- "description": "The maximum amount of characters allowed in file paths.",
- "minimum": 1,
- "maximum": 32767
- }
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "required": [
- "max_file_path_length"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_extension_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_extensions": {
- "type": "array",
- "description": "The file extensions that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "required": [
- "restricted_file_extensions"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_size"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_size": {
- "type": "integer",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
- "minimum": 1,
- "maximum": 100
- }
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "required": [
- "max_file_size"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "workflows"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "workflows": {
- "type": "array",
- "description": "Workflows that must pass for this rule to pass.",
- "items": {
- "title": "WorkflowFileReference",
- "description": "A workflow that must run for this rule to pass",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path to the workflow file"
- },
- "ref": {
- "type": "string",
- "description": "The ref (branch or tag) of the workflow file to use"
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository where the workflow is defined"
- },
- "sha": {
- "type": "string",
- "description": "The commit SHA of the workflow file to use"
- }
- },
- "required": [
- "path",
- "repository_id"
- ]
- }
- }
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
},
- "required": [
- "workflows"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "code_scanning"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "code_scanning_tools": {
- "type": "array",
- "description": "Tools that must provide code scanning results for this rule to pass.",
- "items": {
- "title": "CodeScanningTool",
- "description": "A tool that must provide code scanning results for this rule to pass.",
- "type": "object",
- "properties": {
- "alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
- ]
- },
- "security_alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
- ]
- },
- "tool": {
- "type": "string",
- "description": "The name of a code scanning tool"
- }
- },
- "required": [
- "alerts_threshold",
- "security_alerts_threshold",
- "tool"
- ]
- }
- }
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
},
- "required": [
- "code_scanning_tools"
- ]
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
- },
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- },
- {
- "allOf": [
- {
- "title": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "copilot_code_review"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "review_draft_pull_requests": {
- "type": "boolean",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
- },
- "review_on_push": {
- "type": "boolean",
- "description": "Copilot automatically reviews each new push to the pull request."
- }
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
- }
- }
- },
- {
- "title": "repository ruleset data for rule",
- "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
- "properties": {
- "ruleset_source_type": {
- "type": "string",
- "description": "The type of source for the ruleset that includes this rule.",
- "enum": [
- "Repository",
- "Organization"
- ]
- },
- "ruleset_source": {
- "type": "string",
- "description": "The name of the source of the ruleset that includes this rule."
},
- "ruleset_id": {
- "type": "integer",
- "description": "The ID of the ruleset that includes this rule."
- }
- }
- }
- ]
- }
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets",
- "title": "Get all repository rulesets",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "includes_parents",
- "description": "Include rulesets configured at higher levels that apply to this repository
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": true
- }
- },
- {
- "name": "targets",
- "description": "A comma-separated list of rule targets to filter by.\nIf provided, only rulesets that apply to the specified targets will be returned.\nFor example, branch,tag,push.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "examples": [
- "branch,tag,push"
- ]
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get all the rulesets for a repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 42,
- "name": "super cool ruleset",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "enabled",
- "node_id": "RRS_lACkVXNlcgQB",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
- },
- "html": {
- "href": "https://github.com/monalisa/my-repo/rules/42"
- }
- },
- "created_at": "2023-07-15T08:43:03Z",
- "updated_at": "2023-08-23T16:29:47Z"
- },
- {
- "id": 314,
- "name": "Another ruleset",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "enabled",
- "node_id": "RRS_lACkVXNlcgQQ",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/314"
- },
- "html": {
- "href": "https://github.com/monalisa/my-repo/rules/314"
- }
- },
- "created_at": "2023-08-15T08:43:03Z",
- "updated_at": "2023-09-23T16:29:47Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Repository ruleset",
- "type": "object",
- "description": "A set of rules to apply when specified conditions are met.",
- "required": [
- "id",
- "name",
- "source",
- "enforcement"
- ],
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the ruleset"
- },
- "name": {
- "type": "string",
- "description": "The name of the ruleset"
- },
- "target": {
- "type": "string",
- "description": "The target of the ruleset",
- "enum": [
- "branch",
- "tag",
- "push",
- "repository"
- ]
- },
- "source_type": {
- "type": "string",
- "description": "The type of the source of the ruleset",
- "enum": [
- "Repository",
- "Organization",
- "Enterprise"
- ]
- },
- "source": {
- "type": "string",
- "description": "The name of the source"
- },
- "enforcement": {
- "type": "string",
- "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
- "enum": [
- "disabled",
- "active",
- "evaluate"
- ]
- },
- "bypass_actors": {
- "type": "array",
- "description": "The actors that can bypass the rules in this ruleset",
- "items": {
- "title": "Repository Ruleset Bypass Actor",
- "type": "object",
- "description": "An actor that can bypass rules in a ruleset",
- "required": [
- "actor_type"
- ],
- "properties": {
- "actor_id": {
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
- "integer",
+ "string",
"null"
],
- "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
+ "examples": [
+ "This your first repo!"
+ ]
},
- "actor_type": {
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
- "enum": [
- "Integration",
- "OrganizationAdmin",
- "RepositoryRole",
- "Team",
- "DeployKey",
- "EnterpriseOwner"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
],
- "description": "The type of actor that can bypass a ruleset"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "bypass_mode": {
+ "hooks_url": {
"type": "string",
- "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
- "enum": [
- "always",
- "pull_request",
- "exempt"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
],
- "default": "always"
- }
- }
- }
- },
- "current_user_can_bypass": {
- "type": "string",
- "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
- "enum": [
- "always",
- "pull_requests_only",
- "never",
- "exempt"
- ]
- },
- "node_id": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "description": "The URL of the ruleset"
- }
- }
- },
- "html": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "href": {
- "type": "string",
- "description": "The html URL of the ruleset"
- }
- }
- }
- }
- },
- "conditions": {
- "anyOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Organization ruleset conditions",
- "type": "object",
- "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
- "oneOf": [
- {
- "type": "object",
- "title": "repository_name_and_ref_name",
- "description": "Conditions to target repositories by name and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository names",
- "type": "object",
- "description": "Parameters for a repository name condition",
- "properties": {
- "repository_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- },
- "protected": {
- "type": "boolean",
- "description": "Whether renaming of target repositories is prevented."
- }
- }
- }
- },
- "required": [
- "repository_name"
- ]
- }
- ]
- },
- {
- "type": "object",
- "title": "repository_id_and_ref_name",
- "description": "Conditions to target repositories by id and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository IDs",
- "type": "object",
- "description": "Parameters for a repository ID condition",
- "properties": {
- "repository_id": {
- "type": "object",
- "properties": {
- "repository_ids": {
- "type": "array",
- "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- },
- "required": [
- "repository_id"
- ]
- }
- ]
- },
- {
- "type": "object",
- "title": "repository_property_and_ref_name",
- "description": "Conditions to target repositories by property and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository properties",
- "type": "object",
- "description": "Parameters for a repository property condition",
- "properties": {
- "repository_property": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- },
- "exclude": {
- "type": "array",
- "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- }
- }
- }
- },
- "required": [
- "repository_property"
- ]
- }
- ]
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
- ]
- }
- ],
- "type": [
- "null",
- "object"
- ]
- },
- "rules": {
- "type": "array",
- "items": {
- "title": "Repository Rule",
- "type": "object",
- "description": "A repository rule.",
- "oneOf": [
- {
- "title": "creation",
- "description": "Only allow users with bypass permission to create matching refs.",
- "type": "object",
- "required": [
- "type"
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "creation"
- ]
- }
- }
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
},
- {
- "title": "update",
- "description": "Only allow users with bypass permission to update matching refs.",
- "type": "object",
- "required": [
- "type"
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "update"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "update_allows_fetch_and_merge": {
- "type": "boolean",
- "description": "Branch can pull changes from its upstream repository"
- }
- },
- "required": [
- "update_allows_fetch_and_merge"
- ]
- }
- }
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
},
- {
- "title": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.",
- "type": "object",
- "required": [
- "type"
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "deletion"
- ]
- }
- }
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
- {
- "title": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.",
- "type": "object",
- "required": [
- "type"
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_linear_history"
- ]
- }
- }
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
},
- {
- "title": "merge_queue",
- "description": "Merges must be performed via a merge queue.",
- "type": "object",
- "required": [
- "type"
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "merge_queue"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "check_response_timeout_minutes": {
- "type": "integer",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
- "minimum": 1,
- "maximum": 360
- },
- "grouping_strategy": {
- "type": "string",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
- ]
- },
- "max_entries_to_build": {
- "type": "integer",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
- "minimum": 0,
- "maximum": 100
- },
- "max_entries_to_merge": {
- "type": "integer",
- "description": "The maximum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "merge_method": {
- "type": "string",
- "description": "Method to use when merging changes from queued pull requests.",
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
- ]
- },
- "min_entries_to_merge": {
- "type": "integer",
- "description": "The minimum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "min_entries_to_merge_wait_minutes": {
- "type": "integer",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
- "minimum": 0,
- "maximum": 360
- }
- },
- "required": [
- "check_response_timeout_minutes",
- "grouping_strategy",
- "max_entries_to_build",
- "max_entries_to_merge",
- "merge_method",
- "min_entries_to_merge",
- "min_entries_to_merge_wait_minutes"
- ]
- }
- }
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
},
- {
- "title": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
- "type": "object",
- "required": [
- "type"
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
"properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_deployments"
- ]
+ "lexical_search_ok": {
+ "type": "boolean"
},
- "parameters": {
- "type": "object",
- "properties": {
- "required_deployment_environments": {
- "type": "array",
- "description": "The environments that must be successfully deployed to before branches can be merged.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "required_deployment_environments"
- ]
+ "lexical_commit_sha": {
+ "type": "string"
}
}
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "allow_squash_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
},
- {
- "title": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.",
- "type": "object",
- "required": [
- "type"
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_signatures"
- ]
- }
- }
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
},
- {
- "title": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
- "type": "object",
- "required": [
- "type"
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "pull_request"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "allowed_merge_methods": {
- "type": "array",
- "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
- "items": {
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- },
- "dismiss_stale_reviews_on_push": {
- "type": "boolean",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
- },
- "require_code_owner_review": {
- "type": "boolean",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner."
- },
- "require_last_push_approval": {
- "type": "boolean",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
- },
- "required_approving_review_count": {
- "type": "integer",
- "description": "The number of approving reviews that are required before a pull request can be merged.",
- "minimum": 0,
- "maximum": 10
- },
- "required_review_thread_resolution": {
- "type": "boolean",
- "description": "All conversations on code must be resolved before a pull request can be merged."
- },
- "required_reviewers": {
- "type": "array",
- "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
- "items": {
- "title": "RequiredReviewerConfiguration",
- "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
- "type": "object",
- "properties": {
- "file_patterns": {
- "type": "array",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
- "items": {
- "type": "string"
- }
- },
- "minimum_approvals": {
- "type": "integer",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
- },
- "reviewer": {
- "title": "Reviewer",
- "description": "A required reviewing team",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "ID of the reviewer which must review changes to matching files."
- },
- "type": {
- "type": "string",
- "description": "The type of the reviewer",
- "enum": [
- "Team"
- ]
- }
- },
- "required": [
- "id",
- "type"
- ]
- }
- },
- "required": [
- "file_patterns",
- "minimum_approvals",
- "reviewer"
- ]
- }
- }
- },
- "required": [
- "dismiss_stale_reviews_on_push",
- "require_code_owner_review",
- "require_last_push_approval",
- "required_approving_review_count",
- "required_review_thread_resolution"
- ]
- }
- }
+ "examples": [
+ "MIT"
+ ]
},
- {
- "title": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
- "type": "object",
- "required": [
- "type"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_status_checks"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "required_status_checks": {
- "type": "array",
- "description": "Status checks that are required.",
- "items": {
- "title": "StatusCheckConfiguration",
- "description": "Required status check",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "description": "The status check context name that must be present on the commit."
- },
- "integration_id": {
- "type": "integer",
- "description": "The optional integration ID that this status check must originate from."
- }
- },
- "required": [
- "context"
- ]
- }
- },
- "strict_required_status_checks_policy": {
- "type": "boolean",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
- }
- },
- "required": [
- "required_status_checks",
- "strict_required_status_checks_policy"
- ]
- }
- }
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
},
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
{
- "title": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "non_fast_forward"
- ]
- }
- }
+ "type": "null"
},
{
- "title": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule",
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "key": {
"type": "string",
- "enum": [
- "commit_message_pattern"
+ "examples": [
+ "mit"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
+ "name": {
"type": "string",
- "enum": [
- "commit_author_email_pattern"
+ "examples": [
+ "MIT License"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "committer_email_pattern"
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
]
- }
- }
- },
- {
- "title": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
+ },
+ "node_id": {
"type": "string",
- "enum": [
- "branch_name_pattern"
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
- }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
},
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
{
- "title": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "tag_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
+ "type": "null"
},
{
- "title": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "key": {
"type": "string",
- "enum": [
- "file_path_restriction"
+ "examples": [
+ "mit"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_paths": {
- "type": "array",
- "description": "The file paths that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "restricted_file_paths"
- ]
- }
- }
- },
- {
- "title": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
+ "name": {
"type": "string",
- "enum": [
- "max_file_path_length"
+ "examples": [
+ "MIT License"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_path_length": {
- "type": "integer",
- "description": "The maximum amount of characters allowed in file paths.",
- "minimum": 1,
- "maximum": 32767
- }
- },
- "required": [
- "max_file_path_length"
- ]
- }
- }
- },
- {
- "title": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_extension_restriction"
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_extensions": {
- "type": "array",
- "description": "The file extensions that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "restricted_file_extensions"
- ]
- }
- }
- },
- {
- "title": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_size"
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_size": {
- "type": "integer",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
- "minimum": 1,
- "maximum": 100
- }
- },
- "required": [
- "max_file_size"
- ]
- }
- }
- },
- {
- "title": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
+ "node_id": {
"type": "string",
- "enum": [
- "workflows"
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "workflows": {
- "type": "array",
- "description": "Workflows that must pass for this rule to pass.",
- "items": {
- "title": "WorkflowFileReference",
- "description": "A workflow that must run for this rule to pass",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path to the workflow file"
- },
- "ref": {
- "type": "string",
- "description": "The ref (branch or tag) of the workflow file to use"
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository where the workflow is defined"
- },
- "sha": {
- "type": "string",
- "description": "The commit SHA of the workflow file to use"
- }
- },
- "required": [
- "path",
- "repository_id"
- ]
- }
- }
- },
- "required": [
- "workflows"
- ]
- }
- }
- },
- {
- "title": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
+ "html_url": {
"type": "string",
- "enum": [
- "code_scanning"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "code_scanning_tools": {
- "type": "array",
- "description": "Tools that must provide code scanning results for this rule to pass.",
- "items": {
- "title": "CodeScanningTool",
- "description": "A tool that must provide code scanning results for this rule to pass.",
- "type": "object",
- "properties": {
- "alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
- ]
- },
- "security_alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
- ]
- },
- "tool": {
- "type": "string",
- "description": "The name of a code scanning tool"
- }
- },
- "required": [
- "alerts_threshold",
- "security_alerts_threshold",
- "tool"
- ]
- }
- }
- },
- "required": [
- "code_scanning_tools"
- ]
+ "format": "uri"
}
- }
- },
- {
- "title": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
- "type": "object",
+ },
"required": [
- "type"
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "copilot_code_review"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "review_draft_pull_requests": {
- "type": "boolean",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
- },
- "review_on_push": {
- "type": "boolean",
- "description": "Copilot automatically reviews each new push to the pull request."
- }
- }
- }
- }
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
- }
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Metadata\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/rulesets",
- "title": "Create a repository ruleset",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the ruleset.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "target",
- "in": "body",
- "description": "The target of the ruleset
",
- "enum": [
- "branch",
- "tag",
- "push"
- ],
- "default": "branch"
- },
- {
- "type": "string",
- "name": "enforcement",
- "in": "body",
- "description": "The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate is not available for the repository target.
",
- "isRequired": true,
- "enum": [
- "disabled",
- "active",
- "evaluate"
- ]
- },
- {
- "type": "array of objects",
- "name": "bypass_actors",
- "in": "body",
- "description": "The actors that can bypass the rules in this ruleset
",
- "childParamsGroups": [
- {
- "type": "integer or null",
- "name": "actor_id",
- "description": "The ID of the actor that can bypass a ruleset. Required for Integration, RepositoryRole, and Team actor types. If actor_type is OrganizationAdmin, this should be 1. If actor_type is DeployKey, this should be null. If actor_type is EnterpriseOwner, actor_id is ignored. OrganizationAdmin and EnterpriseOwner are not applicable for personal repositories.
"
- },
- {
- "type": "string",
- "name": "actor_type",
- "description": "The type of actor that can bypass a ruleset
",
- "isRequired": true,
- "enum": [
- "Integration",
- "OrganizationAdmin",
- "RepositoryRole",
- "Team",
- "DeployKey",
- "EnterpriseOwner"
- ]
- },
- {
- "type": "string",
- "name": "bypass_mode",
- "description": "When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. pull_request is not applicable for the DeployKey actor type. Also, pull_request is only applicable to branch rulesets. When bypass_mode is exempt, rules will not be run for that actor and a bypass audit entry will not be created.
",
- "enum": [
- "always",
- "pull_request",
- "exempt"
- ],
- "default": "always"
- }
- ]
- },
- {
- "type": "object",
- "name": "conditions",
- "in": "body",
- "description": "Parameters for a repository ruleset ref name condition
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "ref_name",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "include",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches.
"
- },
- {
- "type": "array of strings",
- "name": "exclude",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
"
- }
- ]
- }
- ]
- },
- {
- "type": "array of objects",
- "name": "rules",
- "in": "body",
- "description": "An array of rules within the ruleset.
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "creation",
- "description": "Only allow users with bypass permission to create matching refs.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "creation"
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "update",
- "description": "Only allow users with bypass permission to update matching refs.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "update"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "update_allows_fetch_and_merge",
- "description": "Branch can pull changes from its upstream repository
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "deletion"
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_linear_history"
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "merge_queue",
- "description": "Merges must be performed via a merge queue.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "merge_queue"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "check_response_timeout_minutes",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed
",
- "isRequired": true
},
- {
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
- "name": "grouping_strategy",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
",
- "isRequired": true,
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
]
},
- {
- "type": "integer",
- "name": "max_entries_to_build",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.
",
- "isRequired": true
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
},
- {
- "type": "integer",
- "name": "max_entries_to_merge",
- "description": "The maximum number of PRs that will be merged together in a group.
",
- "isRequired": true
+ "fork": {
+ "type": "boolean"
},
- {
+ "url": {
"type": "string",
- "name": "merge_method",
- "description": "Method to use when merging changes from queued pull requests.
",
- "isRequired": true,
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- {
- "type": "integer",
- "name": "min_entries_to_merge",
- "description": "The minimum number of PRs that will be merged together in a group.
",
- "isRequired": true
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
},
- {
- "type": "integer",
- "name": "min_entries_to_merge_wait_minutes",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_deployments"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "required_deployment_environments",
- "description": "The environments that must be successfully deployed to before branches can be merged.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_signatures"
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "pull_request"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "allowed_merge_methods",
- "description": "Array of allowed merge methods. Allowed values include merge, squash, and rebase. At least one option must be enabled.\nSupported values are: merge, squash, rebase
"
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
},
- {
- "type": "boolean",
- "name": "dismiss_stale_reviews_on_push",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals.
",
- "isRequired": true
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
},
- {
- "type": "boolean",
- "name": "require_code_owner_review",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner.
",
- "isRequired": true
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
},
- {
- "type": "boolean",
- "name": "require_last_push_approval",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
",
- "isRequired": true
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
},
- {
- "type": "integer",
- "name": "required_approving_review_count",
- "description": "The number of approving reviews that are required before a pull request can be merged.
",
- "isRequired": true
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
},
- {
- "type": "boolean",
- "name": "required_review_thread_resolution",
- "description": "All conversations on code must be resolved before a pull request can be merged.
",
- "isRequired": true
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
},
- {
- "type": "array of objects",
- "name": "required_reviewers",
- "description": " Note
\n
\nrequired_reviewers is in beta and subject to change.
\n
\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "file_patterns",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "minimum_approvals",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
",
- "isRequired": true
- },
- {
- "type": "object",
- "name": "reviewer",
- "description": "A required reviewing team
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "id",
- "description": "ID of the reviewer which must review changes to matching files.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of the reviewer
",
- "isRequired": true,
- "enum": [
- "Team"
- ]
- }
- ]
- }
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_status_checks"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "do_not_enforce_on_create",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
},
- {
- "type": "array of objects",
- "name": "required_status_checks",
- "description": "Status checks that are required.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "context",
- "description": "The status check context name that must be present on the commit.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "integration_id",
- "description": "The optional integration ID that this status check must originate from.
"
- }
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- {
- "type": "boolean",
- "name": "strict_required_status_checks_policy",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "non_fast_forward"
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "commit_message_pattern"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
+ "contributors_url": {
"type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
},
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
},
- {
+ "downloads_url": {
"type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- {
+ "events_url": {
"type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "commit_author_email_pattern"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
"type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
},
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
},
- {
+ "git_refs_url": {
"type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- {
+ "git_tags_url": {
"type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "committer_email_pattern"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
"type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
},
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
},
- {
+ "issue_events_url": {
"type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- {
+ "issues_url": {
"type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "branch_name_pattern"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
"type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
},
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
},
- {
+ "languages_url": {
"type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- {
+ "merges_url": {
"type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "tag_name_pattern"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
"type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
},
- {
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
"type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
+ "examples": [
+ true
+ ]
},
- {
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
"type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
"enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
]
},
- {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "file_path_restriction"
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "restricted_file_paths",
- "description": "The file paths that are restricted from being pushed to the commit graph.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "max_file_path_length"
- ]
+ "forks": {
+ "type": "integer"
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "max_file_path_length",
- "description": "The maximum amount of characters allowed in file paths.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "file_extension_restriction"
- ]
+ "master_branch": {
+ "type": "string"
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "restricted_file_extensions",
- "description": "The file extensions that are restricted from being pushed to the commit graph.
",
- "isRequired": true
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "max_file_size"
- ]
+ "open_issues": {
+ "type": "integer"
},
- {
+ "watchers": {
+ "type": "integer"
+ },
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
"type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "max_file_size",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).
",
- "isRequired": true
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
}
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "workflows"
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "do_not_enforce_on_create",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- {
- "type": "array of objects",
- "name": "workflows",
- "description": "Workflows that must pass for this rule to pass.
",
- "isRequired": true,
- "childParamsGroups": [
- {
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "name": "path",
- "description": "The path to the workflow file
",
- "isRequired": true
- },
- {
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
"type": "string",
- "name": "ref",
- "description": "The ref (branch or tag) of the workflow file to use
"
- },
- {
- "type": "integer",
- "name": "repository_id",
- "description": "The ID of the repository where the workflow is defined
",
- "isRequired": true
- },
- {
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "name": "sha",
- "description": "The commit SHA of the workflow file to use
"
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- ]
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "code_scanning"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of objects",
- "name": "code_scanning_tools",
- "description": "Tools that must provide code scanning results for this rule to pass.
",
- "isRequired": true,
- "childParamsGroups": [
- {
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "name": "alerts_threshold",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"About code scanning alerts .\"
",
- "isRequired": true,
"enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
+ "enabled",
+ "disabled"
]
- },
- {
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "name": "security_alerts_threshold",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"About code scanning alerts .\"
",
- "isRequired": true,
"enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
+ "enabled",
+ "disabled"
]
- },
- {
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "name": "tool",
- "description": "The name of a code scanning tool
",
- "isRequired": true
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
- ]
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
}
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "copilot_code_review"
- ]
+ }
},
- {
+ "custom_properties": {
"type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "review_draft_pull_requests",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review.
"
- },
- {
- "type": "boolean",
- "name": "review_on_push",
- "description": "Copilot automatically reviews each new push to the pull request.
"
- }
- ]
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
]
}
- ],
- "oneOfObject": true
+ }
}
],
- "descriptionHTML": "Create a ruleset for a repository.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write",
+ "\"Contents\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repositories",
+ "title": "List public repositories",
+ "category": "repos",
+ "subcategory": "repos",
+ "parameters": [
+ {
+ "name": "since",
+ "description": "A repository ID. Only return repositories with an ID greater than this ID.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all public repositories in the order that they were created.
\nNote:
\n\nFor GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise. \nPagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of repositories. \n ",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "super cool ruleset",
- "target": "branch",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
- ],
- "exclude": [
- "refs/heads/dev*"
- ]
- }
- },
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
- }
- ]
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "id": 42,
- "name": "super cool ruleset",
- "target": "branch",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
- ],
- "exclude": [
- "refs/heads/dev*"
- ]
- }
- },
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
- }
- ],
- "node_id": "RRS_lACkVXNlcgQB",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
+ "example": [
+ {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "html": {
- "href": "https://github.com/monalisa/my-repo/rules/42"
- }
- },
- "created_at": "2023-07-15T08:43:03Z",
- "updated_at": "2023-08-23T16:29:47Z"
- },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks"
+ }
+ ],
"schema": {
- "title": "Repository ruleset",
- "type": "object",
- "description": "A set of rules to apply when specified conditions are met.",
- "required": [
- "id",
- "name",
- "source",
- "enforcement"
- ],
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the ruleset"
- },
- "name": {
- "type": "string",
- "description": "The name of the ruleset"
- },
- "target": {
- "type": "string",
- "description": "The target of the ruleset",
- "enum": [
- "branch",
- "tag",
- "push",
- "repository"
- ]
- },
- "source_type": {
- "type": "string",
- "description": "The type of the source of the ruleset",
- "enum": [
- "Repository",
- "Organization",
- "Enterprise"
- ]
- },
- "source": {
- "type": "string",
- "description": "The name of the source"
- },
- "enforcement": {
- "type": "string",
- "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
- "enum": [
- "disabled",
- "active",
- "evaluate"
- ]
- },
- "bypass_actors": {
- "type": "array",
- "description": "The actors that can bypass the rules in this ruleset",
- "items": {
- "title": "Repository Ruleset Bypass Actor",
+ "type": "array",
+ "items": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
- "description": "An actor that can bypass rules in a ruleset",
- "required": [
- "actor_type"
- ],
"properties": {
- "actor_id": {
+ "name": {
"type": [
- "integer",
+ "string",
"null"
- ],
- "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
+ ]
},
- "actor_type": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "enum": [
- "Integration",
- "OrganizationAdmin",
- "RepositoryRole",
- "Team",
- "DeployKey",
- "EnterpriseOwner"
- ],
- "description": "The type of actor that can bypass a ruleset"
+ "examples": [
+ "octocat"
+ ]
},
- "bypass_mode": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
- "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
- "enum": [
- "always",
- "pull_request",
- "exempt"
- ],
- "default": "always"
- }
- }
- }
- },
- "current_user_can_bypass": {
- "type": "string",
- "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
- "enum": [
- "always",
- "pull_requests_only",
- "never",
- "exempt"
- ]
- },
- "node_id": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "description": "The URL of the ruleset"
- }
- }
- },
- "html": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "href": {
- "type": "string",
- "description": "The html URL of the ruleset"
- }
- }
- }
- }
- },
- "conditions": {
- "anyOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Organization ruleset conditions",
- "type": "object",
- "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
- "oneOf": [
- {
- "type": "object",
- "title": "repository_name_and_ref_name",
- "description": "Conditions to target repositories by name and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository names",
- "type": "object",
- "description": "Parameters for a repository name condition",
- "properties": {
- "repository_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- },
- "protected": {
- "type": "boolean",
- "description": "Whether renaming of target repositories is prevented."
- }
- }
- }
- },
- "required": [
- "repository_name"
- ]
- }
- ]
- },
- {
- "type": "object",
- "title": "repository_id_and_ref_name",
- "description": "Conditions to target repositories by id and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository IDs",
- "type": "object",
- "description": "Parameters for a repository ID condition",
- "properties": {
- "repository_id": {
- "type": "object",
- "properties": {
- "repository_ids": {
- "type": "array",
- "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- },
- "required": [
- "repository_id"
- ]
- }
- ]
- },
- {
- "type": "object",
- "title": "repository_property_and_ref_name",
- "description": "Conditions to target repositories by property and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository properties",
- "type": "object",
- "description": "Parameters for a repository property condition",
- "properties": {
- "repository_property": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- },
- "exclude": {
- "type": "array",
- "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- }
- }
- }
- },
- "required": [
- "repository_property"
- ]
- }
- ]
- }
- ]
- }
- ],
- "type": [
- "null",
- "object"
- ]
- },
- "rules": {
- "type": "array",
- "items": {
- "title": "Repository Rule",
- "type": "object",
- "description": "A repository rule.",
- "oneOf": [
- {
- "title": "creation",
- "description": "Only allow users with bypass permission to create matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "creation"
- ]
- }
- }
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
},
- {
- "title": "update",
- "description": "Only allow users with bypass permission to update matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "update"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "update_allows_fetch_and_merge": {
- "type": "boolean",
- "description": "Branch can pull changes from its upstream repository"
- }
- },
- "required": [
- "update_allows_fetch_and_merge"
- ]
- }
- }
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- {
- "title": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.",
- "type": "object",
- "required": [
- "type"
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "deletion"
- ]
- }
- }
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
},
- {
- "title": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_linear_history"
- ]
- }
- }
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
},
- {
- "title": "merge_queue",
- "description": "Merges must be performed via a merge queue.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "merge_queue"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "check_response_timeout_minutes": {
- "type": "integer",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
- "minimum": 1,
- "maximum": 360
- },
- "grouping_strategy": {
- "type": "string",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
- ]
- },
- "max_entries_to_build": {
- "type": "integer",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
- "minimum": 0,
- "maximum": 100
- },
- "max_entries_to_merge": {
- "type": "integer",
- "description": "The maximum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "merge_method": {
- "type": "string",
- "description": "Method to use when merging changes from queued pull requests.",
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
- ]
- },
- "min_entries_to_merge": {
- "type": "integer",
- "description": "The minimum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "min_entries_to_merge_wait_minutes": {
- "type": "integer",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
- "minimum": 0,
- "maximum": 360
- }
- },
- "required": [
- "check_response_timeout_minutes",
- "grouping_strategy",
- "max_entries_to_build",
- "max_entries_to_merge",
- "merge_method",
- "min_entries_to_merge",
- "min_entries_to_merge_wait_minutes"
- ]
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
},
- {
- "title": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_deployments"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "required_deployment_environments": {
- "type": "array",
- "description": "The environments that must be successfully deployed to before branches can be merged.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "required_deployment_environments"
- ]
- }
- }
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
},
- {
- "title": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_signatures"
- ]
- }
- }
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
},
- {
- "title": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "pull_request"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "allowed_merge_methods": {
- "type": "array",
- "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
- "items": {
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- },
- "dismiss_stale_reviews_on_push": {
- "type": "boolean",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
- },
- "require_code_owner_review": {
- "type": "boolean",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner."
- },
- "require_last_push_approval": {
- "type": "boolean",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
- },
- "required_approving_review_count": {
- "type": "integer",
- "description": "The number of approving reviews that are required before a pull request can be merged.",
- "minimum": 0,
- "maximum": 10
- },
- "required_review_thread_resolution": {
- "type": "boolean",
- "description": "All conversations on code must be resolved before a pull request can be merged."
- },
- "required_reviewers": {
- "type": "array",
- "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
- "items": {
- "title": "RequiredReviewerConfiguration",
- "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
- "type": "object",
- "properties": {
- "file_patterns": {
- "type": "array",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
- "items": {
- "type": "string"
- }
- },
- "minimum_approvals": {
- "type": "integer",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
- },
- "reviewer": {
- "title": "Reviewer",
- "description": "A required reviewing team",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "ID of the reviewer which must review changes to matching files."
- },
- "type": {
- "type": "string",
- "description": "The type of the reviewer",
- "enum": [
- "Team"
- ]
- }
- },
- "required": [
- "id",
- "type"
- ]
- }
- },
- "required": [
- "file_patterns",
- "minimum_approvals",
- "reviewer"
- ]
- }
- }
- },
- "required": [
- "dismiss_stale_reviews_on_push",
- "require_code_owner_review",
- "require_last_push_approval",
- "required_approving_review_count",
- "required_review_thread_resolution"
- ]
- }
- }
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
},
- {
- "title": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_status_checks"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "required_status_checks": {
- "type": "array",
- "description": "Status checks that are required.",
- "items": {
- "title": "StatusCheckConfiguration",
- "description": "Required status check",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "description": "The status check context name that must be present on the commit."
- },
- "integration_id": {
- "type": "integer",
- "description": "The optional integration ID that this status check must originate from."
- }
- },
- "required": [
- "context"
- ]
- }
- },
- "strict_required_status_checks_policy": {
- "type": "boolean",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
- }
- },
- "required": [
- "required_status_checks",
- "strict_required_status_checks_policy"
- ]
- }
- }
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
},
- {
- "title": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "non_fast_forward"
- ]
- }
- }
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
},
- {
- "title": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_message_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
},
- {
- "title": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_author_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
},
- {
- "title": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "committer_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
},
- {
- "title": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "branch_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
},
- {
- "title": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule",
- "type": "object",
- "required": [
- "type"
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "tag_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "code_security": {
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "file_path_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_paths": {
- "type": "array",
- "description": "The file paths that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "restricted_file_paths"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
"type": "string",
"enum": [
- "max_file_path_length"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_path_length": {
- "type": "integer",
- "description": "The maximum amount of characters allowed in file paths.",
- "minimum": 1,
- "maximum": 32767
- }
- },
- "required": [
- "max_file_path_length"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "secret_scanning": {
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "file_extension_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_extensions": {
- "type": "array",
- "description": "The file extensions that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "restricted_file_extensions"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "secret_scanning_push_protection": {
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "max_file_size"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_size": {
- "type": "integer",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
- "minimum": 1,
- "maximum": 100
- }
- },
- "required": [
- "max_file_size"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "secret_scanning_non_provider_patterns": {
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "workflows"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "workflows": {
- "type": "array",
- "description": "Workflows that must pass for this rule to pass.",
- "items": {
- "title": "WorkflowFileReference",
- "description": "A workflow that must run for this rule to pass",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path to the workflow file"
- },
- "ref": {
- "type": "string",
- "description": "The ref (branch or tag) of the workflow file to use"
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository where the workflow is defined"
- },
- "sha": {
- "type": "string",
- "description": "The commit SHA of the workflow file to use"
- }
- },
- "required": [
- "path",
- "repository_id"
- ]
- }
- }
- },
- "required": [
- "workflows"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "secret_scanning_ai_detection": {
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "code_scanning"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "code_scanning_tools": {
- "type": "array",
- "description": "Tools that must provide code scanning results for this rule to pass.",
- "items": {
- "title": "CodeScanningTool",
- "description": "A tool that must provide code scanning results for this rule to pass.",
- "type": "object",
- "properties": {
- "alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
- ]
- },
- "security_alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
- ]
- },
- "tool": {
- "type": "string",
- "description": "The name of a code scanning tool"
- }
- },
- "required": [
- "alerts_threshold",
- "security_alerts_threshold",
- "tool"
- ]
- }
- }
- },
- "required": [
- "code_scanning_tools"
+ "enabled",
+ "disabled"
]
}
}
},
- {
- "title": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "secret_scanning_validity_checks": {
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "status": {
"type": "string",
"enum": [
- "copilot_code_review"
+ "enabled",
+ "disabled"
]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "review_draft_pull_requests": {
- "type": "boolean",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
- },
- "review_on_push": {
- "type": "boolean",
- "description": "Copilot automatically reviews each new push to the pull request."
- }
- }
}
}
}
- ]
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
}
}
}
@@ -717706,16 +755218,16 @@
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -717725,1442 +755237,1218 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Administration\" repository permissions": "write"
+ "\"Metadata\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
- "title": "Get a repository ruleset",
+ "requestPath": "/user/repos",
+ "title": "List repositories for the authenticated user",
"category": "repos",
- "subcategory": "rules",
+ "subcategory": "repos",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "visibility",
+ "description": "Limit results to repositories with the specified visibility.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "all",
+ "public",
+ "private"
+ ],
+ "default": "all"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "affiliation",
+ "description": "Comma-separated list of values. Can include:
\n\nowner: Repositories that are owned by the authenticated user. \ncollaborator: Repositories that the user has been added to as a collaborator. \norganization_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. \n ",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "default": "owner,collaborator,organization_member"
}
},
{
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
+ "name": "type",
+ "description": "Limit results to repositories of the specified type. Will cause a 422 error if used in the same request as visibility or affiliation .
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "integer"
+ "type": "string",
+ "enum": [
+ "all",
+ "owner",
+ "public",
+ "private",
+ "member"
+ ],
+ "default": "all"
}
},
{
- "name": "includes_parents",
- "description": "Include rulesets configured at higher levels that apply to this repository
",
+ "name": "sort",
+ "description": "The property to sort the results by.
",
"in": "query",
"required": false,
"schema": {
- "type": "boolean",
- "default": true
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "pushed",
+ "full_name"
+ ],
+ "default": "full_name"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The order to sort by. Default: asc when using full_name, otherwise desc.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "since",
+ "description": "Only show repositories updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "before",
+ "description": "Only show repositories updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Get a ruleset for a repository.
\nNote: To prevent leaking sensitive information, the bypass_actors property is only returned if the user\nmaking the API request has write access to the ruleset.
",
+ "descriptionHTML": "Lists repositories that the authenticated user has explicit permission (:read, :write, or :admin) to access.
\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.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ruleset_id": "RULESET_ID"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 42,
- "name": "super cool ruleset",
- "target": "branch",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
- ],
- "exclude": [
- "refs/heads/dev*"
- ]
- }
- },
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
- }
- ],
- "node_id": "RRS_lACkVXNlcgQB",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
- },
- "html": {
- "href": "https://github.com/monalisa/my-repo/rules/42"
- }
- },
- "created_at": "2023-07-15T08:43:03Z",
- "updated_at": "2023-08-23T16:29:47Z"
- },
- "schema": {
- "title": "Repository ruleset",
- "type": "object",
- "description": "A set of rules to apply when specified conditions are met.",
- "required": [
- "id",
- "name",
- "source",
- "enforcement"
- ],
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the ruleset"
- },
- "name": {
- "type": "string",
- "description": "The name of the ruleset"
- },
- "target": {
- "type": "string",
- "description": "The target of the ruleset",
- "enum": [
- "branch",
- "tag",
- "push",
- "repository"
- ]
- },
- "source_type": {
- "type": "string",
- "description": "The type of the source of the ruleset",
- "enum": [
- "Repository",
- "Organization",
- "Enterprise"
- ]
- },
- "source": {
- "type": "string",
- "description": "The name of the source"
- },
- "enforcement": {
- "type": "string",
- "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
- "enum": [
- "disabled",
- "active",
- "evaluate"
- ]
- },
- "bypass_actors": {
- "type": "array",
- "description": "The actors that can bypass the rules in this ruleset",
- "items": {
- "title": "Repository Ruleset Bypass Actor",
- "type": "object",
- "description": "An actor that can bypass rules in a ruleset",
- "required": [
- "actor_type"
- ],
- "properties": {
- "actor_id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
- },
- "actor_type": {
- "type": "string",
- "enum": [
- "Integration",
- "OrganizationAdmin",
- "RepositoryRole",
- "Team",
- "DeployKey",
- "EnterpriseOwner"
- ],
- "description": "The type of actor that can bypass a ruleset"
- },
- "bypass_mode": {
- "type": "string",
- "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
- "enum": [
- "always",
- "pull_request",
- "exempt"
- ],
- "default": "always"
- }
- }
- }
- },
- "current_user_can_bypass": {
- "type": "string",
- "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
- "enum": [
- "always",
- "pull_requests_only",
- "never",
- "exempt"
- ]
- },
- "node_id": {
- "type": "string"
+ "description": "Default response
",
+ "example": [
+ {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string",
- "description": "The URL of the ruleset"
- }
- }
- },
- "html": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "href": {
- "type": "string",
- "description": "The html URL of the ruleset"
- }
- }
- }
- }
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
},
- "conditions": {
- "anyOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Organization ruleset conditions",
- "type": "object",
- "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
- "oneOf": [
- {
- "type": "object",
- "title": "repository_name_and_ref_name",
- "description": "Conditions to target repositories by name and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository names",
- "type": "object",
- "description": "Parameters for a repository name condition",
- "properties": {
- "repository_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- },
- "protected": {
- "type": "boolean",
- "description": "Whether renaming of target repositories is prevented."
- }
- }
- }
- },
- "required": [
- "repository_name"
- ]
- }
- ]
- },
- {
- "type": "object",
- "title": "repository_id_and_ref_name",
- "description": "Conditions to target repositories by id and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository IDs",
- "type": "object",
- "description": "Parameters for a repository ID condition",
- "properties": {
- "repository_id": {
- "type": "object",
- "properties": {
- "repository_ids": {
- "type": "array",
- "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- },
- "required": [
- "repository_id"
- ]
- }
- ]
- },
- {
- "type": "object",
- "title": "repository_property_and_ref_name",
- "description": "Conditions to target repositories by property and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository properties",
- "type": "object",
- "description": "Parameters for a repository property condition",
- "properties": {
- "repository_property": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- },
- "exclude": {
- "type": "array",
- "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- }
- }
- }
- },
- "required": [
- "repository_property"
- ]
- }
- ]
- }
- ]
- }
- ],
- "type": [
- "null",
- "object"
- ]
+ "allow_rebase_merge": true,
+ "template_repository": null,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
},
- "rules": {
- "type": "array",
- "items": {
- "title": "Repository Rule",
- "type": "object",
- "description": "A repository rule.",
- "oneOf": [
- {
- "title": "creation",
- "description": "Only allow users with bypass permission to create matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "creation"
- ]
- }
- }
- },
- {
- "title": "update",
- "description": "Only allow users with bypass permission to update matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "update"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "update_allows_fetch_and_merge": {
- "type": "boolean",
- "description": "Branch can pull changes from its upstream repository"
- }
- },
- "required": [
- "update_allows_fetch_and_merge"
- ]
- }
- }
- },
- {
- "title": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "deletion"
- ]
- }
- }
- },
- {
- "title": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_linear_history"
- ]
- }
- }
- },
- {
- "title": "merge_queue",
- "description": "Merges must be performed via a merge queue.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "merge_queue"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "check_response_timeout_minutes": {
- "type": "integer",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
- "minimum": 1,
- "maximum": 360
- },
- "grouping_strategy": {
- "type": "string",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
- ]
- },
- "max_entries_to_build": {
- "type": "integer",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
- "minimum": 0,
- "maximum": 100
- },
- "max_entries_to_merge": {
- "type": "integer",
- "description": "The maximum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "merge_method": {
- "type": "string",
- "description": "Method to use when merging changes from queued pull requests.",
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
- ]
- },
- "min_entries_to_merge": {
- "type": "integer",
- "description": "The minimum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "min_entries_to_merge_wait_minutes": {
- "type": "integer",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
- "minimum": 0,
- "maximum": 360
- }
- },
- "required": [
- "check_response_timeout_minutes",
- "grouping_strategy",
- "max_entries_to_build",
- "max_entries_to_merge",
- "merge_method",
- "min_entries_to_merge",
- "min_entries_to_merge_wait_minutes"
- ]
- }
- }
- },
- {
- "title": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_deployments"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "required_deployment_environments": {
- "type": "array",
- "description": "The environments that must be successfully deployed to before branches can be merged.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "required_deployment_environments"
- ]
- }
- }
- },
- {
- "title": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_signatures"
- ]
- }
- }
- },
- {
- "title": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "pull_request"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "allowed_merge_methods": {
- "type": "array",
- "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
- "items": {
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- },
- "dismiss_stale_reviews_on_push": {
- "type": "boolean",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
- },
- "require_code_owner_review": {
- "type": "boolean",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner."
- },
- "require_last_push_approval": {
- "type": "boolean",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
- },
- "required_approving_review_count": {
- "type": "integer",
- "description": "The number of approving reviews that are required before a pull request can be merged.",
- "minimum": 0,
- "maximum": 10
- },
- "required_review_thread_resolution": {
- "type": "boolean",
- "description": "All conversations on code must be resolved before a pull request can be merged."
- },
- "required_reviewers": {
- "type": "array",
- "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
- "items": {
- "title": "RequiredReviewerConfiguration",
- "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
- "type": "object",
- "properties": {
- "file_patterns": {
- "type": "array",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
- "items": {
- "type": "string"
- }
- },
- "minimum_approvals": {
- "type": "integer",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
- },
- "reviewer": {
- "title": "Reviewer",
- "description": "A required reviewing team",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "ID of the reviewer which must review changes to matching files."
- },
- "type": {
- "type": "string",
- "description": "The type of the reviewer",
- "enum": [
- "Team"
- ]
- }
- },
- "required": [
- "id",
- "type"
- ]
- }
- },
- "required": [
- "file_patterns",
- "minimum_approvals",
- "reviewer"
- ]
- }
- }
- },
- "required": [
- "dismiss_stale_reviews_on_push",
- "require_code_owner_review",
- "require_last_push_approval",
- "required_approving_review_count",
- "required_review_thread_resolution"
- ]
- }
- }
- },
- {
- "title": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_status_checks"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "required_status_checks": {
- "type": "array",
- "description": "Status checks that are required.",
- "items": {
- "title": "StatusCheckConfiguration",
- "description": "Required status check",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "description": "The status check context name that must be present on the commit."
- },
- "integration_id": {
- "type": "integer",
- "description": "The optional integration ID that this status check must originate from."
- }
- },
- "required": [
- "context"
- ]
- }
- },
- "strict_required_status_checks_policy": {
- "type": "boolean",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
- }
- },
- "required": [
- "required_status_checks",
- "strict_required_status_checks_policy"
- ]
- }
- }
- },
- {
- "title": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "non_fast_forward"
- ]
- }
- }
- },
- {
- "title": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_message_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_author_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "committer_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "branch_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "tag_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_path_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_paths": {
- "type": "array",
- "description": "The file paths that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "restricted_file_paths"
- ]
- }
- }
- },
- {
- "title": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_path_length"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_path_length": {
- "type": "integer",
- "description": "The maximum amount of characters allowed in file paths.",
- "minimum": 1,
- "maximum": 32767
- }
- },
- "required": [
- "max_file_path_length"
- ]
- }
- }
- },
- {
- "title": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_extension_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_extensions": {
- "type": "array",
- "description": "The file extensions that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "restricted_file_extensions"
- ]
- }
- }
- },
- {
- "title": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_size"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_size": {
- "type": "integer",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
- "minimum": 1,
- "maximum": 100
- }
- },
- "required": [
- "max_file_size"
- ]
- }
- }
- },
- {
- "title": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "workflows"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "workflows": {
- "type": "array",
- "description": "Workflows that must pass for this rule to pass.",
- "items": {
- "title": "WorkflowFileReference",
- "description": "A workflow that must run for this rule to pass",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path to the workflow file"
- },
- "ref": {
- "type": "string",
- "description": "The ref (branch or tag) of the workflow file to use"
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository where the workflow is defined"
- },
- "sha": {
- "type": "string",
- "description": "The commit SHA of the workflow file to use"
- }
- },
- "required": [
- "path",
- "repository_id"
- ]
- }
- }
- },
- "required": [
- "workflows"
- ]
- }
- }
- },
- {
- "title": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "code_scanning"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "code_scanning_tools": {
- "type": "array",
- "description": "Tools that must provide code scanning results for this rule to pass.",
- "items": {
- "title": "CodeScanningTool",
- "description": "A tool that must provide code scanning results for this rule to pass.",
- "type": "object",
- "properties": {
- "alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
- ]
- },
- "security_alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
- ]
- },
- "tool": {
- "type": "string",
- "description": "The name of a code scanning tool"
- }
- },
- "required": [
- "alerts_threshold",
- "security_alerts_threshold",
- "tool"
- ]
- }
- }
- },
- "required": [
- "code_scanning_tools"
- ]
- }
- }
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
},
{
- "title": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
- "required": [
- "type"
- ],
"properties": {
- "type": {
+ "key": {
"type": "string",
- "enum": [
- "copilot_code_review"
+ "examples": [
+ "mit"
]
},
- "parameters": {
- "type": "object",
- "properties": {
- "review_draft_pull_requests": {
- "type": "boolean",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
- },
- "review_on_push": {
- "type": "boolean",
- "description": "Copilot automatically reviews each new push to the pull request."
- }
- }
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
- }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
}
}
}
@@ -719172,18 +756460,26 @@
"description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": true,
+ "serverToServer": false,
"fineGrainedPat": true,
"permissions": [
{
@@ -719195,3130 +756491,4826 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
- "title": "Update a repository ruleset",
+ "verb": "post",
+ "requestPath": "/user/repos",
+ "title": "Create a repository for the authenticated user",
"category": "repos",
- "subcategory": "rules",
- "parameters": [
+ "subcategory": "repos",
+ "parameters": [],
+ "bodyParameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the repository.
",
+ "isRequired": true
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A short description of the repository.
"
},
{
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
+ "type": "string",
+ "name": "homepage",
+ "in": "body",
+ "description": "A URL with more information about the repository.
"
+ },
+ {
+ "type": "boolean",
+ "name": "private",
+ "in": "body",
+ "description": "Whether the repository is private.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "has_issues",
+ "in": "body",
+ "description": "Whether issues are enabled.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "has_projects",
+ "in": "body",
+ "description": "Whether projects are enabled.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "has_wiki",
+ "in": "body",
+ "description": "Whether the wiki is enabled.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "has_discussions",
+ "in": "body",
+ "description": "Whether discussions are enabled.
",
+ "default": false
+ },
+ {
+ "type": "integer",
+ "name": "team_id",
+ "in": "body",
+ "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": "boolean",
+ "name": "auto_init",
+ "in": "body",
+ "description": "Whether the repository is initialized with a minimal README.
",
+ "default": false
+ },
{
"type": "string",
- "name": "name",
+ "name": "gitignore_template",
"in": "body",
- "description": "The name of the ruleset.
"
+ "description": "The desired language or platform to apply to the .gitignore.
"
},
{
"type": "string",
- "name": "target",
+ "name": "license_template",
"in": "body",
- "description": "The target of the ruleset
",
+ "description": "The license keyword of the open source license for this repository.
"
+ },
+ {
+ "type": "boolean",
+ "name": "allow_squash_merge",
+ "in": "body",
+ "description": "Whether to allow squash merges for pull requests.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "allow_merge_commit",
+ "in": "body",
+ "description": "Whether to allow merge commits for pull requests.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "allow_rebase_merge",
+ "in": "body",
+ "description": "Whether to allow rebase merges for pull requests.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "allow_auto_merge",
+ "in": "body",
+ "description": "Whether to allow Auto-merge to be used on pull requests.
",
+ "default": false
+ },
+ {
+ "type": "boolean",
+ "name": "delete_branch_on_merge",
+ "in": "body",
+ "description": "Whether to delete head branches when pull requests are merged
",
+ "default": false
+ },
+ {
+ "type": "string",
+ "name": "squash_merge_commit_title",
+ "in": "body",
+ "description": "Required when using squash_merge_commit_message.
\nThe default value for a squash merge commit title:
\n\nPR_TITLE - default to the pull request's title. \nCOMMIT_OR_PR_TITLE - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). \n ",
"enum": [
- "branch",
- "tag",
- "push"
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
]
},
{
"type": "string",
- "name": "enforcement",
+ "name": "squash_merge_commit_message",
"in": "body",
- "description": "The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate is not available for the repository target.
",
+ "description": "The default value for a squash merge commit message:
\n\nPR_BODY - default to the pull request's body. \nCOMMIT_MESSAGES - default to the branch's commit messages. \nBLANK - default to a blank commit message. \n ",
"enum": [
- "disabled",
- "active",
- "evaluate"
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
]
},
{
- "type": "array of objects",
- "name": "bypass_actors",
+ "type": "string",
+ "name": "merge_commit_title",
"in": "body",
- "description": "The actors that can bypass the rules in this ruleset
",
- "childParamsGroups": [
- {
- "type": "integer or null",
- "name": "actor_id",
- "description": "The ID of the actor that can bypass a ruleset. Required for Integration, RepositoryRole, and Team actor types. If actor_type is OrganizationAdmin, this should be 1. If actor_type is DeployKey, this should be null. If actor_type is EnterpriseOwner, actor_id is ignored. OrganizationAdmin and EnterpriseOwner are not applicable for personal repositories.
"
- },
- {
- "type": "string",
- "name": "actor_type",
- "description": "The type of actor that can bypass a ruleset
",
- "isRequired": true,
- "enum": [
- "Integration",
- "OrganizationAdmin",
- "RepositoryRole",
- "Team",
- "DeployKey",
- "EnterpriseOwner"
- ]
- },
- {
- "type": "string",
- "name": "bypass_mode",
- "description": "When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. pull_request is not applicable for the DeployKey actor type. Also, pull_request is only applicable to branch rulesets. When bypass_mode is exempt, rules will not be run for that actor and a bypass audit entry will not be created.
",
- "enum": [
- "always",
- "pull_request",
- "exempt"
- ],
- "default": "always"
- }
+ "description": "Required when using merge_commit_message.
\nThe default value for a merge commit title.
\n\nPR_TITLE - default to the pull request's title. \nMERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). \n ",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
]
},
{
- "type": "object",
- "name": "conditions",
+ "type": "string",
+ "name": "merge_commit_message",
"in": "body",
- "description": "Parameters for a repository ruleset ref name condition
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "ref_name",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "include",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches.
"
- },
- {
- "type": "array of strings",
- "name": "exclude",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
"
- }
- ]
- }
+ "description": "The default value for a merge commit message.
\n\nPR_TITLE - default to the pull request's title. \nPR_BODY - default to the pull request's body. \nBLANK - default to a blank commit message. \n ",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
]
},
{
- "type": "array of objects",
- "name": "rules",
+ "type": "boolean",
+ "name": "has_downloads",
"in": "body",
- "description": "An array of rules within the ruleset.
",
- "childParamsGroups": [
- {
+ "description": "Whether downloads are enabled.
",
+ "default": true
+ },
+ {
+ "type": "boolean",
+ "name": "is_template",
+ "in": "body",
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.
",
+ "default": false
+ }
+ ],
+ "descriptionHTML": "Creates a new repository for the authenticated user.
\nOAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create a private repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "Hello-World",
+ "description": "This is your first repo!",
+ "homepage": "https://github.com",
+ "private": false,
+ "is_template": true
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "language": null,
+ "forks_count": 9,
+ "forks": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "open_issues": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "pull": true,
+ "push": false,
+ "admin": false
+ },
+ "allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "schema": {
+ "title": "Full Repository",
+ "description": "Full Repository",
"type": "object",
- "name": "creation",
- "description": "Only allow users with bypass permission to create matching refs.
",
- "childParamsGroups": [
- {
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "creation"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "update",
- "description": "Only allow users with bypass permission to update matching refs.
",
- "childParamsGroups": [
- {
+ },
+ "forks_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "update"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "update_allows_fetch_and_merge",
- "description": "Branch can pull changes from its upstream repository
",
- "isRequired": true
- }
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.
",
- "childParamsGroups": [
- {
+ },
+ "git_refs_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "deletion"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.
",
- "childParamsGroups": [
- {
+ },
+ "git_tags_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_linear_history"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "merge_queue",
- "description": "Merges must be performed via a merge queue.
",
- "childParamsGroups": [
- {
+ },
+ "git_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "merge_queue"
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "check_response_timeout_minutes",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "grouping_strategy",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
",
- "isRequired": true,
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
- ]
- },
- {
- "type": "integer",
- "name": "max_entries_to_build",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "max_entries_to_merge",
- "description": "The maximum number of PRs that will be merged together in a group.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "merge_method",
- "description": "Method to use when merging changes from queued pull requests.
",
- "isRequired": true,
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
- ]
- },
- {
- "type": "integer",
- "name": "min_entries_to_merge",
- "description": "The minimum number of PRs that will be merged together in a group.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "min_entries_to_merge_wait_minutes",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.
",
- "isRequired": true
- }
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
",
- "childParamsGroups": [
- {
+ },
+ "issue_events_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_deployments"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "required_deployment_environments",
- "description": "The environments that must be successfully deployed to before branches can be merged.
",
- "isRequired": true
- }
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.
",
- "childParamsGroups": [
- {
+ },
+ "keys_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_signatures"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
",
- "childParamsGroups": [
- {
+ },
+ "labels_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "pull_request"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "allowed_merge_methods",
- "description": "Array of allowed merge methods. Allowed values include merge, squash, and rebase. At least one option must be enabled.\nSupported values are: merge, squash, rebase
"
- },
- {
- "type": "boolean",
- "name": "dismiss_stale_reviews_on_push",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "require_code_owner_review",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "require_last_push_approval",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "required_approving_review_count",
- "description": "The number of approving reviews that are required before a pull request can be merged.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "required_review_thread_resolution",
- "description": "All conversations on code must be resolved before a pull request can be merged.
",
- "isRequired": true
- },
- {
- "type": "array of objects",
- "name": "required_reviewers",
- "description": " Note
\n
\nrequired_reviewers is in beta and subject to change.
\n
\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "file_patterns",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "minimum_approvals",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
",
- "isRequired": true
- },
- {
- "type": "object",
- "name": "reviewer",
- "description": "A required reviewing team
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "id",
- "description": "ID of the reviewer which must review changes to matching files.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of the reviewer
",
- "isRequired": true,
- "enum": [
- "Team"
- ]
- }
- ]
- }
- ]
- }
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
",
- "childParamsGroups": [
- {
+ },
+ "merges_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "required_status_checks"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "do_not_enforce_on_create",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
- },
- {
- "type": "array of objects",
- "name": "required_status_checks",
- "description": "Status checks that are required.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "context",
- "description": "The status check context name that must be present on the commit.
",
- "isRequired": true
- },
- {
- "type": "integer",
- "name": "integration_id",
- "description": "The optional integration ID that this status check must originate from.
"
- }
- ]
- },
- {
- "type": "boolean",
- "name": "strict_required_status_checks_policy",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
",
- "isRequired": true
- }
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.
",
- "childParamsGroups": [
- {
+ },
+ "notifications_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "non_fast_forward"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule
",
- "childParamsGroups": [
- {
+ },
+ "pulls_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "commit_message_pattern"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
- },
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
- },
- {
- "type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- {
- "type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule
",
- "childParamsGroups": [
- {
+ },
+ "ssh_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "commit_author_email_pattern"
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
- },
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
- },
- {
- "type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- {
- "type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule
",
- "childParamsGroups": [
- {
+ },
+ "statuses_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "committer_email_pattern"
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
- },
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
- },
- {
- "type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- {
- "type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule
",
- "childParamsGroups": [
- {
+ },
+ "subscription_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "branch_name_pattern"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
- },
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
- },
- {
- "type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- {
- "type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule
",
- "childParamsGroups": [
- {
+ },
+ "teams_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "tag_name_pattern"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "name",
- "description": "How this rule will appear to users.
"
- },
- {
- "type": "boolean",
- "name": "negate",
- "description": "If true, the rule will fail if the pattern matches.
"
- },
- {
- "type": "string",
- "name": "operator",
- "description": "The operator to use for matching.
",
- "isRequired": true,
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- {
- "type": "string",
- "name": "pattern",
- "description": "The pattern to match with.
",
- "isRequired": true
- }
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.
",
- "childParamsGroups": [
- {
+ },
+ "clone_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "file_path_restriction"
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "restricted_file_paths",
- "description": "The file paths that are restricted from being pushed to the commit graph.
",
- "isRequired": true
- }
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
",
- "childParamsGroups": [
- {
+ },
+ "hooks_url": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "max_file_path_length"
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "max_file_path_length",
- "description": "The maximum amount of characters allowed in file paths.
",
- "isRequired": true
- }
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.
",
- "childParamsGroups": [
- {
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "file_extension_restriction"
+ "examples": [
+ "master"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of strings",
- "name": "restricted_file_extensions",
- "description": "The file extensions that are restricted from being pushed to the commit graph.
",
- "isRequired": true
- }
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
- }
- ]
- },
- {
- "type": "object",
- "name": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
",
- "childParamsGroups": [
- {
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
+ ]
+ },
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "max_file_size"
+ "examples": [
+ "public"
]
},
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "integer",
- "name": "max_file_size",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).
",
- "isRequired": true
- }
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
]
- }
- ]
- },
- {
- "type": "object",
- "name": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
",
- "childParamsGroups": [
- {
+ },
+ "created_at": {
"type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "workflows"
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
]
},
- {
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
"type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "template_repository": {
+ "anyOf": [
{
- "type": "boolean",
- "name": "do_not_enforce_on_create",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ "type": "null"
},
{
- "type": "array of objects",
- "name": "workflows",
- "description": "Workflows that must pass for this rule to pass.
",
- "isRequired": true,
- "childParamsGroups": [
- {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
"type": "string",
- "name": "path",
- "description": "The path to the workflow file
",
- "isRequired": true
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
},
- {
+ "name": {
+ "description": "The name of the repository.",
"type": "string",
- "name": "ref",
- "description": "The ref (branch or tag) of the workflow file to use
"
+ "examples": [
+ "Team Environment"
+ ]
},
- {
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer",
- "name": "repository_id",
- "description": "The ID of the repository where the workflow is defined
",
- "isRequired": true
+ "examples": [
+ 9
+ ]
},
- {
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
"type": "string",
- "name": "sha",
- "description": "The commit SHA of the workflow file to use
"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "code_scanning"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "array of objects",
- "name": "code_scanning_tools",
- "description": "Tools that must provide code scanning results for this rule to pass.
",
- "isRequired": true,
- "childParamsGroups": [
- {
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
"type": "string",
- "name": "alerts_threshold",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"About code scanning alerts .\"
",
- "isRequired": true,
"enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
- ]
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
},
- {
+ "squash_merge_commit_message": {
"type": "string",
- "name": "security_alerts_threshold",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"About code scanning alerts .\"
",
- "isRequired": true,
"enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
]
},
- {
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
"type": "string",
- "name": "tool",
- "description": "The name of a code scanning tool
",
- "isRequired": true
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
- }
- ]
- }
- ]
- },
- {
- "type": "object",
- "name": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": "",
- "isRequired": true,
- "enum": [
- "copilot_code_review"
- ]
- },
- {
- "type": "object",
- "name": "parameters",
- "description": "",
- "childParamsGroups": [
- {
- "type": "boolean",
- "name": "review_draft_pull_requests",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review.
"
- },
- {
- "type": "boolean",
- "name": "review_on_push",
- "description": "Copilot automatically reviews each new push to the pull request.
"
- }
- ]
- }
- ]
- }
- ],
- "oneOfObject": true
- }
- ],
- "descriptionHTML": "Update a ruleset for a repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "super cool ruleset",
- "target": "branch",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
- ],
- "exclude": [
- "refs/heads/dev*"
+ }
]
- }
- },
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
- }
- ]
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ruleset_id": "RULESET_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 42,
- "name": "super cool ruleset",
- "target": "branch",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
- ],
- "exclude": [
- "refs/heads/dev*"
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
]
- }
- },
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
- }
- }
- ],
- "node_id": "RRS_lACkVXNlcgQB",
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
},
- "html": {
- "href": "https://github.com/monalisa/my-repo/rules/42"
- }
- },
- "created_at": "2023-07-15T08:43:03Z",
- "updated_at": "2023-08-23T16:29:47Z"
- },
- "schema": {
- "title": "Repository ruleset",
- "type": "object",
- "description": "A set of rules to apply when specified conditions are met.",
- "required": [
- "id",
- "name",
- "source",
- "enforcement"
- ],
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the ruleset"
+ "allow_squash_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "name": {
- "type": "string",
- "description": "The name of the ruleset"
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
},
- "target": {
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
"type": "string",
- "description": "The target of the ruleset",
"enum": [
- "branch",
- "tag",
- "push",
- "repository"
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
+ "examples": [
+ "PR_TITLE"
]
},
- "source_type": {
+ "squash_merge_commit_message": {
"type": "string",
- "description": "The type of the source of the ruleset",
"enum": [
- "Repository",
- "Organization",
- "Enterprise"
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
]
},
- "source": {
+ "merge_commit_title": {
"type": "string",
- "description": "The name of the source"
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "examples": [
+ "PR_TITLE"
+ ]
},
- "enforcement": {
+ "merge_commit_message": {
"type": "string",
- "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
"enum": [
- "disabled",
- "active",
- "evaluate"
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
]
},
- "bypass_actors": {
- "type": "array",
- "description": "The actors that can bypass the rules in this ruleset",
- "items": {
- "title": "Repository Ruleset Bypass Actor",
- "type": "object",
- "description": "An actor that can bypass rules in a ruleset",
- "required": [
- "actor_type"
- ],
- "properties": {
- "actor_id": {
- "type": [
- "integer",
- "null"
- ],
- "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
- },
- "actor_type": {
- "type": "string",
- "enum": [
- "Integration",
- "OrganizationAdmin",
- "RepositoryRole",
- "Team",
- "DeployKey",
- "EnterpriseOwner"
- ],
- "description": "The type of actor that can bypass a ruleset"
- },
- "bypass_mode": {
- "type": "string",
- "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
- "enum": [
- "always",
- "pull_request",
- "exempt"
- ],
- "default": "always"
- }
- }
- }
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "current_user_can_bypass": {
- "type": "string",
- "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
- "enum": [
- "always",
- "pull_requests_only",
- "never",
- "exempt"
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
]
},
- "node_id": {
- "type": "string"
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
},
- "_links": {
- "type": "object",
- "properties": {
- "self": {
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "href": {
+ "key": {
"type": "string",
- "description": "The URL of the ruleset"
- }
- }
- },
- "html": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "href": {
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
"type": "string",
- "description": "The html URL of the ruleset"
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
- }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
}
- }
+ ]
},
- "conditions": {
+ "organization": {
"anyOf": [
{
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
+ "type": "null"
},
{
- "title": "Organization ruleset conditions",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
- "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
- "oneOf": [
- {
- "type": "object",
- "title": "repository_name_and_ref_name",
- "description": "Conditions to target repositories by name and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository names",
- "type": "object",
- "description": "Parameters for a repository name condition",
- "properties": {
- "repository_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- },
- "protected": {
- "type": "boolean",
- "description": "Whether renaming of target repositories is prevented."
- }
- }
- }
- },
- "required": [
- "repository_name"
- ]
- }
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- {
- "type": "object",
- "title": "repository_id_and_ref_name",
- "description": "Conditions to target repositories by id and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository IDs",
- "type": "object",
- "description": "Parameters for a repository ID condition",
- "properties": {
- "repository_id": {
- "type": "object",
- "properties": {
- "repository_ids": {
- "type": "array",
- "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- },
- "required": [
- "repository_id"
- ]
- }
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- {
- "type": "object",
- "title": "repository_property_and_ref_name",
- "description": "Conditions to target repositories by property and refs by name",
- "allOf": [
- {
- "title": "Repository ruleset conditions for ref names",
- "type": "object",
- "description": "Parameters for a repository ruleset ref name condition",
- "properties": {
- "ref_name": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
- "items": {
- "type": "string"
- }
- },
- "exclude": {
- "type": "array",
- "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- {
- "title": "Repository ruleset conditions for repository properties",
- "type": "object",
- "description": "Parameters for a repository property condition",
- "properties": {
- "repository_property": {
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- },
- "exclude": {
- "type": "array",
- "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
- "items": {
- "title": "Repository ruleset property targeting definition",
- "type": "object",
- "description": "Parameters for a targeting a repository property",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the repository property to target"
- },
- "property_values": {
- "type": "array",
- "description": "The values to match for the repository property",
- "items": {
- "type": "string"
- }
- },
- "source": {
- "type": "string",
- "description": "The source of the repository property. Defaults to 'custom' if not specified.",
- "enum": [
- "custom",
- "system"
- ]
- }
- },
- "required": [
- "name",
- "property_values"
- ]
- }
- }
- }
- }
- },
- "required": [
- "repository_property"
- ]
- }
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- ],
- "type": [
- "null",
- "object"
]
},
- "rules": {
- "type": "array",
- "items": {
- "title": "Repository Rule",
- "type": "object",
- "description": "A repository rule.",
- "oneOf": [
- {
- "title": "creation",
- "description": "Only allow users with bypass permission to create matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "creation"
- ]
- }
- }
- },
- {
- "title": "update",
- "description": "Only allow users with bypass permission to update matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "update"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "update_allows_fetch_and_merge": {
- "type": "boolean",
- "description": "Branch can pull changes from its upstream repository"
- }
- },
- "required": [
- "update_allows_fetch_and_merge"
- ]
- }
- }
- },
- {
- "title": "deletion",
- "description": "Only allow users with bypass permissions to delete matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "deletion"
- ]
- }
- }
- },
- {
- "title": "required_linear_history",
- "description": "Prevent merge commits from being pushed to matching refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_linear_history"
- ]
- }
- }
- },
- {
- "title": "merge_queue",
- "description": "Merges must be performed via a merge queue.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "merge_queue"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "check_response_timeout_minutes": {
- "type": "integer",
- "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
- "minimum": 1,
- "maximum": 360
- },
- "grouping_strategy": {
- "type": "string",
- "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
- "enum": [
- "ALLGREEN",
- "HEADGREEN"
- ]
- },
- "max_entries_to_build": {
- "type": "integer",
- "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
- "minimum": 0,
- "maximum": 100
- },
- "max_entries_to_merge": {
- "type": "integer",
- "description": "The maximum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "merge_method": {
- "type": "string",
- "description": "Method to use when merging changes from queued pull requests.",
- "enum": [
- "MERGE",
- "SQUASH",
- "REBASE"
- ]
- },
- "min_entries_to_merge": {
- "type": "integer",
- "description": "The minimum number of PRs that will be merged together in a group.",
- "minimum": 0,
- "maximum": 100
- },
- "min_entries_to_merge_wait_minutes": {
- "type": "integer",
- "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
- "minimum": 0,
- "maximum": 360
- }
- },
- "required": [
- "check_response_timeout_minutes",
- "grouping_strategy",
- "max_entries_to_build",
- "max_entries_to_merge",
- "merge_method",
- "min_entries_to_merge",
- "min_entries_to_merge_wait_minutes"
- ]
- }
- }
- },
- {
- "title": "required_deployments",
- "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_deployments"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "required_deployment_environments": {
- "type": "array",
- "description": "The environments that must be successfully deployed to before branches can be merged.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "required_deployment_environments"
- ]
- }
- }
- },
- {
- "title": "required_signatures",
- "description": "Commits pushed to matching refs must have verified signatures.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_signatures"
- ]
- }
- }
- },
- {
- "title": "pull_request",
- "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "pull_request"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "allowed_merge_methods": {
- "type": "array",
- "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
- "items": {
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- },
- "dismiss_stale_reviews_on_push": {
- "type": "boolean",
- "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
- },
- "require_code_owner_review": {
- "type": "boolean",
- "description": "Require an approving review in pull requests that modify files that have a designated code owner."
- },
- "require_last_push_approval": {
- "type": "boolean",
- "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
- },
- "required_approving_review_count": {
- "type": "integer",
- "description": "The number of approving reviews that are required before a pull request can be merged.",
- "minimum": 0,
- "maximum": 10
- },
- "required_review_thread_resolution": {
- "type": "boolean",
- "description": "All conversations on code must be resolved before a pull request can be merged."
- },
- "required_reviewers": {
- "type": "array",
- "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
- "items": {
- "title": "RequiredReviewerConfiguration",
- "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
- "type": "object",
- "properties": {
- "file_patterns": {
- "type": "array",
- "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
- "items": {
- "type": "string"
- }
- },
- "minimum_approvals": {
- "type": "integer",
- "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
- },
- "reviewer": {
- "title": "Reviewer",
- "description": "A required reviewing team",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "ID of the reviewer which must review changes to matching files."
- },
- "type": {
- "type": "string",
- "description": "The type of the reviewer",
- "enum": [
- "Team"
- ]
- }
- },
- "required": [
- "id",
- "type"
- ]
- }
- },
- "required": [
- "file_patterns",
- "minimum_approvals",
- "reviewer"
- ]
- }
- }
- },
- "required": [
- "dismiss_stale_reviews_on_push",
- "require_code_owner_review",
- "require_last_push_approval",
- "required_approving_review_count",
- "required_review_thread_resolution"
- ]
- }
- }
- },
- {
- "title": "required_status_checks",
- "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "required_status_checks"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "required_status_checks": {
- "type": "array",
- "description": "Status checks that are required.",
- "items": {
- "title": "StatusCheckConfiguration",
- "description": "Required status check",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "description": "The status check context name that must be present on the commit."
- },
- "integration_id": {
- "type": "integer",
- "description": "The optional integration ID that this status check must originate from."
- }
- },
- "required": [
- "context"
- ]
- }
- },
- "strict_required_status_checks_policy": {
- "type": "boolean",
- "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
- }
- },
- "required": [
- "required_status_checks",
- "strict_required_status_checks_policy"
- ]
- }
- }
- },
- {
- "title": "non_fast_forward",
- "description": "Prevent users with push access from force pushing to refs.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "non_fast_forward"
- ]
- }
- }
- },
- {
- "title": "commit_message_pattern",
- "description": "Parameters to be used for the commit_message_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_message_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "commit_author_email_pattern",
- "description": "Parameters to be used for the commit_author_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "commit_author_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "committer_email_pattern",
- "description": "Parameters to be used for the committer_email_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "committer_email_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "branch_name_pattern",
- "description": "Parameters to be used for the branch_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "branch_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
- },
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "tag_name_pattern",
- "description": "Parameters to be used for the tag_name_pattern rule",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "tag_name_pattern"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "How this rule will appear to users."
- },
- "negate": {
- "type": "boolean",
- "description": "If true, the rule will fail if the pattern matches."
- },
- "operator": {
- "type": "string",
- "description": "The operator to use for matching.",
- "enum": [
- "starts_with",
- "ends_with",
- "contains",
- "regex"
- ]
- },
- "pattern": {
- "type": "string",
- "description": "The pattern to match with."
- }
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
},
- "required": [
- "operator",
- "pattern"
- ]
- }
- }
- },
- {
- "title": "file_path_restriction",
- "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_path_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_paths": {
- "type": "array",
- "description": "The file paths that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
},
- "required": [
- "restricted_file_paths"
- ]
- }
- }
- },
- {
- "title": "max_file_path_length",
- "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_path_length"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_path_length": {
- "type": "integer",
- "description": "The maximum amount of characters allowed in file paths.",
- "minimum": 1,
- "maximum": 32767
- }
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
},
- "required": [
- "max_file_path_length"
- ]
- }
- }
- },
- {
- "title": "file_extension_restriction",
- "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "file_extension_restriction"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "restricted_file_extensions": {
- "type": "array",
- "description": "The file extensions that are restricted from being pushed to the commit graph.",
- "items": {
- "type": "string"
- }
- }
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
},
- "required": [
- "restricted_file_extensions"
- ]
- }
- }
- },
- {
- "title": "max_file_size",
- "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "max_file_size"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "max_file_size": {
- "type": "integer",
- "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
- "minimum": 1,
- "maximum": 100
- }
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
},
- "required": [
- "max_file_size"
- ]
- }
- }
- },
- {
- "title": "workflows",
- "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "workflows"
- ]
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "parameters": {
- "type": "object",
- "properties": {
- "do_not_enforce_on_create": {
- "type": "boolean",
- "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
- },
- "workflows": {
- "type": "array",
- "description": "Workflows that must pass for this rule to pass.",
- "items": {
- "title": "WorkflowFileReference",
- "description": "A workflow that must run for this rule to pass",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path to the workflow file"
- },
- "ref": {
- "type": "string",
- "description": "The ref (branch or tag) of the workflow file to use"
- },
- "repository_id": {
- "type": "integer",
- "description": "The ID of the repository where the workflow is defined"
- },
- "sha": {
- "type": "string",
- "description": "The commit SHA of the workflow file to use"
- }
- },
- "required": [
- "path",
- "repository_id"
- ]
- }
- }
- },
- "required": [
- "workflows"
- ]
- }
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
}
- },
- {
- "title": "code_scanning",
- "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "code_scanning"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "code_scanning_tools": {
- "type": "array",
- "description": "Tools that must provide code scanning results for this rule to pass.",
- "items": {
- "title": "CodeScanningTool",
- "description": "A tool that must provide code scanning results for this rule to pass.",
- "type": "object",
- "properties": {
- "alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "errors",
- "errors_and_warnings",
- "all"
- ]
- },
- "security_alerts_threshold": {
- "type": "string",
- "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
- "enum": [
- "none",
- "critical",
- "high_or_higher",
- "medium_or_higher",
- "all"
- ]
- },
- "tool": {
- "type": "string",
- "description": "The name of a code scanning tool"
- }
- },
- "required": [
- "alerts_threshold",
- "security_alerts_threshold",
- "tool"
- ]
- }
- }
- },
- "required": [
- "code_scanning_tools"
- ]
- }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
}
},
- {
- "title": "copilot_code_review",
- "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
- "type": "object",
- "required": [
- "type"
- ],
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "copilot_code_review"
- ]
- },
- "parameters": {
- "type": "object",
- "properties": {
- "review_draft_pull_requests": {
- "type": "boolean",
- "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
- },
- "review_on_push": {
- "type": "boolean",
- "description": "Copilot automatically reviews each new push to the pull request."
- }
- }
- }
- }
- }
- ]
- }
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
- "title": "Delete a repository ruleset",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Delete a ruleset for a repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ruleset_id": "RULESET_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
- "title": "Get repository ruleset history",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get the history of a repository ruleset.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ruleset_id": "RULESET_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "version_id": 3,
- "actor": {
- "id": 1,
- "type": "User"
- },
- "updated_at": "2024-010-23T16:29:47Z"
- },
- {
- "version_id": 2,
- "actor": {
- "id": 2,
- "type": "User"
- },
- "updated_at": "2024-09-23T16:29:47Z"
- },
- {
- "version_id": 1,
- "actor": {
- "id": 1,
- "type": "User"
- },
- "updated_at": "2024-08-23T16:29:47Z"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Ruleset version",
- "type": "object",
- "description": "The historical version of a ruleset",
- "required": [
- "version_id",
- "actor",
- "updated_at"
- ],
- "properties": {
- "version_id": {
- "type": "integer",
- "description": "The ID of the previous version of the ruleset"
- },
- "actor": {
- "type": "object",
- "description": "The actor who updated the ruleset",
- "properties": {
- "id": {
- "type": "integer"
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "type": {
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
"type": "string"
}
- }
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}",
- "title": "Get repository ruleset version",
- "category": "repos",
- "subcategory": "rules",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "ruleset_id",
- "description": "The ID of the ruleset.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "version_id",
- "description": "The ID of the version
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a version of a repository ruleset.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ruleset_id": "RULESET_ID",
- "version_id": "VERSION_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "version_id": 3,
- "actor": {
- "id": 1,
- "type": "User"
- },
- "updated_at": "2024-010-23T16:29:47Z",
- "state": {
- "id": 42,
- "name": "super cool ruleset",
- "target": "branch",
- "source_type": "Repository",
- "source": "monalisa/my-repo",
- "enforcement": "active",
- "bypass_actors": [
- {
- "actor_id": 234,
- "actor_type": "Team",
- "bypass_mode": "always"
- }
- ],
- "conditions": {
- "ref_name": {
- "include": [
- "refs/heads/main",
- "refs/heads/master"
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
],
- "exclude": [
- "refs/heads/dev*"
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
]
- }
- },
- "rules": [
- {
- "type": "commit_author_email_pattern",
- "parameters": {
- "operator": "contains",
- "pattern": "github"
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
}
}
- ]
- }
- }
- ],
- "schema": {
- "allOf": [
- {
- "title": "Ruleset version",
- "type": "object",
- "description": "The historical version of a ruleset",
+ },
"required": [
- "version_id",
- "actor",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
"updated_at"
- ],
+ ]
+ },
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
"properties": {
- "version_id": {
+ "id": {
+ "description": "Unique identifier of the repository",
"type": "integer",
- "description": "The ID of the previous version of the ruleset"
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- "actor": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
- "description": "The actor who updated the ruleset",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "type": "integer"
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
},
"type": {
- "type": "string"
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
"updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
"type": "string",
- "format": "date-time"
- }
- }
- },
- {
- "type": "object",
- "required": [
- "state"
- ],
- "properties": {
- "state": {
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
"type": "object",
- "description": "The state of the ruleset version"
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
- }
- }
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "tags": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/tags/protection",
- "title": "Closing down - List tag protection states for a repository",
- "category": "repos",
- "subcategory": "tags",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis returns the tag protection states of a repository.
\nThis information is only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 2,
- "pattern": "v1.*"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Tag protection",
- "description": "Tag protection",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "created_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
},
- "enabled": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "pattern": {
- "type": "string",
- "examples": [
- "v1.*"
- ]
- }
- },
- "required": [
- "pattern"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/tags/protection",
- "title": "Closing down - Create a tag protection state for a repository",
- "category": "repos",
- "subcategory": "tags",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "pattern",
- "in": "body",
- "description": "An optional glob pattern to match against when enforcing tag protection.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis creates a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "pattern": "v1.*"
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "enabled": true
- },
- "schema": {
- "title": "Tag protection",
- "description": "Tag protection",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "examples": [
- 2
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "created_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "forks": {
+ "type": "integer"
},
- "updated_at": {
- "type": "string",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "master_branch": {
+ "type": "string"
},
- "enabled": {
- "type": "boolean",
- "examples": [
- true
- ]
+ "open_issues": {
+ "type": "integer"
},
- "pattern": {
- "type": "string",
- "examples": [
- "v1.*"
+ "watchers": {
+ "type": "integer"
+ },
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
"required": [
- "pattern"
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
]
}
}
@@ -722329,6 +761321,18 @@
"httpStatusCode": "201",
"description": "Created
"
},
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "401",
+ "description": "Requires authentication
"
+ },
{
"httpStatusCode": "403",
"description": "Forbidden
"
@@ -722336,12 +761340,16 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": true,
+ "serverToServer": false,
"fineGrainedPat": true,
"permissions": [
{
@@ -722352,24 +761360,15 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/tags/protection/{tag_protection_id}",
- "title": "Closing down - Delete a tag protection state for a repository",
+ "verb": "get",
+ "requestPath": "/users/{username}/repos",
+ "title": "List repositories for a user",
"category": "repos",
- "subcategory": "tags",
+ "subcategory": "repos",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "username",
+ "description": "The handle for the GitHub user account.
",
"in": "path",
"required": true,
"schema": {
@@ -722377,87 +761376,47 @@
}
},
{
- "name": "tag_protection_id",
- "description": "The unique identifier of the tag protection.
",
- "in": "path",
- "required": true,
+ "name": "type",
+ "description": "Limit results to repositories of the specified type.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis deletes a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "tag_protection_id": "TAG_PROTECTION_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
+ "type": "string",
+ "enum": [
+ "all",
+ "owner",
+ "member"
+ ],
+ "default": "owner"
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "webhooks": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks",
- "title": "List repository webhooks",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "pushed",
+ "full_name"
+ ],
+ "default": "full_name"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "direction",
+ "description": "The order to sort by. Default: asc when using full_name, otherwise desc.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
}
},
{
@@ -722480,7 +761439,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists webhooks for a repository. last response may return null if there have not been any deliveries within 30 days.
",
+ "descriptionHTML": "Lists public repositories for the specified user.
",
"codeExamples": [
{
"key": "default",
@@ -722488,8 +761447,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "owner": "OWNER",
- "repo": "REPO"
+ "username": "USERNAME"
}
},
"response": {
@@ -722498,817 +761456,995 @@
"description": "Response
",
"example": [
{
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
},
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
+ },
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_validity_checks": {
+ "status": "disabled"
+ }
}
}
],
"schema": {
"type": "array",
"items": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
"type": "object",
"properties": {
- "type": {
- "type": "string"
- },
"id": {
- "description": "Unique identifier of the webhook.",
"type": "integer",
+ "format": "int64",
"examples": [
- 42
+ 1296269
]
},
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
+ "node_id": {
"type": "string",
"examples": [
- "web"
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
+ "name": {
+ "type": "string",
"examples": [
- true
+ "Hello-World"
]
},
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
- },
+ "full_name": {
+ "type": "string",
"examples": [
- "push",
- "pull_request"
+ "octocat/Hello-World"
]
},
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
"url": {
"type": "string",
- "description": "The URL to which the payloads will be delivered.",
"format": "uri",
"examples": [
- "https://example.com/webhook"
+ "https://api.github.com/users/octocat"
]
},
- "content_type": {
+ "html_url": {
"type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "format": "uri",
"examples": [
- "\"json\""
+ "https://github.com/octocat"
]
},
- "secret": {
+ "followers_url": {
"type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "format": "uri",
"examples": [
- "\"********\""
+ "https://api.github.com/users/octocat/followers"
]
},
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
- }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
},
- "updated_at": {
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
- "format": "date-time",
+ "format": "uri",
"examples": [
- "2011-09-06T20:39:23Z"
+ "https://github.com/octocat/Hello-World"
]
},
- "created_at": {
- "type": "string",
- "format": "date-time",
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "2011-09-06T17:26:27Z"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean"
+ },
"url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "test_url": {
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "ping_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "deliveries_url": {
+ "downloads_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "last_response": {
- "title": "Hook Response",
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
"type": "object",
"properties": {
- "code": {
- "type": [
- "integer",
- "null"
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
]
},
- "status": {
- "type": [
- "string",
- "null"
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
]
},
- "message": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
}
},
"required": [
- "code",
- "status",
- "message"
+ "url",
+ "html_url",
+ "key",
+ "name"
]
- }
- },
- "required": [
- "id",
- "url",
- "type",
- "name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks",
- "title": "Create a repository webhook",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
"
- },
- {
- "type": "object",
- "name": "config",
- "in": "body",
- "description": "Key/value pairs to provide settings for this webhook.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "url",
- "description": "The URL to which the payloads will be delivered.
"
- },
- {
- "type": "string",
- "name": "content_type",
- "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
- },
- {
- "type": "string",
- "name": "secret",
- "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
- },
- {
- "type": "string or number",
- "name": "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": "array of strings",
- "name": "events",
- "in": "body",
- "description": "Determines what events the hook is triggered for.
",
- "default": [
- "push"
- ]
- },
- {
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
- "default": true
- }
- ],
- "descriptionHTML": "Repositories can have multiple webhooks installed. Each webhook should have a unique config. Multiple webhooks can\nshare the same config as long as those webhooks do not have any events that overlap.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "url": "https://example.com/webhook",
- "content_type": "json",
- "insecure_ssl": "0"
- }
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
- },
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
- }
- },
- "schema": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "description": "Unique identifier of the webhook.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
- "type": "string",
- "examples": [
- "web"
- ]
- },
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
},
- "examples": [
- "push",
- "pull_request"
- ]
- },
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
- }
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
- },
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
- },
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
- },
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
- },
- "last_response": {
- "title": "Hook Response",
- "type": "object",
- "properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "message": {
- "type": [
- "string",
- "null"
- ]
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
}
},
- "required": [
- "code",
- "status",
- "message"
- ]
- }
- },
- "required": [
- "id",
- "url",
- "type",
- "name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "title": "Get a repository webhook",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config properties, see \"Get a webhook configuration for a repository .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
- },
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
- }
- },
- "schema": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "description": "Unique identifier of the webhook.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
- "type": "string",
- "examples": [
- "web"
- ]
- },
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
},
- "examples": [
- "push",
- "pull_request"
- ]
- },
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- ]
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
}
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
- },
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
- },
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
- },
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
- },
- "last_response": {
- "title": "Hook Response",
- "type": "object",
- "properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "message": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "code",
- "status",
- "message"
- ]
- }
- },
- "required": [
- "id",
- "url",
- "type",
- "name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
- ]
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
}
}
}
@@ -723317,10 +762453,6 @@
{
"httpStatusCode": "200",
"description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
}
],
"previews": [],
@@ -723330,18 +762462,21 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Metadata\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
- },
+ }
+ ],
+ "attestations": [
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "title": "Update a repository webhook",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/attestations",
+ "title": "Create an attestation",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "attestations",
"parameters": [
{
"name": "owner",
@@ -723360,306 +762495,136 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [
{
"type": "object",
- "name": "config",
+ "name": "bundle",
"in": "body",
- "description": "Configuration object of the webhook
",
+ "description": "The attestation's Sigstore Bundle.\nRefer to the Sigstore Bundle Specification for more information.
",
+ "isRequired": true,
"childParamsGroups": [
{
"type": "string",
- "name": "url",
- "description": "The URL to which the payloads will be delivered.
"
- },
- {
- "type": "string",
- "name": "content_type",
- "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
+ "name": "mediaType",
+ "description": ""
},
{
- "type": "string",
- "name": "secret",
- "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
+ "type": "object",
+ "name": "verificationMaterial",
+ "description": ""
},
{
- "type": "string or number",
- "name": "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": "object",
+ "name": "dsseEnvelope",
+ "description": ""
}
]
- },
- {
- "type": "array of strings",
- "name": "events",
- "in": "body",
- "description": "Determines what events the hook is triggered for. This replaces the entire array of events.
",
- "default": [
- "push"
- ]
- },
- {
- "type": "array of strings",
- "name": "add_events",
- "in": "body",
- "description": "Determines a list of events to be added to the list of events that the Hook triggers for.
"
- },
- {
- "type": "array of strings",
- "name": "remove_events",
- "in": "body",
- "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
"
- },
- {
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
- "default": true
}
],
- "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret set, you must provide the same secret or set a new secret or the secret will be removed. If you are only updating individual webhook config properties, use \"Update a webhook configuration for a repository .\"
",
+ "descriptionHTML": "Store an artifact attestation and associate it with a repository.
\nThe authenticated user must have write permission to the repository and, if using a fine-grained access token, the attestations:write permission is required.
\nArtifact attestations are meant to be created using the attest action . For more information, see our guide on using artifact attestations to establish a build's provenance .
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example of a request body",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "active": true,
- "add_events": [
- "pull_request"
- ]
+ "value": {
+ "bundle": {
+ "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
+ "verificationMaterial": {
+ "tlogEntries": [
+ {
+ "logIndex": "97913980",
+ "logId": {
+ "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="
+ },
+ "kindVersion": {
+ "kind": "dsse",
+ "version": "0.0.1"
+ },
+ "integratedTime": "1716998992",
+ "inclusionPromise": {
+ "signedEntryTimestamp": "MEYCIQCeEsQAy+qXtULkh52wbnHrkt2R2JQ05P9STK/xmdpQ2AIhANiG5Gw6cQiMnwvUz1+9UKtG/vlC8dduq07wsFOViwSL"
+ },
+ "inclusionProof": {
+ "logIndex": "93750549",
+ "rootHash": "KgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=",
+ "treeSize": "93750551",
+ "hashes": [
+ "8LI21mzwxnUSo0fuZeFsUrz2ujZ4QAL+oGeTG+5toZg=",
+ "nCb369rcIytNhGwWoqBv+eV49X3ZKpo/HJGKm9V+dck=",
+ "hnNQ9mUdSwYCfdV21pd87NucrdRRNZATowlaRR1hJ4A=",
+ "MBhhK33vlD4Tq/JKgAaXUI4VjmosWKe6+7RNpQ2ncNM=",
+ "XKWUE3stvGV1OHsIGiCGfn047Ok6uD4mFkh7BaicaEc=",
+ "Tgve40VPFfuei+0nhupdGpfPPR+hPpZjxgTiDT8WNoY=",
+ "wV+S/7tLtYGzkLaSb6UDqexNyhMvumHK/RpTNvEZuLU=",
+ "uwaWufty6sn6XqO1Tb9M3Vz6sBKPu0HT36mStxJNd7s=",
+ "jUfeMOXQP0XF1JAnCEETVbfRKMUwCzrVUzYi8vnDMVs=",
+ "xQKjzJAwwdlQG/YUYBKPXxbCmhMYKo1wnv+6vDuKWhQ=",
+ "cX3Agx+hP66t1ZLbX/yHbfjU46/3m/VAmWyG/fhxAVc=",
+ "sjohk/3DQIfXTgf/5XpwtdF7yNbrf8YykOMHr1CyBYQ=",
+ "98enzMaC+x5oCMvIZQA5z8vu2apDMCFvE/935NfuPw8="
+ ],
+ "checkpoint": {
+ "envelope": "rekor.sigstore.dev - 2605736670972794746\\n93750551\\nKgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=\\n\\n— rekor.sigstore.dev wNI9ajBEAiBkLzdjY8A9HReU7rmtjwZ+JpSuYtEr9SmvSwUIW7FBjgIgKo+vhkW3tqc+gc8fw9gza3xLoncA8a+MTaJYCaLGA9c=\\n"
+ }
+ },
+ "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiM2I1YzkwNDk5MGFiYzE4NjI1ZWE3Njg4MzE1OGEwZmI4MTEwMjM4MGJkNjQwZjI5OWJlMzYwZWVkOTMxNjYwYiJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6IjM4ZGNlZDJjMzE1MGU2OTQxMDViYjZiNDNjYjY3NzBiZTYzZDdhNGM4NjNiMTc2YTkwMmU1MGQ5ZTAyN2ZiMjMifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVRQ0lFR0lHQW03Z1pWTExwc3JQY2puZEVqaXVjdEUyL2M5K2o5S0d2YXp6M3JsQWlBZDZPMTZUNWhrelJNM0liUlB6bSt4VDQwbU5RWnhlZmQ3bGFEUDZ4MlhMUT09IiwidmVyaWZpZXIiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VkcVZFTkRRbWhUWjBGM1NVSkJaMGxWVjFsNGNVdHpjazFUTTFOMmJEVkphalZQUkdaQ1owMUtUeTlKZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwUmQwNVVTVFZOVkZsM1QxUlZlVmRvWTA1TmFsRjNUbFJKTlUxVVdYaFBWRlY1VjJwQlFVMUdhM2RGZDFsSUNrdHZXa2w2YWpCRFFWRlpTVXR2V2tsNmFqQkVRVkZqUkZGblFVVmtiV2RvVGs1M00yNVZMMHQxWlZGbmMzQkhTRmMzWjJnNVdFeEVMMWRrU1RoWlRVSUtLekJ3TUZZMGJ6RnJTRzgyWTAweGMwUktaM0pEWjFCUlZYcDRjSFZaZFc4cmVIZFFTSGxzTDJ0RWVXWXpSVXhxYTJGUFEwSlVUWGRuWjFWMlRVRTBSd3BCTVZWa1JIZEZRaTkzVVVWQmQwbElaMFJCVkVKblRsWklVMVZGUkVSQlMwSm5aM0pDWjBWR1FsRmpSRUY2UVdSQ1owNVdTRkUwUlVablVWVnhaa05RQ25aWVMwRjJVelJEWkdoUk1taGlXbGRLVTA5RmRsWnZkMGgzV1VSV1VqQnFRa0puZDBadlFWVXpPVkJ3ZWpGWmEwVmFZalZ4VG1wd1MwWlhhWGhwTkZrS1drUTRkMWRuV1VSV1VqQlNRVkZJTDBKR1FYZFViMXBOWVVoU01HTklUVFpNZVRsdVlWaFNiMlJYU1hWWk1qbDBUREpPYzJGVE9XcGlSMnQyVEcxa2NBcGtSMmd4V1drNU0ySXpTbkphYlhoMlpETk5kbHBIVm5kaVJ6azFZbGRXZFdSRE5UVmlWM2hCWTIxV2JXTjVPVzlhVjBaclkzazVNR051Vm5WaGVrRTFDa0puYjNKQ1owVkZRVmxQTDAxQlJVSkNRM1J2WkVoU2QyTjZiM1pNTTFKMllUSldkVXh0Um1wa1IyeDJZbTVOZFZveWJEQmhTRlpwWkZoT2JHTnRUbllLWW01U2JHSnVVWFZaTWpsMFRVSTRSME5wYzBkQlVWRkNaemM0ZDBGUlNVVkZXR1IyWTIxMGJXSkhPVE5ZTWxKd1l6TkNhR1JIVG05TlJGbEhRMmx6UndwQlVWRkNaemM0ZDBGUlRVVkxSMXBvV2xkWmVWcEhVbXRQUkVacFRVUmplazVxWXpCUFJGRjRUVEpGTTFsNldUQk9iVTVyVFVkS2JWbDZTVEpaZWtGM0NsbFVRWGRIUVZsTFMzZFpRa0pCUjBSMmVrRkNRa0ZSUzFKSFZuZGlSemsxWWxkV2RXUkVRVlpDWjI5eVFtZEZSVUZaVHk5TlFVVkdRa0ZrYW1KSGEzWUtXVEo0Y0UxQ05FZERhWE5IUVZGUlFtYzNPSGRCVVZsRlJVaEtiRnB1VFhaaFIxWm9Xa2hOZG1SSVNqRmliWE4zVDNkWlMwdDNXVUpDUVVkRWRucEJRZ3BEUVZGMFJFTjBiMlJJVW5kamVtOTJURE5TZG1FeVZuVk1iVVpxWkVkc2RtSnVUWFZhTW13d1lVaFdhV1JZVG14amJVNTJZbTVTYkdKdVVYVlpNamwwQ2sxR2QwZERhWE5IUVZGUlFtYzNPSGRCVVd0RlZHZDRUV0ZJVWpCalNFMDJUSGs1Ym1GWVVtOWtWMGwxV1RJNWRFd3lUbk5oVXpscVlrZHJka3h0WkhBS1pFZG9NVmxwT1ROaU0wcHlXbTE0ZG1RelRYWmFSMVozWWtjNU5XSlhWblZrUXpVMVlsZDRRV050Vm0xamVUbHZXbGRHYTJONU9UQmpibFoxWVhwQk5BcENaMjl5UW1kRlJVRlpUeTlOUVVWTFFrTnZUVXRIV21oYVYxbDVXa2RTYTA5RVJtbE5SR042VG1wak1FOUVVWGhOTWtVeldYcFpNRTV0VG10TlIwcHRDbGw2U1RKWmVrRjNXVlJCZDBoUldVdExkMWxDUWtGSFJIWjZRVUpEZDFGUVJFRXhibUZZVW05a1YwbDBZVWM1ZW1SSFZtdE5RMjlIUTJselIwRlJVVUlLWnpjNGQwRlJkMFZJUVhkaFlVaFNNR05JVFRaTWVUbHVZVmhTYjJSWFNYVlpNamwwVERKT2MyRlRPV3BpUjJ0M1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWdwRVVWRnhSRU5vYlZsWFZtMU5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBGSENrTnBjMGRCVVZGQ1p6YzRkMEZSTkVWRlozZFJZMjFXYldONU9XOWFWMFpyWTNrNU1HTnVWblZoZWtGYVFtZHZja0puUlVWQldVOHZUVUZGVUVKQmMwMEtRMVJKZUUxcVdYaE5la0V3VDFSQmJVSm5iM0pDWjBWRlFWbFBMMDFCUlZGQ1FtZE5SbTFvTUdSSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhZ3BpUjJ0M1IwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWUlVVdEVRV2N4VDFSamQwNUVZM2hOVkVKalFtZHZja0puUlVWQldVOHZUVUZGVTBKRk5FMVVSMmd3Q21SSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhbUpIYTNaWk1uaHdUSGsxYm1GWVVtOWtWMGwyWkRJNWVXRXlXbk5pTTJSNlRESlNiR05IZUhZS1pWY3hiR0p1VVhWbFZ6RnpVVWhLYkZwdVRYWmhSMVpvV2toTmRtUklTakZpYlhOM1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWM1VYRkVRMmh0V1ZkV2JRcE5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBWSFEybHpSMEZSVVVKbk56aDNDa0ZTVVVWRmQzZFNaREk1ZVdFeVduTmlNMlJtV2tkc2VtTkhSakJaTW1kM1ZGRlpTMHQzV1VKQ1FVZEVkbnBCUWtaUlVTOUVSREZ2WkVoU2QyTjZiM1lLVERKa2NHUkhhREZaYVRWcVlqSXdkbGt5ZUhCTU1rNXpZVk01YUZrelVuQmlNalY2VEROS01XSnVUWFpQVkVrMFQxUkJNMDVVWXpGTmFUbG9aRWhTYkFwaVdFSXdZM2s0ZUUxQ1dVZERhWE5IUVZGUlFtYzNPSGRCVWxsRlEwRjNSMk5JVm1saVIyeHFUVWxIVEVKbmIzSkNaMFZGUVdSYU5VRm5VVU5DU0RCRkNtVjNRalZCU0dOQk0xUXdkMkZ6WWtoRlZFcHFSMUkwWTIxWFl6TkJjVXBMV0hKcVpWQkxNeTlvTkhCNVowTTRjRGR2TkVGQlFVZFFlRkl4ZW1KblFVRUtRa0ZOUVZORVFrZEJhVVZCS3pobmJGRkplRTlCYUZoQ1FVOVRObE1yT0ZweGQwcGpaSGQzVTNJdlZGZHBhSE16WkV4eFZrRjJiME5KVVVSaWVUbG9NUXBKWTNWRVJYSXJlbk5YYVV3NFVIYzFRMU5VZEd0c2RFbzBNakZ6UlRneFZuWjFOa0Z3VkVGTFFtZG5jV2hyYWs5UVVWRkVRWGRPYmtGRVFtdEJha0VyQ2tSSU4xQXJhR2cwVmtoWFprTlhXSFJ5UzFSdlFrdDFZa0pyUzNCbVYwTlpVWGhxV0UweWRsWXZibEJ4WWxwR1dVOVdXazlpWlRaQlRuSm5lV1J2V1VNS1RVWlZUV0l6ZUhwelJrNVJXWFp6UlZsUGFUSkxibkoyUmpCMFoyOXdiVmhIVm05NmJsb3JjUzh5UVVsRVZ6bEdNVVUzV1RaWk1EWXhaVzkxUVZsa1NBcFhkejA5Q2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLIn1dfX0="
+ }
+ ],
+ "timestampVerificationData": {},
+ "certificate": {
+ "rawBytes": "MIIGjTCCBhSgAwIBAgIUWYxqKsrMS3Svl5Ij5ODfBgMJO/IwCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwNTI5MTYwOTUyWhcNMjQwNTI5MTYxOTUyWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmghNNw3nU/KueQgspGHW7gh9XLD/WdI8YMB+0p0V4o1kHo6cM1sDJgrCgPQUzxpuYuo+xwPHyl/kDyf3ELjkaOCBTMwggUvMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUqfCPvXKAvS4CdhQ2hbZWJSOEvVowHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wWgYDVR0RAQH/BFAwToZMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA5BgorBgEEAYO/MAEBBCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMB8GCisGAQQBg78wAQIEEXdvcmtmbG93X2Rpc3BhdGNoMDYGCisGAQQBg78wAQMEKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwGAYKKwYBBAGDvzABBAQKRGVwbG95bWVudDAVBgorBgEEAYO/MAEFBAdjbGkvY2xpMB4GCisGAQQBg78wAQYEEHJlZnMvaGVhZHMvdHJ1bmswOwYKKwYBBAGDvzABCAQtDCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMFwGCisGAQQBg78wAQkETgxMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA4BgorBgEEAYO/MAEKBCoMKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwHQYKKwYBBAGDvzABCwQPDA1naXRodWItaG9zdGVkMCoGCisGAQQBg78wAQwEHAwaaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkwOAYKKwYBBAGDvzABDQQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCAGCisGAQQBg78wAQ4EEgwQcmVmcy9oZWFkcy90cnVuazAZBgorBgEEAYO/MAEPBAsMCTIxMjYxMzA0OTAmBgorBgEEAYO/MAEQBBgMFmh0dHBzOi8vZ2l0aHViLmNvbS9jbGkwGAYKKwYBBAGDvzABEQQKDAg1OTcwNDcxMTBcBgorBgEEAYO/MAESBE4MTGh0dHBzOi8vZ2l0aHViLmNvbS9jbGkvY2xpLy5naXRodWIvd29ya2Zsb3dzL2RlcGxveW1lbnQueW1sQHJlZnMvaGVhZHMvdHJ1bmswOAYKKwYBBAGDvzABEwQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCEGCisGAQQBg78wARQEEwwRd29ya2Zsb3dfZGlzcGF0Y2gwTQYKKwYBBAGDvzABFQQ/DD1odHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaS9hY3Rpb25zL3J1bnMvOTI4OTA3NTc1Mi9hdHRlbXB0cy8xMBYGCisGAQQBg78wARYECAwGcHVibGljMIGLBgorBgEEAdZ5AgQCBH0EewB5AHcA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGPxR1zbgAABAMASDBGAiEA+8glQIxOAhXBAOS6S+8ZqwJcdwwSr/TWihs3dLqVAvoCIQDby9h1IcuDEr+zsWiL8Pw5CSTtkltJ421sE81Vvu6ApTAKBggqhkjOPQQDAwNnADBkAjA+DH7P+hh4VHWfCWXtrKToBKubBkKpfWCYQxjXM2vV/nPqbZFYOVZObe6ANrgydoYCMFUMb3xzsFNQYvsEYOi2KnrvF0tgopmXGVoznZ+q/2AIDW9F1E7Y6Y061eouAYdHWw=="
+ }
+ },
+ "dsseEnvelope": {
+ "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiZ2hfMi41MC4wX3dpbmRvd3NfYXJtNjQuemlwIiwiZGlnZXN0Ijp7InNoYTI1NiI6IjhhYWQxMjBiNDE2Mzg2YjQyNjllZjYyYzhmZGViY2FkMzFhNzA4NDcyOTc4MTdhMTQ5ZGFmOTI3ZWRjODU1NDgifX1dLCJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YxIiwicHJlZGljYXRlIjp7ImJ1aWxkRGVmaW5pdGlvbiI6eyJidWlsZFR5cGUiOiJodHRwczovL3Nsc2EtZnJhbWV3b3JrLmdpdGh1Yi5pby9naXRodWItYWN0aW9ucy1idWlsZHR5cGVzL3dvcmtmbG93L3YxIiwiZXh0ZXJuYWxQYXJhbWV0ZXJzIjp7IndvcmtmbG93Ijp7InJlZiI6InJlZnMvaGVhZHMvdHJ1bmsiLCJyZXBvc2l0b3J5IjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkiLCJwYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWwifX0sImludGVybmFsUGFyYW1ldGVycyI6eyJnaXRodWIiOnsiZXZlbnRfbmFtZSI6IndvcmtmbG93X2Rpc3BhdGNoIiwicmVwb3NpdG9yeV9pZCI6IjIxMjYxMzA0OSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1OTcwNDcxMSJ9fSwicmVzb2x2ZWREZXBlbmRlbmNpZXMiOlt7InVyaSI6ImdpdCtodHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaUByZWZzL2hlYWRzL3RydW5rIiwiZGlnZXN0Ijp7ImdpdENvbW1pdCI6ImZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAifX1dfSwicnVuRGV0YWlscyI6eyJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly9naXRodWIuY29tL2FjdGlvbnMvcnVubmVyL2dpdGh1Yi1ob3N0ZWQifSwibWV0YWRhdGEiOnsiaW52b2NhdGlvbklkIjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvYWN0aW9ucy9ydW5zLzkyODkwNzU3NTIvYXR0ZW1wdHMvMSJ9fX19",
+ "payloadType": "application/vnd.in-toto+json",
+ "signatures": [
+ {
+ "sig": "MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ=="
+ }
+ ]
+ }
+ }
+ }
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
- "description": "Response
",
+ "description": "response
",
"example": {
- "type": "Repository",
- "id": 12345678,
- "name": "web",
- "active": true,
- "events": [
- "push",
- "pull_request"
- ],
- "config": {
- "content_type": "json",
- "insecure_ssl": "0",
- "url": "https://example.com/webhook"
- },
- "updated_at": "2019-06-03T00:57:16Z",
- "created_at": "2019-06-03T00:57:16Z",
- "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
- "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
- "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
- "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
- "last_response": {
- "code": null,
- "status": "unused",
- "message": null
- }
+ "id": 2
},
"schema": {
- "title": "Webhook",
- "description": "Webhooks for repositories.",
"type": "object",
"properties": {
- "type": {
- "type": "string"
- },
"id": {
- "description": "Unique identifier of the webhook.",
"type": "integer",
- "examples": [
- 42
- ]
- },
- "name": {
- "description": "The name of a valid service, use 'web' for a webhook.",
- "type": "string",
- "examples": [
- "web"
- ]
- },
- "active": {
- "description": "Determines whether the hook is actually triggered on pushes.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "events": {
- "description": "Determines what events the hook is triggered for. Default: ['push'].",
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "push",
- "pull_request"
- ]
- },
- "config": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
- },
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
- }
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T20:39:23Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-09-06T17:26:27Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1"
- ]
- },
- "test_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
- ]
- },
- "ping_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
- ]
- },
- "deliveries_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
- ]
- },
- "last_response": {
- "title": "Hook Response",
- "type": "object",
- "properties": {
- "code": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "message": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "code",
- "status",
- "message"
- ]
+ "description": "The ID of the attestation."
}
- },
- "required": [
- "id",
- "url",
- "type",
- "name",
- "active",
- "events",
- "config",
- "ping_url",
- "created_at",
- "updated_at",
- "last_response",
- "test_url"
- ]
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
"httpStatusCode": "422",
@@ -723673,18 +762638,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Attestations\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "title": "Delete a repository webhook",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/attestations/{subject_digest}",
+ "title": "List attestations",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "attestations",
"parameters": [
{
"name": "owner",
@@ -723705,17 +762670,54 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "subject_digest",
+ "description": "The parameter should be set to the attestation's subject's SHA256 digest, in the form sha256:HEX_DIGEST.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
+ },
+ "x-multi-segment": true
+ },
+ {
+ "name": "predicate_type",
+ "description": "Optional filter for fetching attestations with a given predicate type.\nThis option accepts provenance, sbom, release, or freeform text\nfor custom predicate types.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Delete a webhook for an organization.
\nThe authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook.
",
+ "descriptionHTML": "List a collection of artifact attestations with a given subject digest that are associated with a repository.
\nThe authenticated user making the request must have read access to the repository. In addition, when using a fine-grained access token the attestations:read permission is required.
\nPlease note: in order to offer meaningful security benefits, an attestation's signature and timestamps must be cryptographically verified, and the identity of the attestation signer must be validated. Attestations can be verified using the GitHub CLI attestation verify command . For more information, see our guide on how to use artifact attestations to establish a build's provenance .
",
"codeExamples": [
{
"key": "default",
@@ -723725,23 +762727,187 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID"
+ "subject_digest": "SUBJECT_DIGEST"
}
},
"response": {
- "statusCode": "204",
- "description": "Response
"
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "attestations": [
+ {
+ "bundle": {
+ "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
+ "verificationMaterial": {
+ "tlogEntries": [
+ {
+ "logIndex": "97913980",
+ "logId": {
+ "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="
+ },
+ "kindVersion": {
+ "kind": "dsse",
+ "version": "0.0.1"
+ },
+ "integratedTime": "1716998992",
+ "inclusionPromise": {
+ "signedEntryTimestamp": "MEYCIQCeEsQAy+qXtULkh52wbnHrkt2R2JQ05P9STK/xmdpQ2AIhANiG5Gw6cQiMnwvUz1+9UKtG/vlC8dduq07wsFOViwSL"
+ },
+ "inclusionProof": {
+ "logIndex": "93750549",
+ "rootHash": "KgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=",
+ "treeSize": "93750551",
+ "hashes": [
+ "8LI21mzwxnUSo0fuZeFsUrz2ujZ4QAL+oGeTG+5toZg=",
+ "nCb369rcIytNhGwWoqBv+eV49X3ZKpo/HJGKm9V+dck=",
+ "hnNQ9mUdSwYCfdV21pd87NucrdRRNZATowlaRR1hJ4A=",
+ "MBhhK33vlD4Tq/JKgAaXUI4VjmosWKe6+7RNpQ2ncNM=",
+ "XKWUE3stvGV1OHsIGiCGfn047Ok6uD4mFkh7BaicaEc=",
+ "Tgve40VPFfuei+0nhupdGpfPPR+hPpZjxgTiDT8WNoY=",
+ "wV+S/7tLtYGzkLaSb6UDqexNyhMvumHK/RpTNvEZuLU=",
+ "uwaWufty6sn6XqO1Tb9M3Vz6sBKPu0HT36mStxJNd7s=",
+ "jUfeMOXQP0XF1JAnCEETVbfRKMUwCzrVUzYi8vnDMVs=",
+ "xQKjzJAwwdlQG/YUYBKPXxbCmhMYKo1wnv+6vDuKWhQ=",
+ "cX3Agx+hP66t1ZLbX/yHbfjU46/3m/VAmWyG/fhxAVc=",
+ "sjohk/3DQIfXTgf/5XpwtdF7yNbrf8YykOMHr1CyBYQ=",
+ "98enzMaC+x5oCMvIZQA5z8vu2apDMCFvE/935NfuPw8="
+ ],
+ "checkpoint": {
+ "envelope": "rekor.sigstore.dev - 2605736670972794746\\n93750551\\nKgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=\\n\\n— rekor.sigstore.dev wNI9ajBEAiBkLzdjY8A9HReU7rmtjwZ+JpSuYtEr9SmvSwUIW7FBjgIgKo+vhkW3tqc+gc8fw9gza3xLoncA8a+MTaJYCaLGA9c=\\n"
+ }
+ },
+ "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiM2I1YzkwNDk5MGFiYzE4NjI1ZWE3Njg4MzE1OGEwZmI4MTEwMjM4MGJkNjQwZjI5OWJlMzYwZWVkOTMxNjYwYiJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6IjM4ZGNlZDJjMzE1MGU2OTQxMDViYjZiNDNjYjY3NzBiZTYzZDdhNGM4NjNiMTc2YTkwMmU1MGQ5ZTAyN2ZiMjMifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVRQ0lFR0lHQW03Z1pWTExwc3JQY2puZEVqaXVjdEUyL2M5K2o5S0d2YXp6M3JsQWlBZDZPMTZUNWhrelJNM0liUlB6bSt4VDQwbU5RWnhlZmQ3bGFEUDZ4MlhMUT09IiwidmVyaWZpZXIiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VkcVZFTkRRbWhUWjBGM1NVSkJaMGxWVjFsNGNVdHpjazFUTTFOMmJEVkphalZQUkdaQ1owMUtUeTlKZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwUmQwNVVTVFZOVkZsM1QxUlZlVmRvWTA1TmFsRjNUbFJKTlUxVVdYaFBWRlY1VjJwQlFVMUdhM2RGZDFsSUNrdHZXa2w2YWpCRFFWRlpTVXR2V2tsNmFqQkVRVkZqUkZGblFVVmtiV2RvVGs1M00yNVZMMHQxWlZGbmMzQkhTRmMzWjJnNVdFeEVMMWRrU1RoWlRVSUtLekJ3TUZZMGJ6RnJTRzgyWTAweGMwUktaM0pEWjFCUlZYcDRjSFZaZFc4cmVIZFFTSGxzTDJ0RWVXWXpSVXhxYTJGUFEwSlVUWGRuWjFWMlRVRTBSd3BCTVZWa1JIZEZRaTkzVVVWQmQwbElaMFJCVkVKblRsWklVMVZGUkVSQlMwSm5aM0pDWjBWR1FsRmpSRUY2UVdSQ1owNVdTRkUwUlVablVWVnhaa05RQ25aWVMwRjJVelJEWkdoUk1taGlXbGRLVTA5RmRsWnZkMGgzV1VSV1VqQnFRa0puZDBadlFWVXpPVkJ3ZWpGWmEwVmFZalZ4VG1wd1MwWlhhWGhwTkZrS1drUTRkMWRuV1VSV1VqQlNRVkZJTDBKR1FYZFViMXBOWVVoU01HTklUVFpNZVRsdVlWaFNiMlJYU1hWWk1qbDBUREpPYzJGVE9XcGlSMnQyVEcxa2NBcGtSMmd4V1drNU0ySXpTbkphYlhoMlpETk5kbHBIVm5kaVJ6azFZbGRXZFdSRE5UVmlWM2hCWTIxV2JXTjVPVzlhVjBaclkzazVNR051Vm5WaGVrRTFDa0puYjNKQ1owVkZRVmxQTDAxQlJVSkNRM1J2WkVoU2QyTjZiM1pNTTFKMllUSldkVXh0Um1wa1IyeDJZbTVOZFZveWJEQmhTRlpwWkZoT2JHTnRUbllLWW01U2JHSnVVWFZaTWpsMFRVSTRSME5wYzBkQlVWRkNaemM0ZDBGUlNVVkZXR1IyWTIxMGJXSkhPVE5ZTWxKd1l6TkNhR1JIVG05TlJGbEhRMmx6UndwQlVWRkNaemM0ZDBGUlRVVkxSMXBvV2xkWmVWcEhVbXRQUkVacFRVUmplazVxWXpCUFJGRjRUVEpGTTFsNldUQk9iVTVyVFVkS2JWbDZTVEpaZWtGM0NsbFVRWGRIUVZsTFMzZFpRa0pCUjBSMmVrRkNRa0ZSUzFKSFZuZGlSemsxWWxkV2RXUkVRVlpDWjI5eVFtZEZSVUZaVHk5TlFVVkdRa0ZrYW1KSGEzWUtXVEo0Y0UxQ05FZERhWE5IUVZGUlFtYzNPSGRCVVZsRlJVaEtiRnB1VFhaaFIxWm9Xa2hOZG1SSVNqRmliWE4zVDNkWlMwdDNXVUpDUVVkRWRucEJRZ3BEUVZGMFJFTjBiMlJJVW5kamVtOTJURE5TZG1FeVZuVk1iVVpxWkVkc2RtSnVUWFZhTW13d1lVaFdhV1JZVG14amJVNTJZbTVTYkdKdVVYVlpNamwwQ2sxR2QwZERhWE5IUVZGUlFtYzNPSGRCVVd0RlZHZDRUV0ZJVWpCalNFMDJUSGs1Ym1GWVVtOWtWMGwxV1RJNWRFd3lUbk5oVXpscVlrZHJka3h0WkhBS1pFZG9NVmxwT1ROaU0wcHlXbTE0ZG1RelRYWmFSMVozWWtjNU5XSlhWblZrUXpVMVlsZDRRV050Vm0xamVUbHZXbGRHYTJONU9UQmpibFoxWVhwQk5BcENaMjl5UW1kRlJVRlpUeTlOUVVWTFFrTnZUVXRIV21oYVYxbDVXa2RTYTA5RVJtbE5SR042VG1wak1FOUVVWGhOTWtVeldYcFpNRTV0VG10TlIwcHRDbGw2U1RKWmVrRjNXVlJCZDBoUldVdExkMWxDUWtGSFJIWjZRVUpEZDFGUVJFRXhibUZZVW05a1YwbDBZVWM1ZW1SSFZtdE5RMjlIUTJselIwRlJVVUlLWnpjNGQwRlJkMFZJUVhkaFlVaFNNR05JVFRaTWVUbHVZVmhTYjJSWFNYVlpNamwwVERKT2MyRlRPV3BpUjJ0M1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWdwRVVWRnhSRU5vYlZsWFZtMU5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBGSENrTnBjMGRCVVZGQ1p6YzRkMEZSTkVWRlozZFJZMjFXYldONU9XOWFWMFpyWTNrNU1HTnVWblZoZWtGYVFtZHZja0puUlVWQldVOHZUVUZGVUVKQmMwMEtRMVJKZUUxcVdYaE5la0V3VDFSQmJVSm5iM0pDWjBWRlFWbFBMMDFCUlZGQ1FtZE5SbTFvTUdSSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhZ3BpUjJ0M1IwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWUlVVdEVRV2N4VDFSamQwNUVZM2hOVkVKalFtZHZja0puUlVWQldVOHZUVUZGVTBKRk5FMVVSMmd3Q21SSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhbUpIYTNaWk1uaHdUSGsxYm1GWVVtOWtWMGwyWkRJNWVXRXlXbk5pTTJSNlRESlNiR05IZUhZS1pWY3hiR0p1VVhWbFZ6RnpVVWhLYkZwdVRYWmhSMVpvV2toTmRtUklTakZpYlhOM1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWM1VYRkVRMmh0V1ZkV2JRcE5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBWSFEybHpSMEZSVVVKbk56aDNDa0ZTVVVWRmQzZFNaREk1ZVdFeVduTmlNMlJtV2tkc2VtTkhSakJaTW1kM1ZGRlpTMHQzV1VKQ1FVZEVkbnBCUWtaUlVTOUVSREZ2WkVoU2QyTjZiM1lLVERKa2NHUkhhREZaYVRWcVlqSXdkbGt5ZUhCTU1rNXpZVk01YUZrelVuQmlNalY2VEROS01XSnVUWFpQVkVrMFQxUkJNMDVVWXpGTmFUbG9aRWhTYkFwaVdFSXdZM2s0ZUUxQ1dVZERhWE5IUVZGUlFtYzNPSGRCVWxsRlEwRjNSMk5JVm1saVIyeHFUVWxIVEVKbmIzSkNaMFZGUVdSYU5VRm5VVU5DU0RCRkNtVjNRalZCU0dOQk0xUXdkMkZ6WWtoRlZFcHFSMUkwWTIxWFl6TkJjVXBMV0hKcVpWQkxNeTlvTkhCNVowTTRjRGR2TkVGQlFVZFFlRkl4ZW1KblFVRUtRa0ZOUVZORVFrZEJhVVZCS3pobmJGRkplRTlCYUZoQ1FVOVRObE1yT0ZweGQwcGpaSGQzVTNJdlZGZHBhSE16WkV4eFZrRjJiME5KVVVSaWVUbG9NUXBKWTNWRVJYSXJlbk5YYVV3NFVIYzFRMU5VZEd0c2RFbzBNakZ6UlRneFZuWjFOa0Z3VkVGTFFtZG5jV2hyYWs5UVVWRkVRWGRPYmtGRVFtdEJha0VyQ2tSSU4xQXJhR2cwVmtoWFprTlhXSFJ5UzFSdlFrdDFZa0pyUzNCbVYwTlpVWGhxV0UweWRsWXZibEJ4WWxwR1dVOVdXazlpWlRaQlRuSm5lV1J2V1VNS1RVWlZUV0l6ZUhwelJrNVJXWFp6UlZsUGFUSkxibkoyUmpCMFoyOXdiVmhIVm05NmJsb3JjUzh5UVVsRVZ6bEdNVVUzV1RaWk1EWXhaVzkxUVZsa1NBcFhkejA5Q2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLIn1dfX0="
+ }
+ ],
+ "timestampVerificationData": {},
+ "certificate": {
+ "rawBytes": "MIIGjTCCBhSgAwIBAgIUWYxqKsrMS3Svl5Ij5ODfBgMJO/IwCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwNTI5MTYwOTUyWhcNMjQwNTI5MTYxOTUyWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmghNNw3nU/KueQgspGHW7gh9XLD/WdI8YMB+0p0V4o1kHo6cM1sDJgrCgPQUzxpuYuo+xwPHyl/kDyf3ELjkaOCBTMwggUvMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUqfCPvXKAvS4CdhQ2hbZWJSOEvVowHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wWgYDVR0RAQH/BFAwToZMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA5BgorBgEEAYO/MAEBBCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMB8GCisGAQQBg78wAQIEEXdvcmtmbG93X2Rpc3BhdGNoMDYGCisGAQQBg78wAQMEKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwGAYKKwYBBAGDvzABBAQKRGVwbG95bWVudDAVBgorBgEEAYO/MAEFBAdjbGkvY2xpMB4GCisGAQQBg78wAQYEEHJlZnMvaGVhZHMvdHJ1bmswOwYKKwYBBAGDvzABCAQtDCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMFwGCisGAQQBg78wAQkETgxMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA4BgorBgEEAYO/MAEKBCoMKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwHQYKKwYBBAGDvzABCwQPDA1naXRodWItaG9zdGVkMCoGCisGAQQBg78wAQwEHAwaaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkwOAYKKwYBBAGDvzABDQQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCAGCisGAQQBg78wAQ4EEgwQcmVmcy9oZWFkcy90cnVuazAZBgorBgEEAYO/MAEPBAsMCTIxMjYxMzA0OTAmBgorBgEEAYO/MAEQBBgMFmh0dHBzOi8vZ2l0aHViLmNvbS9jbGkwGAYKKwYBBAGDvzABEQQKDAg1OTcwNDcxMTBcBgorBgEEAYO/MAESBE4MTGh0dHBzOi8vZ2l0aHViLmNvbS9jbGkvY2xpLy5naXRodWIvd29ya2Zsb3dzL2RlcGxveW1lbnQueW1sQHJlZnMvaGVhZHMvdHJ1bmswOAYKKwYBBAGDvzABEwQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCEGCisGAQQBg78wARQEEwwRd29ya2Zsb3dfZGlzcGF0Y2gwTQYKKwYBBAGDvzABFQQ/DD1odHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaS9hY3Rpb25zL3J1bnMvOTI4OTA3NTc1Mi9hdHRlbXB0cy8xMBYGCisGAQQBg78wARYECAwGcHVibGljMIGLBgorBgEEAdZ5AgQCBH0EewB5AHcA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGPxR1zbgAABAMASDBGAiEA+8glQIxOAhXBAOS6S+8ZqwJcdwwSr/TWihs3dLqVAvoCIQDby9h1IcuDEr+zsWiL8Pw5CSTtkltJ421sE81Vvu6ApTAKBggqhkjOPQQDAwNnADBkAjA+DH7P+hh4VHWfCWXtrKToBKubBkKpfWCYQxjXM2vV/nPqbZFYOVZObe6ANrgydoYCMFUMb3xzsFNQYvsEYOi2KnrvF0tgopmXGVoznZ+q/2AIDW9F1E7Y6Y061eouAYdHWw=="
+ }
+ },
+ "dsseEnvelope": {
+ "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiZ2hfMi41MC4wX3dpbmRvd3NfYXJtNjQuemlwIiwiZGlnZXN0Ijp7InNoYTI1NiI6IjhhYWQxMjBiNDE2Mzg2YjQyNjllZjYyYzhmZGViY2FkMzFhNzA4NDcyOTc4MTdhMTQ5ZGFmOTI3ZWRjODU1NDgifX1dLCJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YxIiwicHJlZGljYXRlIjp7ImJ1aWxkRGVmaW5pdGlvbiI6eyJidWlsZFR5cGUiOiJodHRwczovL3Nsc2EtZnJhbWV3b3JrLmdpdGh1Yi5pby9naXRodWItYWN0aW9ucy1idWlsZHR5cGVzL3dvcmtmbG93L3YxIiwiZXh0ZXJuYWxQYXJhbWV0ZXJzIjp7IndvcmtmbG93Ijp7InJlZiI6InJlZnMvaGVhZHMvdHJ1bmsiLCJyZXBvc2l0b3J5IjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkiLCJwYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWwifX0sImludGVybmFsUGFyYW1ldGVycyI6eyJnaXRodWIiOnsiZXZlbnRfbmFtZSI6IndvcmtmbG93X2Rpc3BhdGNoIiwicmVwb3NpdG9yeV9pZCI6IjIxMjYxMzA0OSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1OTcwNDcxMSJ9fSwicmVzb2x2ZWREZXBlbmRlbmNpZXMiOlt7InVyaSI6ImdpdCtodHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaUByZWZzL2hlYWRzL3RydW5rIiwiZGlnZXN0Ijp7ImdpdENvbW1pdCI6ImZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAifX1dfSwicnVuRGV0YWlscyI6eyJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly9naXRodWIuY29tL2FjdGlvbnMvcnVubmVyL2dpdGh1Yi1ob3N0ZWQifSwibWV0YWRhdGEiOnsiaW52b2NhdGlvbklkIjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvYWN0aW9ucy9ydW5zLzkyODkwNzU3NTIvYXR0ZW1wdHMvMSJ9fX19",
+ "payloadType": "application/vnd.in-toto+json",
+ "signatures": [
+ {
+ "sig": "MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ=="
+ }
+ ]
+ }
+ },
+ "repository_id": 1
+ },
+ {
+ "bundle": {
+ "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
+ "verificationMaterial": {
+ "tlogEntries": [
+ {
+ "logIndex": "97913980",
+ "logId": {
+ "keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="
+ },
+ "kindVersion": {
+ "kind": "dsse",
+ "version": "0.0.1"
+ },
+ "integratedTime": "1716998992",
+ "inclusionPromise": {
+ "signedEntryTimestamp": "MEYCIQCeEsQAy+qXtULkh52wbnHrkt2R2JQ05P9STK/xmdpQ2AIhANiG5Gw6cQiMnwvUz1+9UKtG/vlC8dduq07wsFOViwSL"
+ },
+ "inclusionProof": {
+ "logIndex": "93750549",
+ "rootHash": "KgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=",
+ "treeSize": "93750551",
+ "hashes": [
+ "8LI21mzwxnUSo0fuZeFsUrz2ujZ4QAL+oGeTG+5toZg=",
+ "nCb369rcIytNhGwWoqBv+eV49X3ZKpo/HJGKm9V+dck=",
+ "hnNQ9mUdSwYCfdV21pd87NucrdRRNZATowlaRR1hJ4A=",
+ "MBhhK33vlD4Tq/JKgAaXUI4VjmosWKe6+7RNpQ2ncNM=",
+ "XKWUE3stvGV1OHsIGiCGfn047Ok6uD4mFkh7BaicaEc=",
+ "Tgve40VPFfuei+0nhupdGpfPPR+hPpZjxgTiDT8WNoY=",
+ "wV+S/7tLtYGzkLaSb6UDqexNyhMvumHK/RpTNvEZuLU=",
+ "uwaWufty6sn6XqO1Tb9M3Vz6sBKPu0HT36mStxJNd7s=",
+ "jUfeMOXQP0XF1JAnCEETVbfRKMUwCzrVUzYi8vnDMVs=",
+ "xQKjzJAwwdlQG/YUYBKPXxbCmhMYKo1wnv+6vDuKWhQ=",
+ "cX3Agx+hP66t1ZLbX/yHbfjU46/3m/VAmWyG/fhxAVc=",
+ "sjohk/3DQIfXTgf/5XpwtdF7yNbrf8YykOMHr1CyBYQ=",
+ "98enzMaC+x5oCMvIZQA5z8vu2apDMCFvE/935NfuPw8="
+ ],
+ "checkpoint": {
+ "envelope": "rekor.sigstore.dev - 2605736670972794746\\n93750551\\nKgKiXoOl8rM5d4y6Xlbm2QLftvj/FYvTs6z7dJlNO60=\\n\\n— rekor.sigstore.dev wNI9ajBEAiBkLzdjY8A9HReU7rmtjwZ+JpSuYtEr9SmvSwUIW7FBjgIgKo+vhkW3tqc+gc8fw9gza3xLoncA8a+MTaJYCaLGA9c=\\n"
+ }
+ },
+ "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiZHNzZSIsInNwZWMiOnsiZW52ZWxvcGVIYXNoIjp7ImFsZ29yaXRobSI6InNoYTI1NiIsInZhbHVlIjoiM2I1YzkwNDk5MGFiYzE4NjI1ZWE3Njg4MzE1OGEwZmI4MTEwMjM4MGJkNjQwZjI5OWJlMzYwZWVkOTMxNjYwYiJ9LCJwYXlsb2FkSGFzaCI6eyJhbGdvcml0aG0iOiJzaGEyNTYiLCJ2YWx1ZSI6IjM4ZGNlZDJjMzE1MGU2OTQxMDViYjZiNDNjYjY3NzBiZTYzZDdhNGM4NjNiMTc2YTkwMmU1MGQ5ZTAyN2ZiMjMifSwic2lnbmF0dXJlcyI6W3sic2lnbmF0dXJlIjoiTUVRQ0lFR0lHQW03Z1pWTExwc3JQY2puZEVqaXVjdEUyL2M5K2o5S0d2YXp6M3JsQWlBZDZPMTZUNWhrelJNM0liUlB6bSt4VDQwbU5RWnhlZmQ3bGFEUDZ4MlhMUT09IiwidmVyaWZpZXIiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VkcVZFTkRRbWhUWjBGM1NVSkJaMGxWVjFsNGNVdHpjazFUTTFOMmJEVkphalZQUkdaQ1owMUtUeTlKZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwUmQwNVVTVFZOVkZsM1QxUlZlVmRvWTA1TmFsRjNUbFJKTlUxVVdYaFBWRlY1VjJwQlFVMUdhM2RGZDFsSUNrdHZXa2w2YWpCRFFWRlpTVXR2V2tsNmFqQkVRVkZqUkZGblFVVmtiV2RvVGs1M00yNVZMMHQxWlZGbmMzQkhTRmMzWjJnNVdFeEVMMWRrU1RoWlRVSUtLekJ3TUZZMGJ6RnJTRzgyWTAweGMwUktaM0pEWjFCUlZYcDRjSFZaZFc4cmVIZFFTSGxzTDJ0RWVXWXpSVXhxYTJGUFEwSlVUWGRuWjFWMlRVRTBSd3BCTVZWa1JIZEZRaTkzVVVWQmQwbElaMFJCVkVKblRsWklVMVZGUkVSQlMwSm5aM0pDWjBWR1FsRmpSRUY2UVdSQ1owNVdTRkUwUlVablVWVnhaa05RQ25aWVMwRjJVelJEWkdoUk1taGlXbGRLVTA5RmRsWnZkMGgzV1VSV1VqQnFRa0puZDBadlFWVXpPVkJ3ZWpGWmEwVmFZalZ4VG1wd1MwWlhhWGhwTkZrS1drUTRkMWRuV1VSV1VqQlNRVkZJTDBKR1FYZFViMXBOWVVoU01HTklUVFpNZVRsdVlWaFNiMlJYU1hWWk1qbDBUREpPYzJGVE9XcGlSMnQyVEcxa2NBcGtSMmd4V1drNU0ySXpTbkphYlhoMlpETk5kbHBIVm5kaVJ6azFZbGRXZFdSRE5UVmlWM2hCWTIxV2JXTjVPVzlhVjBaclkzazVNR051Vm5WaGVrRTFDa0puYjNKQ1owVkZRVmxQTDAxQlJVSkNRM1J2WkVoU2QyTjZiM1pNTTFKMllUSldkVXh0Um1wa1IyeDJZbTVOZFZveWJEQmhTRlpwWkZoT2JHTnRUbllLWW01U2JHSnVVWFZaTWpsMFRVSTRSME5wYzBkQlVWRkNaemM0ZDBGUlNVVkZXR1IyWTIxMGJXSkhPVE5ZTWxKd1l6TkNhR1JIVG05TlJGbEhRMmx6UndwQlVWRkNaemM0ZDBGUlRVVkxSMXBvV2xkWmVWcEhVbXRQUkVacFRVUmplazVxWXpCUFJGRjRUVEpGTTFsNldUQk9iVTVyVFVkS2JWbDZTVEpaZWtGM0NsbFVRWGRIUVZsTFMzZFpRa0pCUjBSMmVrRkNRa0ZSUzFKSFZuZGlSemsxWWxkV2RXUkVRVlpDWjI5eVFtZEZSVUZaVHk5TlFVVkdRa0ZrYW1KSGEzWUtXVEo0Y0UxQ05FZERhWE5IUVZGUlFtYzNPSGRCVVZsRlJVaEtiRnB1VFhaaFIxWm9Xa2hOZG1SSVNqRmliWE4zVDNkWlMwdDNXVUpDUVVkRWRucEJRZ3BEUVZGMFJFTjBiMlJJVW5kamVtOTJURE5TZG1FeVZuVk1iVVpxWkVkc2RtSnVUWFZhTW13d1lVaFdhV1JZVG14amJVNTJZbTVTYkdKdVVYVlpNamwwQ2sxR2QwZERhWE5IUVZGUlFtYzNPSGRCVVd0RlZHZDRUV0ZJVWpCalNFMDJUSGs1Ym1GWVVtOWtWMGwxV1RJNWRFd3lUbk5oVXpscVlrZHJka3h0WkhBS1pFZG9NVmxwT1ROaU0wcHlXbTE0ZG1RelRYWmFSMVozWWtjNU5XSlhWblZrUXpVMVlsZDRRV050Vm0xamVUbHZXbGRHYTJONU9UQmpibFoxWVhwQk5BcENaMjl5UW1kRlJVRlpUeTlOUVVWTFFrTnZUVXRIV21oYVYxbDVXa2RTYTA5RVJtbE5SR042VG1wak1FOUVVWGhOTWtVeldYcFpNRTV0VG10TlIwcHRDbGw2U1RKWmVrRjNXVlJCZDBoUldVdExkMWxDUWtGSFJIWjZRVUpEZDFGUVJFRXhibUZZVW05a1YwbDBZVWM1ZW1SSFZtdE5RMjlIUTJselIwRlJVVUlLWnpjNGQwRlJkMFZJUVhkaFlVaFNNR05JVFRaTWVUbHVZVmhTYjJSWFNYVlpNamwwVERKT2MyRlRPV3BpUjJ0M1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWdwRVVWRnhSRU5vYlZsWFZtMU5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBGSENrTnBjMGRCVVZGQ1p6YzRkMEZSTkVWRlozZFJZMjFXYldONU9XOWFWMFpyWTNrNU1HTnVWblZoZWtGYVFtZHZja0puUlVWQldVOHZUVUZGVUVKQmMwMEtRMVJKZUUxcVdYaE5la0V3VDFSQmJVSm5iM0pDWjBWRlFWbFBMMDFCUlZGQ1FtZE5SbTFvTUdSSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhZ3BpUjJ0M1IwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWUlVVdEVRV2N4VDFSamQwNUVZM2hOVkVKalFtZHZja0puUlVWQldVOHZUVUZGVTBKRk5FMVVSMmd3Q21SSVFucFBhVGgyV2pKc01HRklWbWxNYlU1MllsTTVhbUpIYTNaWk1uaHdUSGsxYm1GWVVtOWtWMGwyWkRJNWVXRXlXbk5pTTJSNlRESlNiR05IZUhZS1pWY3hiR0p1VVhWbFZ6RnpVVWhLYkZwdVRYWmhSMVpvV2toTmRtUklTakZpYlhOM1QwRlpTMHQzV1VKQ1FVZEVkbnBCUWtWM1VYRkVRMmh0V1ZkV2JRcE5iVkpyV2tSbmVGbHFRVE5OZWxrelRrUm5NRTFVVG1oT01rMHlUa1JhYWxwRVFtbGFiVTE1VG0xTmQwMUhSWGROUTBWSFEybHpSMEZSVVVKbk56aDNDa0ZTVVVWRmQzZFNaREk1ZVdFeVduTmlNMlJtV2tkc2VtTkhSakJaTW1kM1ZGRlpTMHQzV1VKQ1FVZEVkbnBCUWtaUlVTOUVSREZ2WkVoU2QyTjZiM1lLVERKa2NHUkhhREZaYVRWcVlqSXdkbGt5ZUhCTU1rNXpZVk01YUZrelVuQmlNalY2VEROS01XSnVUWFpQVkVrMFQxUkJNMDVVWXpGTmFUbG9aRWhTYkFwaVdFSXdZM2s0ZUUxQ1dVZERhWE5IUVZGUlFtYzNPSGRCVWxsRlEwRjNSMk5JVm1saVIyeHFUVWxIVEVKbmIzSkNaMFZGUVdSYU5VRm5VVU5DU0RCRkNtVjNRalZCU0dOQk0xUXdkMkZ6WWtoRlZFcHFSMUkwWTIxWFl6TkJjVXBMV0hKcVpWQkxNeTlvTkhCNVowTTRjRGR2TkVGQlFVZFFlRkl4ZW1KblFVRUtRa0ZOUVZORVFrZEJhVVZCS3pobmJGRkplRTlCYUZoQ1FVOVRObE1yT0ZweGQwcGpaSGQzVTNJdlZGZHBhSE16WkV4eFZrRjJiME5KVVVSaWVUbG9NUXBKWTNWRVJYSXJlbk5YYVV3NFVIYzFRMU5VZEd0c2RFbzBNakZ6UlRneFZuWjFOa0Z3VkVGTFFtZG5jV2hyYWs5UVVWRkVRWGRPYmtGRVFtdEJha0VyQ2tSSU4xQXJhR2cwVmtoWFprTlhXSFJ5UzFSdlFrdDFZa0pyUzNCbVYwTlpVWGhxV0UweWRsWXZibEJ4WWxwR1dVOVdXazlpWlRaQlRuSm5lV1J2V1VNS1RVWlZUV0l6ZUhwelJrNVJXWFp6UlZsUGFUSkxibkoyUmpCMFoyOXdiVmhIVm05NmJsb3JjUzh5UVVsRVZ6bEdNVVUzV1RaWk1EWXhaVzkxUVZsa1NBcFhkejA5Q2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLIn1dfX0="
+ }
+ ],
+ "timestampVerificationData": {},
+ "certificate": {
+ "rawBytes": "MIIGjTCCBhSgAwIBAgIUWYxqKsrMS3Svl5Ij5ODfBgMJO/IwCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwNTI5MTYwOTUyWhcNMjQwNTI5MTYxOTUyWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmghNNw3nU/KueQgspGHW7gh9XLD/WdI8YMB+0p0V4o1kHo6cM1sDJgrCgPQUzxpuYuo+xwPHyl/kDyf3ELjkaOCBTMwggUvMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUqfCPvXKAvS4CdhQ2hbZWJSOEvVowHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wWgYDVR0RAQH/BFAwToZMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA5BgorBgEEAYO/MAEBBCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMB8GCisGAQQBg78wAQIEEXdvcmtmbG93X2Rpc3BhdGNoMDYGCisGAQQBg78wAQMEKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwGAYKKwYBBAGDvzABBAQKRGVwbG95bWVudDAVBgorBgEEAYO/MAEFBAdjbGkvY2xpMB4GCisGAQQBg78wAQYEEHJlZnMvaGVhZHMvdHJ1bmswOwYKKwYBBAGDvzABCAQtDCtodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tMFwGCisGAQQBg78wAQkETgxMaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWxAcmVmcy9oZWFkcy90cnVuazA4BgorBgEEAYO/MAEKBCoMKGZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAwHQYKKwYBBAGDvzABCwQPDA1naXRodWItaG9zdGVkMCoGCisGAQQBg78wAQwEHAwaaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkwOAYKKwYBBAGDvzABDQQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCAGCisGAQQBg78wAQ4EEgwQcmVmcy9oZWFkcy90cnVuazAZBgorBgEEAYO/MAEPBAsMCTIxMjYxMzA0OTAmBgorBgEEAYO/MAEQBBgMFmh0dHBzOi8vZ2l0aHViLmNvbS9jbGkwGAYKKwYBBAGDvzABEQQKDAg1OTcwNDcxMTBcBgorBgEEAYO/MAESBE4MTGh0dHBzOi8vZ2l0aHViLmNvbS9jbGkvY2xpLy5naXRodWIvd29ya2Zsb3dzL2RlcGxveW1lbnQueW1sQHJlZnMvaGVhZHMvdHJ1bmswOAYKKwYBBAGDvzABEwQqDChmYWVmMmRkZDgxYjA3MzY3NDg0MTNhN2M2NDZjZDBiZmMyNmMwMGEwMCEGCisGAQQBg78wARQEEwwRd29ya2Zsb3dfZGlzcGF0Y2gwTQYKKwYBBAGDvzABFQQ/DD1odHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaS9hY3Rpb25zL3J1bnMvOTI4OTA3NTc1Mi9hdHRlbXB0cy8xMBYGCisGAQQBg78wARYECAwGcHVibGljMIGLBgorBgEEAdZ5AgQCBH0EewB5AHcA3T0wasbHETJjGR4cmWc3AqJKXrjePK3/h4pygC8p7o4AAAGPxR1zbgAABAMASDBGAiEA+8glQIxOAhXBAOS6S+8ZqwJcdwwSr/TWihs3dLqVAvoCIQDby9h1IcuDEr+zsWiL8Pw5CSTtkltJ421sE81Vvu6ApTAKBggqhkjOPQQDAwNnADBkAjA+DH7P+hh4VHWfCWXtrKToBKubBkKpfWCYQxjXM2vV/nPqbZFYOVZObe6ANrgydoYCMFUMb3xzsFNQYvsEYOi2KnrvF0tgopmXGVoznZ+q/2AIDW9F1E7Y6Y061eouAYdHWw=="
+ }
+ },
+ "dsseEnvelope": {
+ "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiZ2hfMi41MC4wX3dpbmRvd3NfYXJtNjQuemlwIiwiZGlnZXN0Ijp7InNoYTI1NiI6IjhhYWQxMjBiNDE2Mzg2YjQyNjllZjYyYzhmZGViY2FkMzFhNzA4NDcyOTc4MTdhMTQ5ZGFmOTI3ZWRjODU1NDgifX1dLCJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YxIiwicHJlZGljYXRlIjp7ImJ1aWxkRGVmaW5pdGlvbiI6eyJidWlsZFR5cGUiOiJodHRwczovL3Nsc2EtZnJhbWV3b3JrLmdpdGh1Yi5pby9naXRodWItYWN0aW9ucy1idWlsZHR5cGVzL3dvcmtmbG93L3YxIiwiZXh0ZXJuYWxQYXJhbWV0ZXJzIjp7IndvcmtmbG93Ijp7InJlZiI6InJlZnMvaGVhZHMvdHJ1bmsiLCJyZXBvc2l0b3J5IjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkiLCJwYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvZGVwbG95bWVudC55bWwifX0sImludGVybmFsUGFyYW1ldGVycyI6eyJnaXRodWIiOnsiZXZlbnRfbmFtZSI6IndvcmtmbG93X2Rpc3BhdGNoIiwicmVwb3NpdG9yeV9pZCI6IjIxMjYxMzA0OSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1OTcwNDcxMSJ9fSwicmVzb2x2ZWREZXBlbmRlbmNpZXMiOlt7InVyaSI6ImdpdCtodHRwczovL2dpdGh1Yi5jb20vY2xpL2NsaUByZWZzL2hlYWRzL3RydW5rIiwiZGlnZXN0Ijp7ImdpdENvbW1pdCI6ImZhZWYyZGRkODFiMDczNjc0ODQxM2E3YzY0NmNkMGJmYzI2YzAwYTAifX1dfSwicnVuRGV0YWlscyI6eyJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly9naXRodWIuY29tL2FjdGlvbnMvcnVubmVyL2dpdGh1Yi1ob3N0ZWQifSwibWV0YWRhdGEiOnsiaW52b2NhdGlvbklkIjoiaHR0cHM6Ly9naXRodWIuY29tL2NsaS9jbGkvYWN0aW9ucy9ydW5zLzkyODkwNzU3NTIvYXR0ZW1wdHMvMSJ9fX19",
+ "payloadType": "application/vnd.in-toto+json",
+ "signatures": [
+ {
+ "sig": "MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ=="
+ }
+ ]
+ }
+ },
+ "repository_id": 1
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "attestations": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "bundle": {
+ "type": "object",
+ "properties": {
+ "mediaType": {
+ "type": "string"
+ },
+ "verificationMaterial": {
+ "type": "object",
+ "properties": {},
+ "additionalProperties": true
+ },
+ "dsseEnvelope": {
+ "type": "object",
+ "properties": {},
+ "additionalProperties": true
+ }
+ },
+ "description": "The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information."
+ },
+ "repository_id": {
+ "type": "integer"
+ },
+ "bundle_url": {
+ "type": "string"
+ },
+ "initiator": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
],
"statusCodes": [
{
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "200",
+ "description": "OK
"
}
],
"previews": [],
@@ -723751,18 +762917,21 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Attestations\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
- },
+ }
+ ],
+ "autolinks": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
- "title": "Get a webhook configuration for a repository",
+ "requestPath": "/repos/{owner}/{repo}/autolinks",
+ "title": "Get all autolinks of a repository",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "autolinks",
"parameters": [
{
"name": "owner",
@@ -723781,19 +762950,10 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [],
- "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active state and events, use \"Get a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the read:repo_hook or repo scope to use this endpoint.
",
+ "descriptionHTML": "Gets all autolinks that are configured for a repository.
\nInformation about autolinks are only available to repository administrators.
",
"codeExamples": [
{
"key": "default",
@@ -723802,61 +762962,69 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "content_type": "json",
- "insecure_ssl": "0",
- "secret": "********",
- "url": "https://example.com/webhook"
- },
+ "example": [
+ {
+ "id": 1,
+ "key_prefix": "TICKET-",
+ "url_template": "https://example.com/TICKET?query=",
+ "is_alphanumeric": true
+ }
+ ],
"schema": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
- "examples": [
- "https://example.com/webhook"
- ]
- },
- "content_type": {
- "type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "examples": [
- "\"json\""
- ]
- },
- "secret": {
- "type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
- "examples": [
- "\"********\""
- ]
+ "type": "array",
+ "items": {
+ "title": "Autolink reference",
+ "description": "An autolink reference.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "key_prefix": {
+ "description": "The prefix of a key that is linkified.",
+ "type": "string",
+ "examples": [
+ "TICKET-"
+ ]
+ },
+ "url_template": {
+ "description": "A template for the target URL that is generated if a key was found.",
+ "type": "string",
+ "examples": [
+ "https://example.com/TICKET?query="
+ ]
+ },
+ "is_alphanumeric": {
+ "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ }
},
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
- ]
- }
+ "required": [
+ "id",
+ "key_prefix",
+ "url_template",
+ "is_alphanumeric"
+ ]
}
}
}
@@ -723875,18 +763043,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Administration\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
- "title": "Update a webhook configuration for a repository",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/autolinks",
+ "title": "Create an autolink reference for a repository",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "autolinks",
"parameters": [
{
"name": "owner",
@@ -723905,372 +763073,113 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [
{
"type": "string",
- "name": "url",
- "in": "body",
- "description": "The URL to which the payloads will be delivered.
"
- },
- {
- "type": "string",
- "name": "content_type",
+ "name": "key_prefix",
"in": "body",
- "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
+ "description": "This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit.
",
+ "isRequired": true
},
{
"type": "string",
- "name": "secret",
+ "name": "url_template",
"in": "body",
- "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
+ "description": "The URL must contain <num> for the reference number. <num> matches different characters depending on the value of is_alphanumeric.
",
+ "isRequired": true
},
{
- "type": "string or number",
- "name": "insecure_ssl",
+ "type": "boolean",
+ "name": "is_alphanumeric",
"in": "body",
- "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.
"
+ "description": "Whether this autolink reference matches alphanumeric characters. If true, the <num> parameter of the url_template matches alphanumeric characters A-Z (case insensitive), 0-9, and -. If false, this autolink reference only matches numeric characters.
",
+ "default": true
}
],
- "descriptionHTML": "Updates the webhook configuration for a repository. To update more information about the webhook, including the active state and events, use \"Update a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the write:repo_hook or repo scope to use this endpoint.
",
+ "descriptionHTML": "Users with admin access to the repository can create an autolink.
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example of updating content type and URL",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "content_type": "json",
- "url": "https://example.com/webhook"
+ "key_prefix": "TICKET-",
+ "url_template": "https://example.com/TICKET?query=",
+ "is_alphanumeric": true
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
- "description": "Response
",
+ "description": "response
",
"example": {
- "content_type": "json",
- "insecure_ssl": "0",
- "secret": "********",
- "url": "https://example.com/webhook"
+ "id": 1,
+ "key_prefix": "TICKET-",
+ "url_template": "https://example.com/TICKET?query=",
+ "is_alphanumeric": true
},
"schema": {
- "title": "Webhook Configuration",
- "description": "Configuration object of the webhook",
+ "title": "Autolink reference",
+ "description": "An autolink reference.",
"type": "object",
"properties": {
- "url": {
- "type": "string",
- "description": "The URL to which the payloads will be delivered.",
- "format": "uri",
+ "id": {
+ "type": "integer",
"examples": [
- "https://example.com/webhook"
+ 3
]
},
- "content_type": {
+ "key_prefix": {
+ "description": "The prefix of a key that is linkified.",
"type": "string",
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
"examples": [
- "\"json\""
+ "TICKET-"
]
},
- "secret": {
+ "url_template": {
+ "description": "A template for the target URL that is generated if a key was found.",
"type": "string",
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
"examples": [
- "\"********\""
+ "https://example.com/TICKET?query="
]
},
- "insecure_ssl": {
- "oneOf": [
- {
- "type": "string",
- "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.**",
- "examples": [
- "\"0\""
- ]
- },
- {
- "type": "number"
- }
+ "is_alphanumeric": {
+ "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
+ "type": "boolean",
+ "examples": [
+ true
]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Webhooks\" repository permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
- "title": "List deliveries for a repository webhook",
- "category": "repos",
- "subcategory": "webhooks",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "cursor",
- "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in a repository.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 12345678,
- "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "delivered_at": "2019-06-03T00:57:16Z",
- "redelivery": false,
- "duration": 0.27,
- "status": "OK",
- "status_code": 200,
- "event": "issues",
- "action": "opened",
- "installation_id": 123,
- "repository_id": 456,
- "throttled_at": "2019-06-03T00:57:16Z"
},
- {
- "id": 123456789,
- "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "delivered_at": "2019-06-04T00:57:16Z",
- "redelivery": true,
- "duration": 0.28,
- "status": "OK",
- "status_code": 200,
- "event": "issues",
- "action": "opened",
- "installation_id": 123,
- "repository_id": 456,
- "throttled_at": null
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Simple webhook delivery",
- "description": "Delivery made by a webhook, without request and response information.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the webhook delivery.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "guid": {
- "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
- "type": "string",
- "examples": [
- "58474f00-b361-11eb-836d-0e4f3503ccbe"
- ]
- },
- "delivered_at": {
- "description": "Time when the webhook delivery occurred.",
- "type": "string",
- "format": "date-time",
- "examples": [
- "2021-05-12T20:33:44Z"
- ]
- },
- "redelivery": {
- "description": "Whether the webhook delivery is a redelivery.",
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "duration": {
- "description": "Time spent delivering.",
- "type": "number",
- "examples": [
- 0.03
- ]
- },
- "status": {
- "description": "Describes the response returned after attempting the delivery.",
- "type": "string",
- "examples": [
- "failed to connect"
- ]
- },
- "status_code": {
- "description": "Status code received when delivery was made.",
- "type": "integer",
- "examples": [
- 502
- ]
- },
- "event": {
- "description": "The event that triggered the delivery.",
- "type": "string",
- "examples": [
- "issues"
- ]
- },
- "action": {
- "description": "The type of activity for the event that triggered the delivery.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "opened"
- ]
- },
- "installation_id": {
- "description": "The id of the GitHub App installation associated with this event.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 123
- ]
- },
- "repository_id": {
- "description": "The id of the repository associated with this event.",
- "type": [
- "integer",
- "null"
- ],
- "format": "int64",
- "examples": [
- 123
- ]
- },
- "throttled_at": {
- "description": "Time when the webhook delivery was throttled.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2021-05-12T20:33:44Z"
- ]
- }
- },
- "required": [
- "id",
- "guid",
- "delivered_at",
- "redelivery",
- "duration",
- "status",
- "status_code",
- "event",
- "action",
- "installation_id",
- "repository_id"
- ]
- }
+ "required": [
+ "id",
+ "key_prefix",
+ "url_template",
+ "is_alphanumeric"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "422",
@@ -724284,7 +763193,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Administration\" repository permissions": "write"
}
]
}
@@ -724292,10 +763201,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
- "title": "Get a delivery for a repository webhook",
+ "requestPath": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
+ "title": "Get an autolink reference of a repository",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "autolinks",
"parameters": [
{
"name": "owner",
@@ -724316,26 +763225,17 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "autolink_id",
+ "description": "The unique identifier of the autolink.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
- },
- {
- "name": "delivery_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- },
- "description": ""
}
],
"bodyParameters": [],
- "descriptionHTML": "Returns a delivery for a webhook configured in a repository.
",
+ "descriptionHTML": "This returns a single autolink reference by ID that was configured for the given repository.
\nInformation about autolinks are only available to repository administrators.
",
"codeExamples": [
{
"key": "default",
@@ -724345,8 +763245,7 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID",
- "delivery_id": "DELIVERY_ID"
+ "autolink_id": "AUTOLINK_ID"
}
},
"response": {
@@ -724354,224 +763253,56 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "id": 12345678,
- "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "delivered_at": "2019-06-03T00:57:16Z",
- "redelivery": false,
- "duration": 0.27,
- "status": "OK",
- "status_code": 200,
- "event": "issues",
- "action": "opened",
- "installation_id": 123,
- "repository_id": 456,
- "url": "https://www.example.com",
- "throttled_at": "2019-06-03T00:57:16Z",
- "request": {
- "headers": {
- "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
- "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "Accept": "*/*",
- "X-GitHub-Hook-ID": "42",
- "User-Agent": "GitHub-Hookshot/b8c71d8",
- "X-GitHub-Event": "issues",
- "X-GitHub-Hook-Installation-Target-ID": "123",
- "X-GitHub-Hook-Installation-Target-Type": "repository",
- "content-type": "application/json",
- "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d"
- },
- "payload": {
- "action": "opened",
- "issue": {
- "body": "foo"
- },
- "repository": {
- "id": 123
- }
- }
- },
- "response": {
- "headers": {
- "Content-Type": "text/html;charset=utf-8"
- },
- "payload": "ok"
- }
+ "id": 1,
+ "key_prefix": "TICKET-",
+ "url_template": "https://example.com/TICKET?query=",
+ "is_alphanumeric": true
},
"schema": {
- "title": "Webhook delivery",
- "description": "Delivery made by a webhook.",
+ "title": "Autolink reference",
+ "description": "An autolink reference.",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the delivery.",
"type": "integer",
"examples": [
- 42
+ 3
]
},
- "guid": {
- "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
+ "key_prefix": {
+ "description": "The prefix of a key that is linkified.",
"type": "string",
"examples": [
- "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ "TICKET-"
]
},
- "delivered_at": {
- "description": "Time when the delivery was delivered.",
+ "url_template": {
+ "description": "A template for the target URL that is generated if a key was found.",
"type": "string",
- "format": "date-time",
"examples": [
- "2021-05-12T20:33:44Z"
+ "https://example.com/TICKET?query="
]
},
- "redelivery": {
- "description": "Whether the delivery is a redelivery.",
+ "is_alphanumeric": {
+ "description": "Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.",
"type": "boolean",
"examples": [
- false
- ]
- },
- "duration": {
- "description": "Time spent delivering.",
- "type": "number",
- "examples": [
- 0.03
- ]
- },
- "status": {
- "description": "Description of the status of the attempted delivery",
- "type": "string",
- "examples": [
- "failed to connect"
- ]
- },
- "status_code": {
- "description": "Status code received when delivery was made.",
- "type": "integer",
- "examples": [
- 502
- ]
- },
- "event": {
- "description": "The event that triggered the delivery.",
- "type": "string",
- "examples": [
- "issues"
- ]
- },
- "action": {
- "description": "The type of activity for the event that triggered the delivery.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "opened"
- ]
- },
- "installation_id": {
- "description": "The id of the GitHub App installation associated with this event.",
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 123
- ]
- },
- "repository_id": {
- "description": "The id of the repository associated with this event.",
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 123
+ true
]
},
- "throttled_at": {
- "description": "Time when the webhook delivery was throttled.",
+ "updated_at": {
"type": [
"string",
"null"
],
- "format": "date-time",
- "examples": [
- "2021-05-12T20:33:44Z"
- ]
- },
- "url": {
- "description": "The URL target of the delivery.",
- "type": "string",
- "examples": [
- "https://www.example.com"
- ]
- },
- "request": {
- "type": "object",
- "properties": {
- "headers": {
- "description": "The request headers sent with the webhook delivery.",
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true
- },
- "payload": {
- "description": "The webhook payload.",
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true
- }
- },
- "required": [
- "headers",
- "payload"
- ]
- },
- "response": {
- "type": "object",
- "properties": {
- "headers": {
- "description": "The response headers received when the delivery was made.",
- "type": [
- "object",
- "null"
- ],
- "additionalProperties": true
- },
- "payload": {
- "description": "The response payload received.",
- "type": [
- "string",
- "null"
- ],
- "additionalProperties": true
- }
- },
- "required": [
- "headers",
- "payload"
- ]
+ "format": "date-time"
}
},
"required": [
"id",
- "guid",
- "delivered_at",
- "redelivery",
- "duration",
- "status",
- "status_code",
- "event",
- "action",
- "installation_id",
- "repository_id",
- "request",
- "response"
+ "key_prefix",
+ "url_template",
+ "is_alphanumeric"
]
}
}
@@ -724583,12 +763314,8 @@
"description": "OK
"
},
{
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -724598,18 +763325,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Administration\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
- "title": "Redeliver a delivery for a repository webhook",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/autolinks/{autolink_id}",
+ "title": "Delete an autolink reference from a repository",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "autolinks",
"parameters": [
{
"name": "owner",
@@ -724630,26 +763357,17 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "autolink_id",
+ "description": "The unique identifier of the autolink.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
- },
- {
- "name": "delivery_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- },
- "description": ""
}
],
"bodyParameters": [],
- "descriptionHTML": "Redeliver a webhook delivery for a webhook configured in a repository.
",
+ "descriptionHTML": "This deletes a single autolink reference by ID that was configured for the given repository.
\nInformation about autolinks are only available to repository administrators.
",
"codeExamples": [
{
"key": "default",
@@ -724659,33 +763377,23 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID",
- "delivery_id": "DELIVERY_ID"
+ "autolink_id": "AUTOLINK_ID"
}
},
"response": {
- "statusCode": "202",
- "contentType": "application/json",
- "description": "Accepted
",
- "example": null,
- "schema": {
- "type": "object"
- }
+ "statusCode": "204",
+ "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -724695,18 +763403,20 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "write"
+ "\"Administration\" repository permissions": "write"
}
]
}
- },
+ }
+ ],
+ "bypass-requests": [
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings",
- "title": "Ping a repository webhook",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/bypass-requests/push-rules",
+ "title": "List repository push rule bypass requests",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "bypass-requests",
"parameters": [
{
"name": "owner",
@@ -724727,17 +763437,80 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
- "in": "path",
- "required": true,
+ "name": "reviewer",
+ "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "integer"
+ "type": "string"
+ }
+ },
+ {
+ "name": "requester",
+ "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "request_status",
+ "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "completed",
+ "cancelled",
+ "approved",
+ "expired",
+ "deleted",
+ "denied",
+ "open",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "This will trigger a ping event to be sent to the hook.
",
+ "descriptionHTML": "Lists the requests made by users of a repository to bypass push protection rules
",
"codeExamples": [
{
"key": "default",
@@ -724746,24 +763519,328 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "hook_id": "HOOK_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "204",
- "description": "Response
"
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 21,
+ "number": 42,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "push_ruleset_bypass",
+ "data": [
+ {
+ "ruleset_id": 410,
+ "ruleset_name": "Exclude image files",
+ "total_violations": 1,
+ "rule_type": "file_extension_restriction"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
+ "status": "denied",
+ "requester_comment": "Updating site images to follow changes in marketing. Part 1",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1",
+ "html_url": "https://github.com/octo-org/smile/exemptions/1"
+ },
+ {
+ "id": 12,
+ "number": 24,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "push_ruleset_bypass",
+ "data": [
+ {
+ "ruleset_id": 410,
+ "ruleset_name": "Exclude image files",
+ "total_violations": 1,
+ "rule_type": "file_extension_restriction"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
+ "status": "denied",
+ "requester_comment": "Updating site images to follow changes in marketing. Part 2",
+ "expires_at": "2024-07-08T07:43:03Z",
+ "created_at": "2024-07-01T07:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/2",
+ "html_url": "https://github.com/octo-org/smile/exemptions/2"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Push rule bypass request",
+ "description": "A bypass request made by a user asking to be exempted from a push rule in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the bypass request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the bypass request within its repository."
+ },
+ "repository": {
+ "type": "object",
+ "description": "The repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the repository the bypass request is for."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The name of the repository the bypass request is for."
+ },
+ "full_name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The full name of the repository the bypass request is for."
+ }
+ }
+ },
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the bypass.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the bypass."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the bypass."
+ }
+ }
+ },
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the push rules that are being requested to be bypassed.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset for the rules that were violated."
+ },
+ "ruleset_name": {
+ "type": "string",
+ "description": "The name of the ruleset for the rules that were violated."
+ },
+ "total_violations": {
+ "type": "integer",
+ "description": "The number of rule violations generated from the push associated with this request."
+ },
+ "rule_type": {
+ "type": "string",
+ "description": "The type of rule that was violated."
+ }
+ }
+ }
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the bypass request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "completed",
+ "expired",
+ "deleted",
+ "open"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the bypass request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the bypass request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
+ },
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
+ },
+ "status": {
+ "type": "string",
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
+ }
+ }
+ }
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the bypass request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/exemptions/1"
+ ]
+ }
+ }
+ }
+ }
}
}
],
"statusCodes": [
{
- "httpStatusCode": "204",
- "description": "No Content
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -724773,18 +763850,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Contents\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/tests",
- "title": "Test the push repository webhook",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}",
+ "title": "Get a repository push bypass request",
"category": "repos",
- "subcategory": "webhooks",
+ "subcategory": "bypass-requests",
"parameters": [
{
"name": "owner",
@@ -724805,17 +763882,18 @@
}
},
{
- "name": "hook_id",
- "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "name": "bypass_request_number",
"in": "path",
"required": true,
"schema": {
"type": "integer"
- }
+ },
+ "description": "The number that identifies the bypass request within the context of the given repository.
",
+ "example": 1
}
],
"bodyParameters": [],
- "descriptionHTML": "This 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 Note
\n
\nPreviously /repos/:owner/:repo/hooks/:hook_id/test
\n
",
+ "descriptionHTML": "Get information about a request to bypass push protection rules for a repository.
",
"codeExamples": [
{
"key": "default",
@@ -724825,23 +763903,279 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "hook_id": "HOOK_ID"
+ "bypass_request_number": "BYPASS_REQUEST_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 12,
+ "number": 24,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "push_ruleset_bypass",
+ "data": [
+ {
+ "ruleset_id": 410,
+ "ruleset_name": "Exclude image files",
+ "total_violations": 1,
+ "rule_type": "file_extension_restriction"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
+ "status": "denied",
+ "requester_comment": "Updating site images to follow changes in marketing. Part 2",
+ "expires_at": "2024-07-08T07:43:03Z",
+ "created_at": "2024-07-01T07:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/2",
+ "html_url": "https://github.com/octo-org/smile/exemptions/2"
+ },
+ "schema": {
+ "title": "Push rule bypass request",
+ "description": "A bypass request made by a user asking to be exempted from a push rule in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the bypass request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the bypass request within its repository."
+ },
+ "repository": {
+ "type": "object",
+ "description": "The repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the repository the bypass request is for."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The name of the repository the bypass request is for."
+ },
+ "full_name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The full name of the repository the bypass request is for."
+ }
+ }
+ },
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the bypass.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the bypass."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the bypass."
+ }
+ }
+ },
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the push rules that are being requested to be bypassed.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset for the rules that were violated."
+ },
+ "ruleset_name": {
+ "type": "string",
+ "description": "The name of the ruleset for the rules that were violated."
+ },
+ "total_violations": {
+ "type": "integer",
+ "description": "The number of rule violations generated from the push associated with this request."
+ },
+ "rule_type": {
+ "type": "string",
+ "description": "The type of rule that was violated."
+ }
+ }
+ }
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the bypass request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "completed",
+ "expired",
+ "deleted",
+ "open"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the bypass request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the bypass request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
+ },
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
+ },
+ "status": {
+ "type": "string",
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
+ }
+ }
+ }
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the bypass request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/exemptions/1"
+ ]
+ }
+ }
}
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "204",
- "description": "No Content
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -724851,26 +764185,24 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Webhooks\" repository permissions": "read"
+ "\"Contents\" repository permissions": "write"
}
]
}
}
- ]
- },
- "scim": {
- "scim": [
+ ],
+ "contents": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/scim/v2/organizations/{org}/Users",
- "title": "List SCIM provisioned identities",
- "category": "scim",
- "subcategory": "scim",
+ "requestPath": "/repos/{owner}/{repo}/contents/{path}",
+ "title": "Get repository content",
+ "category": "repos",
+ "subcategory": "contents",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -724878,26 +764210,27 @@
}
},
{
- "name": "startIndex",
- "description": "Used for pagination: the index of the first result to return.
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "count",
- "description": "Used for pagination: the number of results to return.
",
- "in": "query",
- "required": false,
+ "name": "path",
+ "description": "path parameter
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer"
- }
+ "type": "string"
+ },
+ "x-multi-segment": true
},
{
- "name": "filter",
- "description": "Filters results using the equals query parameter operator (eq). You can filter results that are equal to id, userName, emails, and externalId. For example, to search for an identity with the userName Octocat, you would use this query:
\n?filter=userName%20eq%20\\\"Octocat\\\".
\nTo filter results for the identity with the email octocat@github.com, you would use this query:
\n?filter=emails%20eq%20\\\"octocat@github.com\\\".
",
+ "name": "ref",
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
"in": "query",
"required": false,
"schema": {
@@ -724906,715 +764239,2230 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Retrieves a paginated list of all provisioned organization members, including pending invitations. If you provide the filter parameter, the resources for all matching provisions members are returned.
\nThe returned list of SCIM provisioned identities from the GitHub Enterprise Cloud might not always match the organization or enterprise member list. Here is why that can occur:
\n\nWhen an organization invitation is generated by a SCIM integration, this creates an unlinked SCIM identity in the organization. When a user logs into their GitHub user account, visits the organization, and successfully authenticates via SAML, they get added as an organization member and linked to their SAML/SCIM identity in the organization. If the user does not do this, the SCIM identity will remain in the organization, not linked to any organization member. \nA user's organization membership (inviting and removing a user to/from the organization) should only be managed by a SCIM integration when this is configured for a GitHub organization. If a GitHub user who has a linked SCIM identity is removed from the organization using the GitHub UI or non-SCIM API, as opposed to the SCIM integration, this can leave behind a stale SAML/SCIM identity in the organization for the user. \n ",
+ "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory with the path parameter. If you omit the path parameter, you will receive the contents of the repository's root directory.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents for files and symlinks. \napplication/vnd.github.html+json : Returns the file contents in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \napplication/vnd.github.object+json : Returns the contents in a consistent object format regardless of the content type. For example, instead of an array of objects for a directory, the response will be an object with an entries attribute containing the array of objects. \n \nIf the content is a directory, the response will be an array of objects, one object for each item in the directory. When listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value should be \"submodule\". This behavior exists for backwards compatibility purposes . In the next major version of the API, the type will be returned as \"submodule\".
\nIf the content is a symlink and the symlink's target is a normal file in the repository, then the API responds with the content of the file. Otherwise, the API responds with an object describing the symlink itself.
\nIf the content is a submodule, the submodule_git_url field 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. If 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.
\nNotes :
\n\nTo get a repository's contents recursively, you can recursively get the tree . \nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve\nmore files, use the Git Trees API . \nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download. \nIf the requested file's size is:\n\n1 MB or smaller: All features of this endpoint are supported. \nBetween 1-100 MB: Only the raw or object custom media types are supported. Both will work as normal, except that when using the object media type, the content field will be an empty\nstring and the encoding field will be \"none\". To get the contents of these larger files, use the raw media type. \nGreater than 100 MB: This endpoint is not supported. \n \n \n ",
"codeExamples": [
{
- "key": "response-with-filter",
+ "key": "response-if-content-is-a-file",
"request": {
"description": "Example 1: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/scim+json",
- "description": "Response with filter
",
+ "contentType": "application/vnd.github.object",
+ "description": "Response if content is a file
",
"example": {
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
- ],
- "totalResults": 1,
- "itemsPerPage": 1,
- "startIndex": 1,
- "Resources": [
- {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "5fc0c238-1112-11e8-8e45-920c87bdbd75",
- "externalId": "00u1dhhb1fkIGP7RL1d8",
- "userName": "octocat@github.com",
- "displayName": "Mona Octocat",
- "name": {
- "givenName": "Mona",
- "familyName": "Octocat",
- "formatted": "Mona Octocat"
- },
- "emails": [
- {
- "value": "octocat@github.com",
- "primary": true
- }
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2018-02-13T15:05:24.000-08:00",
- "lastModified": "2018-02-13T15:05:55.000-08:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/5fc0c238-1112-11e8-8e45-920c87bdbd75"
- }
- }
- ]
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "IyBZb2dhIEJvmsgaW4gcHJvZ3Jlc3MhIEZlZWwgdAoKOndhcm5pbmc6IFdvc\\nZnJlZSBmUgdG8gY0byBjaGVjayBvdXQgdGhlIGFwcCwgYnV0IGJlIHN1c29t\\nZSBiYWNrIG9uY2UgaXQgaXMgY29tcGxldGUuCgpBIHdlYiBhcHAgdGhhdCBs\\nZWFkcyB5b3UgdGhyb3VnaCBhIHlvZ2Egc2Vzc2lvbi4KCltXb3Jrb3V0IG5v\\ndyFdKGh0dHBzOi8vc2tlZHdhcmRzODguZ2l0aHViLmlvL3lvZ2EvKQoKPGlt\\nZyBzcmM9InNyYy9pbWFnZXMvbWFza2FibGVfaWNvbl81MTIucG5nIiBhbHQ9\\nImJvdCBsaWZ0aW5nIHdlaWdodHMiIHdpZHRoPSIxMDAiLz4KCkRvIHlvdSBo\\nYXZlIGZlZWRiYWNrIG9yIGlkZWFzIGZvciBpbXByb3ZlbWVudD8gW09wZW4g\\nYW4gaXNzdWVdKGh0dHBzOi8vZ2l0aHViLmNvbS9za2Vkd2FyZHM4OC95b2dh\\nL2lzc3Vlcy9uZXcpLgoKV2FudCBtb3JlIGdhbWVzPyBWaXNpdCBbQ25TIEdh\\nbWVzXShodHRwczovL3NrZWR3YXJkczg4LmdpdGh1Yi5pby9wb3J0Zm9saW8v\\nKS4KCiMjIERldmVsb3BtZW50CgpUbyBhZGQgYSBuZXcgcG9zZSwgYWRkIGFu\\nIGVudHJ5IHRvIHRoZSByZWxldmFudCBmaWxlIGluIGBzcmMvYXNhbmFzYC4K\\nClRvIGJ1aWxkLCBydW4gYG5wbSBydW4gYnVpbGRgLgoKVG8gcnVuIGxvY2Fs\\nbHkgd2l0aCBsaXZlIHJlbG9hZGluZyBhbmQgbm8gc2VydmljZSB3b3JrZXIs\\nIHJ1biBgbnBtIHJ1biBkZXZgLiAoSWYgYSBzZXJ2aWNlIHdvcmtlciB3YXMg\\ncHJldmlvdXNseSByZWdpc3RlcmVkLCB5b3UgY2FuIHVucmVnaXN0ZXIgaXQg\\naW4gY2hyb21lIGRldmVsb3BlciB0b29sczogYEFwcGxpY2F0aW9uYCA+IGBT\\nZXJ2aWNlIHdvcmtlcnNgID4gYFVucmVnaXN0ZXJgLikKClRvIHJ1biBsb2Nh\\nbGx5IGFuZCByZWdpc3RlciB0aGUgc2VydmljZSB3b3JrZXIsIHJ1biBgbnBt\\nIHN0YXJ0YC4KClRvIGRlcGxveSwgcHVzaCB0byBgbWFpbmAgb3IgbWFudWFs\\nbHkgdHJpZ2dlciB0aGUgYC5naXRodWIvd29ya2Zsb3dzL2RlcGxveS55bWxg\\nIHdvcmtmbG93Lgo=\\n",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
+ }
},
"schema": {
- "title": "SCIM User List",
- "description": "SCIM User List",
+ "title": "Content Tree",
+ "description": "Content Tree",
"type": "object",
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "entries": {
"type": "array",
- "minItems": 1,
"items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
]
}
},
- "totalResults": {
- "type": "integer",
- "examples": [
- 3
- ]
+ "encoding": {
+ "type": "string"
},
- "itemsPerPage": {
- "type": "integer",
- "examples": [
- 10
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-if-content-is-a-directory",
+ "request": {
+ "description": "Example 2: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/vnd.github.object",
+ "description": "Response if content is a directory and the application/vnd.github.v3.object media type is requested
",
+ "example": {
+ "type": "dir",
+ "size": 0,
+ "name": "src",
+ "path": "src",
+ "sha": "2962be1c94eaae9794b3080790ec9d74b2fa8358",
+ "url": "https://api.github.com/repos/octocat/octorepo/contents/src?ref=main",
+ "git_url": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html_url": "https://github.com/octocat/octorepo/blob/main/src",
+ "download_url": "https://raw.githubusercontent.com/octocat/octorepo/main/src",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/octorepo/contents/src",
+ "git": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html": "https://github.com/octocat/octorepo/blob/main/src"
+ },
+ "entries": [
+ {
+ "type": "file",
+ "size": 625,
+ "name": "app.js",
+ "path": "src/app.js",
+ "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "url": "https://api.github.com/repos/octocat/octorepo/contents/src/app.js",
+ "git_url": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html_url": "https://github.com/octocat/octorepo/blob/main/src/app.js",
+ "download_url": "https://raw.githubusercontent.com/octocat/octorepo/main/src/app.js",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/octorepo/contents/src/app.js",
+ "git": "https://api.github.com/repos/octocat/octorepo/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html": "https://github.com/octocat/octorepo/blob/main/src/app.js"
+ }
},
- "startIndex": {
- "type": "integer",
- "examples": [
- 1
- ]
+ {
+ "type": "dir",
+ "size": 0,
+ "name": "images",
+ "path": "src/images",
+ "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "url": "https://api.github.com/repos/octocat/octorepo/contents/src/images",
+ "git_url": "https://api.github.com/repos/octocat/octorepo/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html_url": "https://github.com/octocat/octorepo/tree/main/src/images",
+ "download_url": null,
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/octorepo/contents/src/images",
+ "git": "https://api.github.com/repos/octocat/octorepo/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html": "https://github.com/octocat/octorepo/tree/main/src/images"
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "Content Tree",
+ "description": "Content Tree",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
},
- "Resources": {
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "entries": {
"type": "array",
"items": {
- "title": "SCIM /Users",
- "description": "SCIM /Users provisioning endpoints",
"type": "object",
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- }
+ "type": {
+ "type": "string"
},
- "id": {
- "description": "Unique identifier of an external identity",
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
"type": "string",
- "examples": [
- "1b78eada-9baa-11e6-9eb6-a431576d590e"
- ]
+ "format": "uri"
},
- "externalId": {
- "description": "The ID of the User.",
+ "git_url": {
"type": [
"string",
"null"
],
- "examples": [
- "a7b0f98395"
- ]
+ "format": "uri"
},
- "userName": {
- "description": "Configured by the admin. Could be an email, login, or username",
+ "html_url": {
"type": [
"string",
"null"
],
- "examples": [
- "someone@example.com"
- ]
+ "format": "uri"
},
- "displayName": {
- "description": "The name of the user, suitable for display to end-users",
+ "download_url": {
"type": [
"string",
"null"
],
- "examples": [
- "Jon Doe"
- ]
+ "format": "uri"
},
- "name": {
+ "_links": {
"type": "object",
"properties": {
- "givenName": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "familyName": {
+ "html": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "formatted": {
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-if-content-is-a-file",
+ "request": {
+ "description": "Example 3: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response if content is a file
",
+ "example": {
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "IyBZb2dhIEJvmsgaW4gcHJvZ3Jlc3MhIEZlZWwgdAoKOndhcm5pbmc6IFdvc\\nZnJlZSBmUgdG8gY0byBjaGVjayBvdXQgdGhlIGFwcCwgYnV0IGJlIHN1c29t\\nZSBiYWNrIG9uY2UgaXQgaXMgY29tcGxldGUuCgpBIHdlYiBhcHAgdGhhdCBs\\nZWFkcyB5b3UgdGhyb3VnaCBhIHlvZ2Egc2Vzc2lvbi4KCltXb3Jrb3V0IG5v\\ndyFdKGh0dHBzOi8vc2tlZHdhcmRzODguZ2l0aHViLmlvL3lvZ2EvKQoKPGlt\\nZyBzcmM9InNyYy9pbWFnZXMvbWFza2FibGVfaWNvbl81MTIucG5nIiBhbHQ9\\nImJvdCBsaWZ0aW5nIHdlaWdodHMiIHdpZHRoPSIxMDAiLz4KCkRvIHlvdSBo\\nYXZlIGZlZWRiYWNrIG9yIGlkZWFzIGZvciBpbXByb3ZlbWVudD8gW09wZW4g\\nYW4gaXNzdWVdKGh0dHBzOi8vZ2l0aHViLmNvbS9za2Vkd2FyZHM4OC95b2dh\\nL2lzc3Vlcy9uZXcpLgoKV2FudCBtb3JlIGdhbWVzPyBWaXNpdCBbQ25TIEdh\\nbWVzXShodHRwczovL3NrZWR3YXJkczg4LmdpdGh1Yi5pby9wb3J0Zm9saW8v\\nKS4KCiMjIERldmVsb3BtZW50CgpUbyBhZGQgYSBuZXcgcG9zZSwgYWRkIGFu\\nIGVudHJ5IHRvIHRoZSByZWxldmFudCBmaWxlIGluIGBzcmMvYXNhbmFzYC4K\\nClRvIGJ1aWxkLCBydW4gYG5wbSBydW4gYnVpbGRgLgoKVG8gcnVuIGxvY2Fs\\nbHkgd2l0aCBsaXZlIHJlbG9hZGluZyBhbmQgbm8gc2VydmljZSB3b3JrZXIs\\nIHJ1biBgbnBtIHJ1biBkZXZgLiAoSWYgYSBzZXJ2aWNlIHdvcmtlciB3YXMg\\ncHJldmlvdXNseSByZWdpc3RlcmVkLCB5b3UgY2FuIHVucmVnaXN0ZXIgaXQg\\naW4gY2hyb21lIGRldmVsb3BlciB0b29sczogYEFwcGxpY2F0aW9uYCA+IGBT\\nZXJ2aWNlIHdvcmtlcnNgID4gYFVucmVnaXN0ZXJgLikKClRvIHJ1biBsb2Nh\\nbGx5IGFuZCByZWdpc3RlciB0aGUgc2VydmljZSB3b3JrZXIsIHJ1biBgbnBt\\nIHN0YXJ0YC4KClRvIGRlcGxveSwgcHVzaCB0byBgbWFpbmAgb3IgbWFudWFs\\nbHkgdHJpZ2dlciB0aGUgYC5naXRodWIvd29ya2Zsb3dzL2RlcGxveS55bWxg\\nIHdvcmtmbG93Lgo=\\n",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
+ }
+ },
+ "schema": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
+ ]
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "example": {
- "givenName": "Jane",
- "familyName": "User"
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "emails": {
- "description": "user emails",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "value"
- ]
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "examples": [
- {
- "value": "someone@example.com",
- "primary": true
- },
- {
- "value": "another@example.com",
- "primary": false
- }
- ]
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "active": {
- "description": "The active status of the User.",
- "type": "boolean",
- "examples": [
- true
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
+ },
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-if-content-is-a-directory",
+ "request": {
+ "description": "Example 4: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response if content is a directory and the application/json media type is requested
",
+ "example": [
+ {
+ "type": "file",
+ "size": 625,
+ "name": "octokit.rb",
+ "path": "lib/octokit.rb",
+ "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/lib/octokit.rb",
+ "_links": {
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb",
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb"
+ }
+ },
+ {
+ "type": "dir",
+ "size": 0,
+ "name": "octokit",
+ "path": "lib/octokit",
+ "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html_url": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit",
+ "download_url": null,
+ "_links": {
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit",
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
+ "html": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit"
+ }
+ }
+ ],
+ "schema": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
]
},
- "meta": {
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
"type": "object",
"properties": {
- "resourceType": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "lastModified": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "location": {
+ "self": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
- ]
+ "format": "uri"
}
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "organization_id": {
- "description": "The ID of the organization.",
- "type": "integer"
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
},
- "operations": {
- "description": "Set of operations to be performed",
- "type": "array",
- "minItems": 1,
- "items": {
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- "path": {
- "type": "string"
- },
- "value": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object"
- },
- {
- "type": "array",
- "items": {}
- }
- ]
- }
- },
- "required": [
- "op"
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
+ },
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
],
- "type": "object"
+ "format": "uri"
},
- "examples": [
- {
- "op": "replace",
- "value": {
- "active": false
- }
- }
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-if-content-is-a-symlink",
+ "request": {
+ "description": "Example 5: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response if content is a symlink and the application/json media type is requested
",
+ "example": {
+ "type": "symlink",
+ "target": "/path/to/symlink/target",
+ "size": 23,
+ "name": "some-symlink",
+ "path": "bin/some-symlink",
+ "sha": "452a98979c88e093d682cab404a3ec82babebb48",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/bin/some-symlink",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink"
+ }
+ },
+ "schema": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
]
},
- "groups": {
- "description": "associated groups",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
+ "size": {
+ "type": "integer"
},
- "roles": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
- }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
}
},
"required": [
- "id",
- "schemas",
- "emails",
- "active",
- "meta"
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
]
}
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
+ },
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
}
- },
- "required": [
- "schemas",
- "totalResults",
- "itemsPerPage",
- "startIndex",
- "Resources"
]
}
}
},
{
- "key": "response-without-filter",
+ "key": "response-if-content-is-a-submodule",
"request": {
- "description": "Example 2: Status Code 200",
+ "description": "Example 6: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/scim+json",
- "description": "Response without filter
",
+ "contentType": "application/json",
+ "description": "Response if content is a submodule and the application/json media type is requested
",
"example": {
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
- ],
- "totalResults": 2,
- "itemsPerPage": 2,
- "startIndex": 1,
- "Resources": [
- {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "edefdfedf-050c-11e7-8d32",
- "externalId": "a7d0f98382",
- "userName": "mona.octocat@okta.example.com",
- "displayName": "Mona Octocat",
- "name": {
- "givenName": "Mona",
- "familyName": "Octocat",
- "formatted": "Mona Octocat"
- },
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
- }
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2017-03-09T16:11:13-05:00",
- "lastModified": "2017-03-09T16:11:13-05:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
- }
- },
- {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "77563764-eb6-24-0598234-958243",
- "externalId": "sdfoiausdofiua",
- "userName": "hubot@example.com",
- "displayName": "hu bot",
- "name": {
- "givenName": "hu",
- "familyName": "bot",
- "formatted": "hu bot"
- },
- "emails": [
- {
- "value": "hubot@example.com",
- "primary": true
- }
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2017-03-09T16:11:13-05:00",
- "lastModified": "2017-03-09T16:11:13-05:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243"
- }
- }
- ]
+ "type": "submodule",
+ "submodule_git_url": "git://github.com/jquery/qunit.git",
+ "size": 0,
+ "name": "qunit",
+ "path": "test/qunit",
+ "sha": "6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "url": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master",
+ "git_url": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "html_url": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "download_url": null,
+ "_links": {
+ "git": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9",
+ "self": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master",
+ "html": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9"
+ }
},
"schema": {
- "title": "SCIM User List",
- "description": "SCIM User List",
- "type": "object",
- "properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
- ]
- }
- },
- "totalResults": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "itemsPerPage": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "startIndex": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "Resources": {
+ "oneOf": [
+ {
+ "title": "Content Directory",
+ "description": "A list of directory items",
"type": "array",
"items": {
- "title": "SCIM /Users",
- "description": "SCIM /Users provisioning endpoints",
"type": "object",
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- }
- },
- "id": {
- "description": "Unique identifier of an external identity",
+ "type": {
"type": "string",
- "examples": [
- "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ "enum": [
+ "dir",
+ "file",
+ "submodule",
+ "symlink"
]
},
- "externalId": {
- "description": "The ID of the User.",
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
"type": [
"string",
"null"
],
- "examples": [
- "a7b0f98395"
- ]
+ "format": "uri"
},
- "userName": {
- "description": "Configured by the admin. Could be an email, login, or username",
+ "html_url": {
"type": [
"string",
"null"
],
- "examples": [
- "someone@example.com"
- ]
+ "format": "uri"
},
- "displayName": {
- "description": "The name of the user, suitable for display to end-users",
+ "download_url": {
"type": [
"string",
"null"
],
- "examples": [
- "Jon Doe"
- ]
+ "format": "uri"
},
- "name": {
+ "_links": {
"type": "object",
"properties": {
- "givenName": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "familyName": {
+ "html": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "formatted": {
- "type": [
- "string",
- "null"
- ]
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "example": {
- "givenName": "Jane",
- "familyName": "User"
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url"
+ ]
+ }
+ },
+ {
+ "title": "Content File",
+ "description": "Content File",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file"
+ ]
+ },
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "emails": {
- "description": "user emails",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "value"
- ]
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ },
+ "target": {
+ "type": "string",
+ "examples": [
+ "\"actual/actual.md\""
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "examples": [
+ "\"git://example.com/defunkt/dotjs.git\""
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
+ ]
+ },
+ {
+ "title": "Symlink Content",
+ "description": "An object describing a symlink",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "symlink"
+ ]
+ },
+ "target": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
},
- "examples": [
- {
- "value": "someone@example.com",
- "primary": true
- },
- {
- "value": "another@example.com",
- "primary": false
- }
- ]
- },
- "active": {
- "description": "The active status of the User.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "meta": {
- "type": "object",
- "properties": {
- "resourceType": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
- },
- "lastModified": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
- },
- "location": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
- ]
- }
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "organization_id": {
- "description": "The ID of the organization.",
- "type": "integer"
- },
- "operations": {
- "description": "Set of operations to be performed",
- "type": "array",
- "minItems": 1,
- "items": {
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- "path": {
- "type": "string"
- },
- "value": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object"
- },
- {
- "type": "array",
- "items": {}
- }
- ]
- }
- },
- "required": [
- "op"
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "target"
+ ]
+ },
+ {
+ "title": "Submodule Content",
+ "description": "An object describing a submodule",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "submodule"
+ ]
+ },
+ "submodule_git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "download_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "git": {
+ "type": [
+ "string",
+ "null"
],
- "type": "object"
+ "format": "uri"
},
- "examples": [
- {
- "op": "replace",
- "value": {
- "active": false
- }
- }
- ]
- },
- "groups": {
- "description": "associated groups",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
+ "html": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "roles": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
- }
- },
- "required": [
- "id",
- "schemas",
- "emails",
- "active",
- "meta"
- ]
- }
+ "required": [
+ "git",
+ "html",
+ "self"
+ ]
+ }
+ },
+ "required": [
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "submodule_git_url"
+ ]
}
- },
- "required": [
- "schemas",
- "totalResults",
- "itemsPerPage",
- "startIndex",
- "Resources"
]
}
}
@@ -725626,12 +766474,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "302",
+ "description": "Found
"
},
{
- "httpStatusCode": "400",
- "description": "Bad request
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "403",
@@ -725640,10 +766488,6 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
- },
- {
- "httpStatusCode": "429",
- "description": "Too many requests
"
}
],
"previews": [],
@@ -725653,446 +766497,627 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/scim/v2/organizations/{org}/Users",
- "title": "Provision and invite a SCIM user",
- "category": "scim",
- "subcategory": "scim",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/contents/{path}",
+ "title": "Create or update file contents",
+ "category": "repos",
+ "subcategory": "contents",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "path",
+ "description": "path parameter
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
}
],
"bodyParameters": [
{
"type": "string",
- "name": "userName",
+ "name": "message",
"in": "body",
- "description": "Configured by the admin. Could be an email, login, or username
",
+ "description": "The commit message.
",
"isRequired": true
},
{
"type": "string",
- "name": "displayName",
+ "name": "content",
"in": "body",
- "description": "The name of the user, suitable for display to end-users
"
+ "description": "The new file content, using Base64 encoding.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "in": "body",
+ "description": "Required if you are updating a file . The blob SHA of the file being replaced.
"
+ },
+ {
+ "type": "string",
+ "name": "branch",
+ "in": "body",
+ "description": "The branch name. Default: the repository’s default branch.
"
},
{
"type": "object",
- "name": "name",
+ "name": "committer",
"in": "body",
- "description": "",
- "isRequired": true,
+ "description": "The person that committed the file. Default: the authenticated user.
",
"childParamsGroups": [
{
"type": "string",
- "name": "givenName",
- "description": "",
+ "name": "name",
+ "description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"isRequired": true
},
{
"type": "string",
- "name": "familyName",
- "description": "",
+ "name": "email",
+ "description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"isRequired": true
},
{
"type": "string",
- "name": "formatted",
+ "name": "date",
"description": ""
}
]
},
{
- "type": "array of objects",
- "name": "emails",
+ "type": "object",
+ "name": "author",
"in": "body",
- "description": "user emails
",
- "isRequired": true,
+ "description": "The author of the file. Default: The committer or the authenticated user if you omit committer.
",
"childParamsGroups": [
{
"type": "string",
- "name": "value",
- "description": "",
+ "name": "name",
+ "description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"isRequired": true
},
{
- "type": "boolean",
- "name": "primary",
- "description": ""
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
+ "isRequired": true
},
{
"type": "string",
- "name": "type",
+ "name": "date",
"description": ""
}
]
- },
- {
- "type": "array of strings",
- "name": "schemas",
- "in": "body",
- "description": ""
- },
- {
- "type": "string",
- "name": "externalId",
- "in": "body",
- "description": ""
- },
- {
- "type": "array of strings",
- "name": "groups",
- "in": "body",
- "description": ""
- },
- {
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": ""
}
],
- "descriptionHTML": "Provisions organization membership for a user, and sends an activation email to the email address. If the user was previously a member of the organization, the invitation will reinstate any former privileges that the user had. For more information about reinstating former members, see \"Reinstating a former member of your organization .\"
",
+ "descriptionHTML": "Creates a new file or replaces an existing file in a repository.
\n Note
\n
\nIf you use this endpoint and the \"Delete a file \" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
\n
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint. The workflow scope is also required in order to modify files in the .github/workflows directory.
",
"codeExamples": [
{
- "key": "default",
+ "key": "example-for-creating-a-file",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example for creating a file",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "userName": "mona.octocat@okta.example.com",
- "externalId": "a7d0f98382",
- "name": {
- "givenName": "Monalisa",
- "familyName": "Octocat",
- "formatted": "Monalisa Octocat"
+ "message": "my commit message",
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
},
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
- },
- {
- "value": "monalisa@octocat.github.com"
- }
- ]
+ "content": "bXkgbmV3IGZpbGUgY29udGVudHM="
},
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
"statusCode": "201",
- "contentType": "application/scim+json",
+ "contentType": "application/json",
"description": "Response
",
"example": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "edefdfedf-050c-11e7-8d32",
- "externalId": "a7d0f98382",
- "userName": "mona.octocat@okta.example.com",
- "displayName": "Monalisa Octocat",
- "name": {
- "givenName": "Monalisa",
- "familyName": "Octocat",
- "formatted": "Monalisa Octocat"
+ "content": {
+ "name": "hello.txt",
+ "path": "notes/hello.txt",
+ "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
+ "size": 9,
+ "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt",
+ "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
+ "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt",
+ "type": "file",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
+ "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt"
+ }
},
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
+ "commit": {
+ "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
+ "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==",
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "author": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
},
- {
- "value": "monalisa@octocat.github.com"
+ "committer": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "message": "my commit message",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
+ "sha": "691272480426f78a0138979dd3ce63b77f706feb"
+ },
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
+ }
+ ],
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
}
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2017-03-09T16:11:13-05:00",
- "lastModified": "2017-03-09T16:11:13-05:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
}
},
"schema": {
- "title": "SCIM /Users",
- "description": "SCIM /Users provisioning endpoints",
+ "title": "File Commit",
+ "description": "File Commit",
"type": "object",
+ "required": [
+ "content",
+ "commit"
+ ],
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- }
- },
- "id": {
- "description": "Unique identifier of an external identity",
- "type": "string",
- "examples": [
- "1b78eada-9baa-11e6-9eb6-a431576d590e"
- ]
- },
- "externalId": {
- "description": "The ID of the User.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "a7b0f98395"
- ]
- },
- "userName": {
- "description": "Configured by the admin. Could be an email, login, or username",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "someone@example.com"
- ]
- },
- "displayName": {
- "description": "The name of the user, suitable for display to end-users",
+ "content": {
"type": [
- "string",
+ "object",
"null"
],
- "examples": [
- "Jon Doe"
- ]
- },
- "name": {
- "type": "object",
"properties": {
- "givenName": {
- "type": [
- "string",
- "null"
- ]
+ "name": {
+ "type": "string"
},
- "familyName": {
- "type": [
- "string",
- "null"
- ]
+ "path": {
+ "type": "string"
},
- "formatted": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "example": {
- "givenName": "Jane",
- "familyName": "User"
- }
- },
- "emails": {
- "description": "user emails",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- }
+ "sha": {
+ "type": "string"
},
- "required": [
- "value"
- ]
- },
- "examples": [
- {
- "value": "someone@example.com",
- "primary": true
+ "size": {
+ "type": "integer"
},
- {
- "value": "another@example.com",
- "primary": false
+ "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"
+ }
+ }
}
- ]
- },
- "active": {
- "description": "The active status of the User.",
- "type": "boolean",
- "examples": [
- true
- ]
+ }
},
- "meta": {
+ "commit": {
"type": "object",
"properties": {
- "resourceType": {
- "type": "string",
- "examples": [
- "User"
- ]
+ "sha": {
+ "type": "string"
},
- "created": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
+ "node_id": {
+ "type": "string"
},
- "lastModified": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
+ "url": {
+ "type": "string"
},
- "location": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
- ]
- }
- }
- },
- "organization_id": {
- "description": "The ID of the organization.",
- "type": "integer"
- },
- "operations": {
- "description": "Set of operations to be performed",
- "type": "array",
- "minItems": 1,
- "items": {
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- "path": {
- "type": "string"
- },
- "value": {
- "oneOf": [
- {
+ "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"
},
- {
- "type": "object"
+ "html_url": {
+ "type": "string"
},
- {
- "type": "array",
- "items": {}
+ "sha": {
+ "type": "string"
}
- ]
+ }
}
},
- "required": [
- "op"
- ],
- "type": "object"
- },
- "examples": [
- {
- "op": "replace",
- "value": {
- "active": false
+ "verification": {
+ "type": "object",
+ "properties": {
+ "verified": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "signature": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
}
}
- ]
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "key": "example-for-updating-a-file",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example for updating a file",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "message": "a new commit message",
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "content": "bXkgdXBkYXRlZCBmaWxlIGNvbnRlbnRz",
+ "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "content": {
+ "name": "hello.txt",
+ "path": "notes/hello.txt",
+ "sha": "a56507ed892d05a37c6d6128c260937ea4d287bd",
+ "size": 9,
+ "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt",
+ "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd",
+ "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt",
+ "type": "file",
+ "_links": {
+ "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt",
+ "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd",
+ "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt"
+ }
+ },
+ "commit": {
+ "sha": "18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
+ "node_id": "MDY6Q29tbWl0MThhNDNjZDhlMWUzYTc5Yzc4NmUzZDgwOGE3M2QyM2I2ZDIxMmIxNg==",
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/18a43cd8e1e3a79c786e3d808a73d23b6d212b16",
+ "author": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
},
- "groups": {
- "description": "associated groups",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "display": {
- "type": "string"
+ "committer": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "message": "my commit message",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f",
+ "sha": "9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f"
+ },
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/da5a433788da5c255edad7979b328b67d79f53f6",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/da5a433788da5c255edad7979b328b67d79f53f6",
+ "sha": "da5a433788da5c255edad7979b328b67d79f53f6"
+ }
+ ],
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
+ }
+ }
+ },
+ "schema": {
+ "title": "File Commit",
+ "description": "File Commit",
+ "type": "object",
+ "required": [
+ "content",
+ "commit"
+ ],
+ "properties": {
+ "content": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "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"
+ }
}
}
}
},
- "roles": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- },
- "display": {
- "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",
+ "null"
+ ]
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
}
}
}
}
- },
- "required": [
- "id",
- "schemas",
- "emails",
- "active",
- "meta"
- ]
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad request
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "404",
@@ -726103,8 +767128,8 @@
"description": "Conflict
"
},
{
- "httpStatusCode": "500",
- "description": "Internal server error
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -726114,22 +767139,26 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "write"
+ "\"Contents\" repository permissions": "write"
+ },
+ {
+ "\"Contents\" repository permissions": "write",
+ "\"Workflows\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
- "title": "Get SCIM provisioning information for a user",
- "category": "scim",
- "subcategory": "scim",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/contents/{path}",
+ "title": "Delete a file",
+ "category": "repos",
+ "subcategory": "contents",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -726137,305 +767166,311 @@
}
},
{
- "name": "scim_user_id",
- "description": "The unique identifier of the SCIM user.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "path",
+ "description": "path parameter
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "Gets SCIM provisioning information for a user.
",
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "message",
+ "in": "body",
+ "description": "The commit message.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "in": "body",
+ "description": "The blob SHA of the file being deleted.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "branch",
+ "in": "body",
+ "description": "The branch name. Default: the repository’s default branch
"
+ },
+ {
+ "type": "object",
+ "name": "committer",
+ "in": "body",
+ "description": "object containing information about the committer.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "The name of the author (or committer) of the commit
"
+ },
+ {
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author (or committer) of the commit
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "author",
+ "in": "body",
+ "description": "object containing information about the author.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "The name of the author (or committer) of the commit
"
+ },
+ {
+ "type": "string",
+ "name": "email",
+ "description": "The email of the author (or committer) of the commit
"
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Deletes a file in a repository.
\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.
\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.
\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.
\n Note
\n
\nIf you use this endpoint and the \"Create or update file contents \" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "message": "my commit message",
+ "committer": {
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "sha": "329688480d39049927147c162b9d2deaf885005f"
+ },
"parameters": {
- "org": "ORG",
- "scim_user_id": "SCIM_USER_ID"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "path": "PATH"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/scim+json",
+ "contentType": "application/json",
"description": "Response
",
"example": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "edefdfedf-050c-11e7-8d32",
- "externalId": "a7d0f98382",
- "userName": "mona.octocat@okta.example.com",
- "displayName": "Monalisa Octocat",
- "name": {
- "givenName": "Monalisa",
- "familyName": "Octocat",
- "formatted": "Monalisa Octocat"
- },
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
+ "content": null,
+ "commit": {
+ "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
+ "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==",
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
+ "author": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
},
- {
- "value": "monalisa@octocat.github.com"
+ "committer": {
+ "date": "2014-11-07T22:01:45Z",
+ "name": "Monalisa Octocat",
+ "email": "octocat@github.com"
+ },
+ "message": "my commit message",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb",
+ "sha": "691272480426f78a0138979dd3ce63b77f706feb"
+ },
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5",
+ "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5"
+ }
+ ],
+ "verification": {
+ "verified": false,
+ "reason": "unsigned",
+ "signature": null,
+ "payload": null,
+ "verified_at": null
}
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2017-03-09T16:11:13-05:00",
- "lastModified": "2017-03-09T16:11:13-05:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
}
},
"schema": {
- "title": "SCIM /Users",
- "description": "SCIM /Users provisioning endpoints",
+ "title": "File Commit",
+ "description": "File Commit",
"type": "object",
+ "required": [
+ "content",
+ "commit"
+ ],
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- }
- },
- "id": {
- "description": "Unique identifier of an external identity",
- "type": "string",
- "examples": [
- "1b78eada-9baa-11e6-9eb6-a431576d590e"
- ]
- },
- "externalId": {
- "description": "The ID of the User.",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "a7b0f98395"
- ]
- },
- "userName": {
- "description": "Configured by the admin. Could be an email, login, or username",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "someone@example.com"
- ]
- },
- "displayName": {
- "description": "The name of the user, suitable for display to end-users",
+ "content": {
"type": [
- "string",
+ "object",
"null"
],
- "examples": [
- "Jon Doe"
- ]
- },
- "name": {
- "type": "object",
"properties": {
- "givenName": {
- "type": [
- "string",
- "null"
- ]
+ "name": {
+ "type": "string"
},
- "familyName": {
- "type": [
- "string",
- "null"
- ]
+ "path": {
+ "type": "string"
},
- "formatted": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "example": {
- "givenName": "Jane",
- "familyName": "User"
- }
- },
- "emails": {
- "description": "user emails",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- }
+ "sha": {
+ "type": "string"
},
- "required": [
- "value"
- ]
- },
- "examples": [
- {
- "value": "someone@example.com",
- "primary": true
+ "size": {
+ "type": "integer"
},
- {
- "value": "another@example.com",
- "primary": false
+ "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"
+ }
+ }
}
- ]
- },
- "active": {
- "description": "The active status of the User.",
- "type": "boolean",
- "examples": [
- true
- ]
+ }
},
- "meta": {
+ "commit": {
"type": "object",
"properties": {
- "resourceType": {
- "type": "string",
- "examples": [
- "User"
- ]
+ "sha": {
+ "type": "string"
},
- "created": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
+ "node_id": {
+ "type": "string"
},
- "lastModified": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
+ "url": {
+ "type": "string"
},
- "location": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
- ]
- }
- }
- },
- "organization_id": {
- "description": "The ID of the organization.",
- "type": "integer"
- },
- "operations": {
- "description": "Set of operations to be performed",
- "type": "array",
- "minItems": 1,
- "items": {
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- "path": {
- "type": "string"
- },
- "value": {
- "oneOf": [
- {
+ "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"
},
- {
- "type": "object"
+ "html_url": {
+ "type": "string"
},
- {
- "type": "array",
- "items": {}
+ "sha": {
+ "type": "string"
}
- ]
+ }
}
},
- "required": [
- "op"
- ],
- "type": "object"
- },
- "examples": [
- {
- "op": "replace",
- "value": {
- "active": false
- }
- }
- ]
- },
- "groups": {
- "description": "associated groups",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- },
- "display": {
- "type": "string"
+ "verification": {
+ "type": "object",
+ "properties": {
+ "verified": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "signature": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
}
}
}
}
- },
- "required": [
- "id",
- "schemas",
- "emails",
- "active",
- "meta"
- ]
+ }
}
}
}
@@ -726446,16 +767481,20 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -726465,22 +767504,26 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Contents\" repository permissions": "write"
+ },
+ {
+ "\"Contents\" repository permissions": "write",
+ "\"Workflows\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
- "title": "Update a provisioned organization membership",
- "category": "scim",
- "subcategory": "scim",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/readme",
+ "title": "Get a repository README",
+ "category": "repos",
+ "subcategory": "contents",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -726488,409 +767531,167 @@
}
},
{
- "name": "scim_user_id",
- "description": "The unique identifier of the SCIM user.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "array of strings",
- "name": "schemas",
- "in": "body",
- "description": ""
- },
- {
- "type": "string",
- "name": "displayName",
- "in": "body",
- "description": "The name of the user, suitable for display to end-users
"
- },
- {
- "type": "string",
- "name": "externalId",
- "in": "body",
- "description": ""
- },
- {
- "type": "array of strings",
- "name": "groups",
- "in": "body",
- "description": ""
- },
- {
- "type": "boolean",
- "name": "active",
- "in": "body",
- "description": ""
- },
- {
- "type": "string",
- "name": "userName",
- "in": "body",
- "description": "Configured by the admin. Could be an email, login, or username
",
- "isRequired": true
- },
- {
- "type": "object",
- "name": "name",
- "in": "body",
- "description": "",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "givenName",
- "description": "",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "familyName",
- "description": "",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "formatted",
- "description": ""
- }
- ]
},
{
- "type": "array of objects",
- "name": "emails",
- "in": "body",
- "description": "user emails
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "type",
- "description": ""
- },
- {
- "type": "string",
- "name": "value",
- "description": "",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "primary",
- "description": ""
- }
- ]
+ "name": "ref",
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
}
],
- "descriptionHTML": "Replaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the Update an attribute for a SCIM user endpoint instead.
\nYou must at least provide the required values for the user: userName, name, and emails.
\n Warning
\n
\nSetting active: false removes the user from the organization, deletes the external identity, and deletes the associated {scim_user_id}.
\n
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets the preferred README for a repository.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents. This is the default if you do not specify a media type. \napplication/vnd.github.html+json : Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \n ",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "userName": "mona.octocat@okta.example.com",
- "externalId": "a7d0f98382",
- "name": {
- "givenName": "Monalisa",
- "familyName": "Octocat",
- "formatted": "Monalisa Octocat"
- },
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
- }
- ]
- },
"parameters": {
- "org": "ORG",
- "scim_user_id": "SCIM_USER_ID"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/scim+json",
+ "contentType": "application/json",
"description": "Response
",
"example": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "edefdfedf-050c-11e7-8d32",
- "externalId": "a7d0f98382",
- "userName": "mona.octocat@okta.example.com",
- "displayName": "Monalisa Octocat",
- "name": {
- "givenName": "Monalisa",
- "familyName": "Octocat",
- "formatted": "Monalisa Octocat"
- },
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
- },
- {
- "value": "monalisa@octocat.github.com"
- }
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2017-03-09T16:11:13-05:00",
- "lastModified": "2017-03-09T16:11:13-05:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "encoded content ...",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
}
},
"schema": {
- "title": "SCIM /Users",
- "description": "SCIM /Users provisioning endpoints",
+ "title": "Content File",
+ "description": "Content File",
"type": "object",
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- }
- },
- "id": {
- "description": "Unique identifier of an external identity",
+ "type": {
"type": "string",
- "examples": [
- "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ "enum": [
+ "file"
]
},
- "externalId": {
- "description": "The ID of the User.",
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
"type": [
"string",
"null"
],
- "examples": [
- "a7b0f98395"
- ]
+ "format": "uri"
},
- "userName": {
- "description": "Configured by the admin. Could be an email, login, or username",
+ "html_url": {
"type": [
"string",
"null"
],
- "examples": [
- "someone@example.com"
- ]
+ "format": "uri"
},
- "displayName": {
- "description": "The name of the user, suitable for display to end-users",
+ "download_url": {
"type": [
"string",
"null"
],
- "examples": [
- "Jon Doe"
- ]
+ "format": "uri"
},
- "name": {
+ "_links": {
"type": "object",
"properties": {
- "givenName": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "familyName": {
+ "html": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "formatted": {
- "type": [
- "string",
- "null"
- ]
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "example": {
- "givenName": "Jane",
- "familyName": "User"
- }
- },
- "emails": {
- "description": "user emails",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "value"
- ]
- },
- "examples": [
- {
- "value": "someone@example.com",
- "primary": true
- },
- {
- "value": "another@example.com",
- "primary": false
- }
+ "required": [
+ "git",
+ "html",
+ "self"
]
},
- "active": {
- "description": "The active status of the User.",
- "type": "boolean",
+ "target": {
+ "type": "string",
"examples": [
- true
+ "\"actual/actual.md\""
]
},
- "meta": {
- "type": "object",
- "properties": {
- "resourceType": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
- },
- "lastModified": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
- },
- "location": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
- ]
- }
- }
- },
- "organization_id": {
- "description": "The ID of the organization.",
- "type": "integer"
- },
- "operations": {
- "description": "Set of operations to be performed",
- "type": "array",
- "minItems": 1,
- "items": {
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- "path": {
- "type": "string"
- },
- "value": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object"
- },
- {
- "type": "array",
- "items": {}
- }
- ]
- }
- },
- "required": [
- "op"
- ],
- "type": "object"
- },
+ "submodule_git_url": {
+ "type": "string",
"examples": [
- {
- "op": "replace",
- "value": {
- "active": false
- }
- }
+ "\"git://example.com/defunkt/dotjs.git\""
]
- },
- "groups": {
- "description": "associated groups",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
}
},
"required": [
- "id",
- "schemas",
- "emails",
- "active",
- "meta"
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
]
}
}
@@ -726905,13 +767706,13 @@
"httpStatusCode": "304",
"description": "Not modified
"
},
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -726921,22 +767722,23 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "write"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
- "title": "Update an attribute for a SCIM user",
- "category": "scim",
- "subcategory": "scim",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/readme/{dir}",
+ "title": "Get a repository README for a directory",
+ "category": "repos",
+ "subcategory": "contents",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -726944,352 +767746,178 @@
}
},
{
- "name": "scim_user_id",
- "description": "The unique identifier of the SCIM user.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
+ },
{
- "type": "array of strings",
- "name": "schemas",
- "in": "body",
- "description": ""
+ "name": "dir",
+ "description": "The alternate path to look for a README file
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
},
{
- "type": "array of objects",
- "name": "Operations",
- "in": "body",
- "description": "Set of operations to be performed
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "op",
- "description": "",
- "isRequired": true,
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- {
- "type": "string",
- "name": "path",
- "description": ""
- },
- {
- "type": "object or array or string",
- "name": "value",
- "description": ""
- }
- ]
+ "name": "ref",
+ "description": "The name of the commit/branch/tag. Default: the repository’s default branch.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
}
],
- "descriptionHTML": "Allows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific Operations JSON format that contains at least one of the add, remove, or replace operations. For examples and more information on the SCIM operations format, see the SCIM specification .
\n Note
\n
\nComplicated SCIM path selectors that include filters are not supported. For example, a path selector defined as \"path\": \"emails[type eq \\\"work\\\"]\" will not work.
\n
\n Warning
\n
\nIf you set active:false using the replace operation (as shown in the JSON example below), it removes the user from the organization, deletes the external identity, and deletes the associated :scim_user_id.
\n
{\n \"Operations\":[{\n \"op\":\"replace\",\n \"value\":{\n \"active\":false\n }\n }]\n}\n\n
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets the README from a repository directory.
\nThis endpoint supports the following custom media types. For more information, see \"Media types .\"
\n\napplication/vnd.github.raw+json : Returns the raw file contents. This is the default if you do not specify a media type. \napplication/vnd.github.html+json : Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source Markup library . \n ",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "Operations": [
- {
- "op": "replace",
- "value": {
- "displayName": "Octocat"
- }
- }
- ]
- },
"parameters": {
- "org": "ORG",
- "scim_user_id": "SCIM_USER_ID"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "dir": "DIR"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/scim+json",
+ "contentType": "application/json",
"description": "Response
",
"example": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ],
- "id": "edefdfedf-050c-11e7-8d32",
- "externalId": "a7d0f98382",
- "userName": "mona.octocat@okta.example.com",
- "displayName": "Monalisa Octocat",
- "name": {
- "givenName": "Monalisa",
- "familyName": "Octocat",
- "formatted": "Monalisa Octocat"
- },
- "emails": [
- {
- "value": "mona.octocat@okta.example.com",
- "primary": true
- },
- {
- "value": "monalisa@octocat.github.com"
- }
- ],
- "active": true,
- "meta": {
- "resourceType": "User",
- "created": "2017-03-09T16:11:13-05:00",
- "lastModified": "2017-03-09T16:11:13-05:00",
- "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ "type": "file",
+ "encoding": "base64",
+ "size": 5362,
+ "name": "README.md",
+ "path": "README.md",
+ "content": "encoded content ...",
+ "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
+ "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md",
+ "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md",
+ "_links": {
+ "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
+ "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md",
+ "html": "https://github.com/octokit/octokit.rb/blob/master/README.md"
}
},
"schema": {
- "title": "SCIM /Users",
- "description": "SCIM /Users provisioning endpoints",
+ "title": "Content File",
+ "description": "Content File",
"type": "object",
"properties": {
- "schemas": {
- "description": "SCIM schema used.",
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "string",
- "examples": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
- ]
- }
- },
- "id": {
- "description": "Unique identifier of an external identity",
+ "type": {
"type": "string",
- "examples": [
- "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ "enum": [
+ "file"
]
},
- "externalId": {
- "description": "The ID of the User.",
+ "encoding": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
"type": [
"string",
"null"
],
- "examples": [
- "a7b0f98395"
- ]
+ "format": "uri"
},
- "userName": {
- "description": "Configured by the admin. Could be an email, login, or username",
+ "html_url": {
"type": [
"string",
"null"
],
- "examples": [
- "someone@example.com"
- ]
+ "format": "uri"
},
- "displayName": {
- "description": "The name of the user, suitable for display to end-users",
+ "download_url": {
"type": [
"string",
"null"
],
- "examples": [
- "Jon Doe"
- ]
+ "format": "uri"
},
- "name": {
+ "_links": {
"type": "object",
"properties": {
- "givenName": {
+ "git": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "familyName": {
+ "html": {
"type": [
"string",
"null"
- ]
+ ],
+ "format": "uri"
},
- "formatted": {
- "type": [
- "string",
- "null"
- ]
+ "self": {
+ "type": "string",
+ "format": "uri"
}
},
- "example": {
- "givenName": "Jane",
- "familyName": "User"
- }
- },
- "emails": {
- "description": "user emails",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "value"
- ]
- },
- "examples": [
- {
- "value": "someone@example.com",
- "primary": true
- },
- {
- "value": "another@example.com",
- "primary": false
- }
+ "required": [
+ "git",
+ "html",
+ "self"
]
},
- "active": {
- "description": "The active status of the User.",
- "type": "boolean",
+ "target": {
+ "type": "string",
"examples": [
- true
+ "\"actual/actual.md\""
]
},
- "meta": {
- "type": "object",
- "properties": {
- "resourceType": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
- },
- "lastModified": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2019-01-24T22:45:36.000Z"
- ]
- },
- "location": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
- ]
- }
- }
- },
- "organization_id": {
- "description": "The ID of the organization.",
- "type": "integer"
- },
- "operations": {
- "description": "Set of operations to be performed",
- "type": "array",
- "minItems": 1,
- "items": {
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "remove",
- "replace"
- ]
- },
- "path": {
- "type": "string"
- },
- "value": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object"
- },
- {
- "type": "array",
- "items": {}
- }
- ]
- }
- },
- "required": [
- "op"
- ],
- "type": "object"
- },
+ "submodule_git_url": {
+ "type": "string",
"examples": [
- {
- "op": "replace",
- "value": {
- "active": false
- }
- }
+ "\"git://example.com/defunkt/dotjs.git\""
]
- },
- "groups": {
- "description": "associated groups",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- },
- "primary": {
- "type": "boolean"
- },
- "type": {
- "type": "string"
- },
- "display": {
- "type": "string"
- }
- }
- }
}
},
"required": [
- "id",
- "schemas",
- "emails",
- "active",
- "meta"
+ "_links",
+ "git_url",
+ "html_url",
+ "download_url",
+ "name",
+ "path",
+ "sha",
+ "size",
+ "type",
+ "url",
+ "content",
+ "encoding"
]
}
}
@@ -727300,25 +767928,13 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
{
"httpStatusCode": "404",
"description": "Resource not found
"
},
{
- "httpStatusCode": "429",
- "description": "Too Many Requests
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -727328,22 +767944,23 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "write"
+ "\"Contents\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
- "title": "Delete a SCIM user from an organization",
- "category": "scim",
- "subcategory": "scim",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/tarball/{ref}",
+ "title": "Download a repository archive (tar)",
+ "category": "repos",
+ "subcategory": "contents",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -727351,1215 +767968,235 @@
}
},
{
- "name": "scim_user_id",
- "description": "The unique identifier of the SCIM user.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Deletes a SCIM user from an organization.
",
- "codeExamples": [
- {
- "key": "204",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "scim_user_id": "SCIM_USER_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- }
- ]
- },
- "search": {
- "search": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/code",
- "title": "Search code",
- "category": "search",
- "subcategory": "search",
- "parameters": [
- {
- "name": "q",
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching code \" for a detailed list of qualifiers.
",
- "in": "query",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "sort",
- "deprecated": true,
- "description": "This field is closing down. Sorts the results of your query. Can only be indexed, which indicates how recently a file has been indexed by the GitHub Enterprise Cloud search infrastructure. Default: best match
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "indexed"
- ]
- }
- },
- {
- "name": "order",
- "description": "This field is closing down. 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.
",
- "in": "query",
- "deprecated": true,
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to find the definition of the addClass function inside jQuery repository, your query would look something like this:
\nq=addClass+in:file+language:js+repo:jquery/jquery
\nThis query searches for the keyword addClass within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery repository.
\nConsiderations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\n\nOnly the default branch is considered. In most cases, this will be the master branch. \nOnly files smaller than 384 KB are searchable. \nYou must always include at least one search term when searching source code. For example, searching for language:go is not valid, while amazing language:go is. \n \nThis endpoint requires you to authenticate and limits you to 10 requests per minute.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 7,
- "incomplete_results": false,
- "items": [
- {
- "name": "classes.js",
- "path": "src/attributes/classes.js",
- "sha": "d7212f9dee2dcc18f084d7df8f417b80846ded5a",
- "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=825ac3773694e0cd23ee74895fd5aeb535b27da4",
- "git_url": "https://api.github.com/repositories/167174/git/blobs/d7212f9dee2dcc18f084d7df8f417b80846ded5a",
- "html_url": "https://github.com/jquery/jquery/blob/825ac3773694e0cd23ee74895fd5aeb535b27da4/src/attributes/classes.js",
- "repository": {
- "id": 167174,
- "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
- "name": "jquery",
- "full_name": "jquery/jquery",
- "owner": {
- "login": "jquery",
- "id": 70142,
- "node_id": "MDQ6VXNlcjcwMTQy",
- "avatar_url": "https://0.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https%3A%2F%2Fidenticons.github.com%2Ff426f04f2f9813718fb806b30e0093de.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/jquery",
- "html_url": "https://github.com/jquery",
- "followers_url": "https://api.github.com/users/jquery/followers",
- "following_url": "https://api.github.com/users/jquery/following{/other_user}",
- "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
- "organizations_url": "https://api.github.com/users/jquery/orgs",
- "repos_url": "https://api.github.com/users/jquery/repos",
- "events_url": "https://api.github.com/users/jquery/events{/privacy}",
- "received_events_url": "https://api.github.com/users/jquery/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/jquery/jquery",
- "description": "jQuery JavaScript Library",
- "fork": false,
- "url": "https://api.github.com/repos/jquery/jquery",
- "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
- "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
- "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
- "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
- "events_url": "https://api.github.com/repos/jquery/jquery/events",
- "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
- "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
- "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
- "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
- "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
- "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
- "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
- "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
- "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments/{number}",
- "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
- "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
- "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
- "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
- "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
- "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
- "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- },
- "score": 1
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "Code Search Result Item",
- "description": "Code Search Result Item",
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "repository": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "score": {
- "type": "number"
- },
- "file_size": {
- "type": "integer"
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "last_modified_at": {
- "type": "string",
- "format": "date-time"
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ref",
+ "in": "path",
+ "required": true,
+ "x-multi-segment": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": ""
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a redirect URL to download a tar archive for a repository. If you omit :ref, the repository’s default branch (usually\nmain) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe Location header to make a second GET request.
\n Note
\n
\nFor private repositories, these links are temporary and expire after five minutes.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ref": "REF"
+ }
+ },
+ "response": {
+ "statusCode": "302",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "302",
+ "description": "Found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/zipball/{ref}",
+ "title": "Download a repository archive (zip)",
+ "category": "repos",
+ "subcategory": "contents",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ref",
+ "in": "path",
+ "required": true,
+ "x-multi-segment": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": ""
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a redirect URL to download a zip archive for a repository. If you omit :ref, the repository’s default branch (usually\nmain) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe Location header to make a second GET request.
\n Note
\n
\nFor private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ref": "REF"
+ }
+ },
+ "response": {
+ "statusCode": "302",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "302",
+ "description": "Found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ }
+ ],
+ "custom-properties": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/properties/values",
+ "title": "Get all custom property values for a repository",
+ "category": "repos",
+ "subcategory": "custom-properties",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets all custom property values that are set for a repository.\nUsers with read access to the repository can use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "property_name": "environment",
+ "value": "production"
+ },
+ {
+ "property_name": "service",
+ "value": "web"
+ },
+ {
+ "property_name": "team",
+ "value": "octocat"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Custom Property Value",
+ "description": "Custom property name and associated value",
+ "type": "object",
+ "properties": {
+ "property_name": {
+ "type": "string",
+ "description": "The name of the property"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
},
- "line_numbers": {
+ {
"type": "array",
"items": {
"type": "string"
- },
- "examples": [
- "73..77",
- "77..78"
- ]
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
}
}
- },
- "required": [
- "score",
- "name",
- "path",
- "sha",
- "git_url",
- "html_url",
- "url",
- "repository"
+ ],
+ "description": "The value assigned to the property",
+ "type": [
+ "null",
+ "string",
+ "array"
]
}
- }
+ },
+ "required": [
+ "property_name",
+ "value"
+ ]
}
}
}
@@ -728571,20 +768208,128 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/properties/values",
+ "title": "Create or update custom property values for a repository",
+ "category": "repos",
+ "subcategory": "custom-properties",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "array of objects",
+ "name": "properties",
+ "in": "body",
+ "description": "A list of custom property names and associated values to apply to the repositories.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "property_name",
+ "description": "The name of the property
",
+ "isRequired": true
+ },
+ {
+ "type": "null or string or array",
+ "name": "value",
+ "description": "The value assigned to the property
",
+ "isRequired": true
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Create new or update existing custom property values for a repository.\nUsing a value of null for a custom property will remove or 'unset' the property value from the repository.
\nRepository admins and other users with the repository-level \"edit custom property values\" fine-grained permission can use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "properties": [
+ {
+ "property_name": "environment",
+ "value": "production"
+ },
+ {
+ "property_name": "service",
+ "value": "web"
+ },
+ {
+ "property_name": "team",
+ "value": "octocat"
+ }
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "No Content when custom property values are successfully created or updated
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content when custom property values are successfully created or updated
"
},
{
"httpStatusCode": "403",
"description": "Forbidden
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -728592,53 +768337,55 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "permissions": [
+ {
+ "\"Custom properties\" repository permissions": "write"
+ }
+ ]
}
- },
+ }
+ ],
+ "forks": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/search/commits",
- "title": "Search commits",
- "category": "search",
- "subcategory": "search",
+ "requestPath": "/repos/{owner}/{repo}/forks",
+ "title": "List forks",
+ "category": "repos",
+ "subcategory": "forks",
"parameters": [
{
- "name": "q",
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching commits \" for a detailed list of qualifiers.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "sort",
- "description": "Sorts the results of your query by author-date or committer-date. Default: best match
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "author-date",
- "committer-date"
- ]
+ "type": "string"
}
},
{
- "name": "order",
- "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": "sort",
+ "description": "The sort order. stargazers will sort by star count.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "desc",
- "asc"
+ "newest",
+ "oldest",
+ "stargazers",
+ "watchers"
],
- "default": "desc"
+ "default": "newest"
}
},
{
@@ -728661,1465 +768408,1008 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Find commits via various criteria on the default branch (usually main). This method returns up to 100 results per page .
\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\nmetadata .
\nFor example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
",
+ "descriptionHTML": "",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "total_count": 1,
- "incomplete_results": false,
- "items": [
- {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f/comments",
- "commit": {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
- "author": {
- "date": "2014-02-04T14:38:36-08:00",
- "name": "The Octocat",
- "email": "octocat@nowhere.com"
- },
- "committer": {
- "date": "2014-02-12T15:18:55-08:00",
- "name": "The Octocat",
- "email": "octocat@nowhere.com"
- },
- "message": "Create styles.css and updated README",
- "tree": {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa68",
- "sha": "a639e96f9038797fba6e0469f94a4b0cc459fa68"
- },
- "comment_count": 8
+ "example": [
+ {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": true,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "delete_branch_on_merge": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "spdx_id": "MIT",
+ "url": "https://api.github.com/licenses/mit",
+ "node_id": "MDc6TGljZW5zZW1pdA=="
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
},
- "author": {
- "login": "octocat",
- "id": 583231,
- "node_id": "MDQ6VXNlcjU4MzIzMQ==",
- "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
},
- "committer": {},
- "parents": [
- {
- "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
- "html_url": "https://github.com/octocat/Spoon-Knife/commit/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
- "sha": "a30c19e3f13765a3b48829788bc1cb8b4e95cee4"
- }
- ],
- "repository": {
- "id": 1300192,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMzAwMTky",
- "name": "Spoon-Knife",
- "full_name": "octocat/Spoon-Knife",
- "owner": {
- "login": "octocat",
- "id": 583231,
- "node_id": "MDQ6VXNlcjU4MzIzMQ==",
- "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Spoon-Knife",
- "description": "This repo is for demonstration purposes only.",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Spoon-Knife",
- "forks_url": "https://api.github.com/repos/octocat/Spoon-Knife/forks",
- "keys_url": "https://api.github.com/repos/octocat/Spoon-Knife/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/octocat/Spoon-Knife/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/octocat/Spoon-Knife/teams",
- "hooks_url": "https://api.github.com/repos/octocat/Spoon-Knife/hooks",
- "issue_events_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/events{/number}",
- "events_url": "https://api.github.com/repos/octocat/Spoon-Knife/events",
- "assignees_url": "https://api.github.com/repos/octocat/Spoon-Knife/assignees{/user}",
- "branches_url": "https://api.github.com/repos/octocat/Spoon-Knife/branches{/branch}",
- "tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/tags",
- "blobs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/octocat/Spoon-Knife/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/octocat/Spoon-Knife/languages",
- "stargazers_url": "https://api.github.com/repos/octocat/Spoon-Knife/stargazers",
- "contributors_url": "https://api.github.com/repos/octocat/Spoon-Knife/contributors",
- "subscribers_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscription",
- "commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/octocat/Spoon-Knife/contents/{+path}",
- "compare_url": "https://api.github.com/repos/octocat/Spoon-Knife/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/octocat/Spoon-Knife/merges",
- "archive_url": "https://api.github.com/repos/octocat/Spoon-Knife/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/octocat/Spoon-Knife/downloads",
- "issues_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues{/number}",
- "pulls_url": "https://api.github.com/repos/octocat/Spoon-Knife/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/octocat/Spoon-Knife/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Spoon-Knife/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/octocat/Spoon-Knife/labels{/name}",
- "releases_url": "https://api.github.com/repos/octocat/Spoon-Knife/releases{/id}",
- "deployments_url": "https://api.github.com/repos/octocat/Spoon-Knife/deployments"
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
},
- "score": 1,
- "node_id": "MDQ6VXNlcjU4MzIzMQ=="
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "Commit Search Result Item",
- "description": "Commit Search Result Item",
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "url": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "format": "uri"
+ "examples": [
+ "octocat"
+ ]
},
- "sha": {
- "type": "string"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
},
- "comments_url": {
+ "followers_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
},
- "commit": {
- "type": "object",
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string",
- "format": "date-time"
- }
- },
- "required": [
- "name",
- "email",
- "date"
- ]
- },
- "committer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "\"Chris Wanstrath\""
- ]
- },
- "email": {
- "type": "string",
- "examples": [
- "\"chris@ozmm.org\""
- ]
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "\"2007-10-29T02:42:39.000-07:00\""
- ]
- }
- }
- }
- ]
- },
- "comment_count": {
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "verification": {
- "title": "Verification",
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "payload": {
- "type": [
- "string",
- "null"
- ]
- },
- "signature": {
- "type": [
- "string",
- "null"
- ]
- },
- "verified_at": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "verified",
- "reason",
- "payload",
- "signature",
- "verified_at"
- ]
- }
- },
- "required": [
- "author",
- "committer",
- "comment_count",
- "message",
- "tree",
- "url"
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "committer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "examples": [
- "\"Chris Wanstrath\""
- ]
- },
- "email": {
- "type": "string",
- "examples": [
- "\"chris@ozmm.org\""
- ]
- },
- "date": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "\"2007-10-29T02:42:39.000-07:00\""
- ]
- }
- }
- }
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
},
- "repository": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "subscription_url": {
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "tags_url": {
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "teams_url": {
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "trees_url": {
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "hooks_url": {
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
"type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
- },
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
+ "enum": [
+ "enabled",
+ "disabled"
]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- }
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "score": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
+ }
},
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
}
}
- },
- "required": [
- "sha",
- "node_id",
- "url",
- "html_url",
- "author",
- "committer",
- "parents",
- "comments_url",
- "commit",
- "repository",
- "score"
- ]
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
- }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
}
}
}
@@ -730131,8 +769421,8 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
}
],
"previews": [],
@@ -730140,278 +769430,1382 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
"allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/issues",
- "title": "Search issues and pull requests",
- "category": "search",
- "subcategory": "search",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/forks",
+ "title": "Create a fork",
+ "category": "repos",
+ "subcategory": "forks",
"parameters": [
{
- "name": "q",
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching issues and pull requests \" for a detailed list of qualifiers.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "sort",
- "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
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "comments",
- "reactions",
- "reactions-+1",
- "reactions--1",
- "reactions-smile",
- "reactions-thinking_face",
- "reactions-heart",
- "reactions-tada",
- "interactions",
- "created",
- "updated"
- ]
- }
- },
- {
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
+ "type": "string"
}
- },
+ }
+ ],
+ "bodyParameters": [
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "string",
+ "name": "organization",
+ "in": "body",
+ "description": "Optional parameter to specify the organization name if forking into an organization.
"
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "When forking from an existing repository, a new name for the fork.
"
},
{
- "name": "advanced_search",
- "description": "Set to true to use advanced search.\nExample: http://api.github.com/search/issues?q={query}&advanced_search=true
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
+ "type": "boolean",
+ "name": "default_branch_only",
+ "in": "body",
+ "description": "When forking from an existing repository, fork with only the default branch.
"
}
],
- "bodyParameters": [],
- "descriptionHTML": "Find issues by state and keyword. This method returns up to 100 results per page .
\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\nsearch results, see Text match metadata .
\nFor example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
\nThis query searches for the keyword windows, within any open issue that is labeled as bug. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
\n Note
\n
\nFor requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue or is:pull-request qualifier will receive an HTTP 422 Unprocessable Entity response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is qualifier, see \"Searching only issues or pull requests .\"
\n
",
+ "descriptionHTML": "Create a fork for the authenticated user.
\n Note
\n
\nForking 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 Cloud Support .
\n
\n Note
\n
\nAlthough this endpoint works with GitHub Apps, the GitHub App must be installed on the destination account with access to all repositories and on the source account with access to the source repository.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "organization": "octocat",
+ "name": "Hello-World",
+ "default_branch_only": true
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
},
"response": {
- "statusCode": "200",
+ "statusCode": "202",
"contentType": "application/json",
"description": "Response
",
"example": {
- "total_count": 280,
- "incomplete_results": false,
- "items": [
- {
- "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132",
- "repository_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit",
- "labels_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/labels{/name}",
- "comments_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/comments",
- "events_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/events",
- "html_url": "https://github.com/batterseapower/pinyin-toolkit/issues/132",
- "id": 35802,
- "node_id": "MDU6SXNzdWUzNTgwMg==",
- "number": 132,
- "title": "Line Number Indexes Beyond 20 Not Displayed",
- "user": {
- "login": "Nick3C",
- "id": 90254,
- "node_id": "MDQ6VXNlcjkwMjU0",
- "avatar_url": "https://secure.gravatar.com/avatar/934442aadfe3b2f4630510de416c5718?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/Nick3C",
- "html_url": "https://github.com/Nick3C",
- "followers_url": "https://api.github.com/users/Nick3C/followers",
- "following_url": "https://api.github.com/users/Nick3C/following{/other_user}",
- "gists_url": "https://api.github.com/users/Nick3C/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/Nick3C/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/Nick3C/subscriptions",
- "organizations_url": "https://api.github.com/users/Nick3C/orgs",
- "repos_url": "https://api.github.com/users/Nick3C/repos",
- "events_url": "https://api.github.com/users/Nick3C/events{/privacy}",
- "received_events_url": "https://api.github.com/users/Nick3C/received_events",
- "type": "User",
- "site_admin": true
- },
- "labels": [
- {
- "id": 4,
- "node_id": "MDU6TGFiZWw0",
- "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/labels/bug",
- "name": "bug",
- "color": "ff0000"
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
+ "language": null,
+ "forks_count": 9,
+ "forks": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "open_issues": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "pull": true,
+ "push": false,
+ "admin": false
+ },
+ "allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
+ },
+ "schema": {
+ "title": "Full Repository",
+ "description": "Full Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
],
- "state": "open",
- "assignee": null,
- "milestone": {
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
- "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
- "id": 1002604,
- "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
- "number": 1,
- "state": "open",
- "title": "v1.0",
- "description": "Tracking milestone for version 1.0",
- "creator": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
+ ]
+ },
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
},
- "open_issues": 4,
- "closed_issues": 8,
- "created_at": "2011-04-10T20:09:31Z",
- "updated_at": "2014-03-03T18:58:10Z",
- "closed_at": "2013-02-12T13:22:01Z",
- "due_on": "2012-10-09T23:39:01Z"
- },
- "comments": 15,
- "created_at": "2009-07-12T20:10:41Z",
- "updated_at": "2009-07-19T09:23:43Z",
- "closed_at": null,
- "pull_request": {
- "url": "https://api/github.com/repos/octocat/Hello-World/pull/1347",
- "html_url": "https://github.com/octocat/Hello-World/pull/1347",
- "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
- "patch_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
},
- "body": "...",
- "score": 1,
- "locked": true,
- "author_association": "COLLABORATOR",
- "state_reason": "completed"
- }
- ]
- },
- "schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
},
- "incomplete_results": {
- "type": "boolean"
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "items": {
- "type": "array",
- "items": {
- "title": "Issue Search Result Item",
- "description": "Issue Search Result Item",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "repository_url": {
- "type": "string",
- "format": "uri"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string",
- "format": "uri"
- },
- "events_url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "integer"
- },
- "title": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "assignees": {
- "type": [
- "array",
- "null"
- ],
- "items": {
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -730578,2513 +770972,3536 @@
"type",
"url"
]
- }
- },
- "user": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
- ]
- },
- "labels": {
- "type": "array",
- "items": {
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
"type": "object",
+ "description": "The status of the code search index for this repository",
"properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
+ "lexical_search_ok": {
"type": "boolean"
},
- "description": {
- "type": [
- "string",
- "null"
- ]
+ "lexical_commit_sha": {
+ "type": "string"
}
}
}
},
- "sub_issues_summary": {
- "title": "Sub-issues Summary",
- "type": "object",
- "properties": {
- "total": {
- "type": "integer"
- },
- "completed": {
- "type": "integer"
- },
- "percent_completed": {
- "type": "integer"
- }
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "allow_squash_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
+ "examples": [
+ "PR_TITLE"
+ ]
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
},
- "required": [
- "total",
- "completed",
- "percent_completed"
- ]
- },
- "issue_dependencies_summary": {
- "title": "Issue Dependencies Summary",
- "type": "object",
- "properties": {
- "blocked_by": {
- "type": "integer"
- },
- "blocking": {
- "type": "integer"
- },
- "total_blocked_by": {
- "type": "integer"
- },
- "total_blocking": {
- "type": "integer"
- }
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
},
- "required": [
- "blocked_by",
- "blocking",
- "total_blocked_by",
- "total_blocking"
- ]
- },
- "issue_field_values": {
- "type": "array",
- "items": {
- "title": "Issue Field Value",
- "description": "A value assigned to an issue field",
- "type": "object",
- "properties": {
- "issue_field_id": {
- "description": "Unique identifier for the issue field.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "IFT_GDKND"
- ]
- },
- "data_type": {
- "description": "The data type of the issue field",
- "type": "string",
- "enum": [
- "text",
- "single_select",
- "number",
- "date"
- ],
- "examples": [
- "text"
- ]
- },
- "value": {
- "description": "The value of the issue field",
- "anyOf": [
- {
- "type": "string",
- "examples": [
- "Sample text"
- ]
- },
- {
- "type": "number",
- "examples": [
- 42.5
- ]
- },
- {
- "type": "integer",
- "examples": [
- 1
- ]
- }
- ],
- "type": [
- "null",
- "string",
- "number",
- "integer"
- ]
- },
- "single_select_option": {
- "description": "Details about the selected option (only present for single_select fields)",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "id": {
- "description": "Unique identifier for the option.",
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "name": {
- "description": "The name of the option",
- "type": "string",
- "examples": [
- "High"
- ]
- },
- "color": {
- "description": "The color of the option",
- "type": "string",
- "examples": [
- "red"
- ]
- }
- },
- "required": [
- "id",
- "name",
- "color"
- ]
- }
- },
- "required": [
- "issue_field_id",
- "node_id",
- "data_type",
- "value"
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
},
- "state": {
- "type": "string"
- },
- "state_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "milestone": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Milestone",
- "description": "A collection of related issues and pull requests.",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World/milestones/v1.0"
- ]
- },
- "labels_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1002604
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDk6TWlsZXN0b25lMTAwMjYwNA=="
- ]
- },
- "number": {
- "description": "The number of the milestone.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "state": {
- "description": "The state of the milestone.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open",
- "examples": [
- "open"
- ]
- },
- "title": {
- "description": "The title of the milestone.",
- "type": "string",
- "examples": [
- "v1.0"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "Tracking milestone for version 1.0"
- ]
- },
- "creator": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 4
- ]
- },
- "closed_issues": {
- "type": "integer",
- "examples": [
- 8
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-04-10T20:09:31Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2014-03-03T18:58:10Z"
- ]
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2013-02-12T13:22:01Z"
- ]
- },
- "due_on": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2012-10-09T23:39:01Z"
- ]
- }
- },
- "required": [
- "closed_issues",
- "creator",
- "description",
- "due_on",
- "closed_at",
- "id",
- "node_id",
- "labels_url",
- "html_url",
- "number",
- "open_issues",
- "state",
- "title",
- "url",
- "created_at",
- "updated_at"
- ]
- }
- ]
- },
- "comments": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
"type": "object",
"properties": {
- "object_url": {
- "type": "string"
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
},
- "object_type": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
"type": [
"string",
"null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
]
},
- "property": {
- "type": "string"
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
},
- "fragment": {
- "type": "string"
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
},
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
- }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
}
},
- "pull_request": {
- "type": "object",
- "properties": {
- "merged_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "diff_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "patch_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- }
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "required": [
- "diff_url",
- "html_url",
- "patch_url",
- "url"
- ]
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "body": {
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
"type": "string"
- },
- "score": {
- "type": "number"
- },
- "author_association": {
- "title": "author_association",
- "type": "string",
- "description": "How the author is associated with the repository.",
- "enum": [
- "COLLABORATOR",
- "CONTRIBUTOR",
- "FIRST_TIMER",
- "FIRST_TIME_CONTRIBUTOR",
- "MANNEQUIN",
- "MEMBER",
- "NONE",
- "OWNER"
- ],
- "examples": [
- "OWNER"
- ]
- },
- "draft": {
- "type": "boolean"
- },
- "repository": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
}
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "body_html": {
- "type": "string"
- },
- "body_text": {
- "type": "string"
- },
- "timeline_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "title": "Issue Type",
- "description": "The type of issue.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the issue type."
- },
- "node_id": {
- "type": "string",
- "description": "The node identifier of the issue type."
- },
- "name": {
- "type": "string",
- "description": "The name of the issue type."
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The description of the issue type."
- },
- "color": {
- "type": [
- "string",
- "null"
- ],
- "description": "The color of the issue type.",
- "enum": [
- "gray",
- "blue",
- "green",
- "yellow",
- "orange",
- "red",
- "pink",
- "purple",
- null
- ]
- },
- "created_at": {
- "type": "string",
- "description": "The time the issue type created.",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "description": "The time the issue type last updated.",
- "format": "date-time"
},
- "is_enabled": {
- "type": "boolean",
- "description": "The enabled state of the issue type."
- }
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
},
- "required": [
- "id",
- "node_id",
- "name",
- "description"
- ]
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
},
- "performed_via_github_app": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "GitHub app",
- "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "id": {
- "description": "Unique identifier of the GitHub app",
- "type": "integer",
- "examples": [
- 37
- ]
- },
- "slug": {
- "description": "The slug name of the GitHub app",
- "type": "string",
- "examples": [
- "probot-owners"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDExOkludGVncmF0aW9uMQ=="
- ]
- },
- "client_id": {
- "type": "string",
- "examples": [
- "\"Iv1.25b5d1e65ffc4022\""
- ]
- },
- "owner": {
- "oneOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- {
- "title": "Enterprise",
- "description": "An enterprise on GitHub.",
- "type": "object",
- "properties": {
- "description": {
- "description": "A short description of the enterprise.",
- "type": [
- "string",
- "null"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/enterprises/octo-business"
- ]
- },
- "website_url": {
- "description": "The enterprise's website URL.",
- "type": [
- "string",
- "null"
- ],
- "format": "uri"
- },
- "id": {
- "description": "Unique identifier of the enterprise",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the enterprise.",
- "type": "string",
- "examples": [
- "Octo Business"
- ]
- },
- "slug": {
- "description": "The slug url identifier for the enterprise.",
- "type": "string",
- "examples": [
- "octo-business"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2019-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2019-01-26T19:14:43Z"
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "id",
- "node_id",
- "name",
- "slug",
- "html_url",
- "created_at",
- "updated_at",
- "avatar_url"
- ]
- }
- ]
- },
- "name": {
- "description": "The name of the GitHub app",
- "type": "string",
- "examples": [
- "Probot Owners"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "The description of the app."
- ]
- },
- "external_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://example.com"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/apps/super-ci"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-08T16:18:44-04:00"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-08T16:18:44-04:00"
- ]
- },
- "permissions": {
- "description": "The set of permissions for the GitHub app",
- "type": "object",
- "properties": {
- "issues": {
- "type": "string"
- },
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "deployments": {
- "type": "string"
- }
- },
- "additionalProperties": {
- "type": "string"
- },
- "example": {
- "issues": "read",
- "deployments": "write"
- }
- },
- "events": {
- "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "examples": [
- "label",
- "deployment"
- ]
- },
- "installations_count": {
- "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
- "type": "integer",
- "examples": [
- 5
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "owner",
- "name",
- "description",
- "external_url",
- "html_url",
- "created_at",
- "updated_at",
- "permissions",
- "events"
- ]
- }
- ]
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
},
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
+ "lexical_commit_sha": {
+ "type": "string"
+ }
}
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
+ "default": true,
+ "type": "boolean"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
},
- "required": [
- "assignee",
- "closed_at",
- "comments",
- "comments_url",
- "events_url",
- "html_url",
- "id",
- "node_id",
- "labels",
- "labels_url",
- "milestone",
- "number",
- "repository_url",
- "state",
- "locked",
- "title",
- "url",
- "user",
- "author_association",
- "created_at",
- "updated_at",
- "score"
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write",
+ "\"Contents\" repository permissions": "read"
+ }
+ ]
+ }
+ }
+ ],
+ "lfs": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/lfs",
+ "title": "Enable Git LFS for a repository",
+ "category": "repos",
+ "subcategory": "lfs",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Enables Git LFS for a repository.
\nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Accepted
",
+ "example": null,
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "We will return a 403 with one of the following messages:
\n\nGit LFS support not enabled because Git LFS is globally disabled. \nGit LFS support not enabled because Git LFS is disabled for the root repository in the network. \nGit LFS support not enabled because Git LFS is disabled for . \n "
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/lfs",
+ "title": "Disable Git LFS for a repository",
+ "category": "repos",
+ "subcategory": "lfs",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Disables Git LFS for a repository.
\nOAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ }
+ ],
+ "rule-suites": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/rule-suites",
+ "title": "List repository rule suites",
+ "category": "repos",
+ "subcategory": "rule-suites",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ref",
+ "description": "The name of the ref. Cannot contain wildcard characters. Optionally prefix with refs/heads/ to limit to branches or refs/tags/ to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "x-multi-segment": true
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "actor_name",
+ "description": "The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "rule_suite_result",
+ "description": "The rule suite results to filter on. When specified, only suites with this result will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists suites of rule evaluations at the repository level.\nFor more information, see \"Managing rulesets for a repository .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 21,
+ "actor_id": 12,
+ "actor_name": "octocat",
+ "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d",
+ "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01",
+ "ref": "refs/heads/i-see-everything",
+ "repository_id": 404,
+ "repository_name": "octo-repo",
+ "pushed_at": "2023-07-06T08:43:03Z",
+ "result": "bypass"
+ },
+ {
+ "id": 25,
+ "actor_id": 11,
+ "actor_name": "not-octocat",
+ "before_sha": "48994e4e01ccc943624c6231f172702b82b233cc",
+ "after_sha": "ecfd5a1025fa271a33ca5608d089476a2df3c9a1",
+ "ref": "refs/heads/i-am-everything",
+ "repository_id": 404,
+ "repository_name": "octo-repo",
+ "pushed_at": "2023-07-07T08:43:03Z",
+ "result": "pass",
+ "evaluation_result": "fail"
+ }
+ ],
+ "schema": {
+ "title": "Rule Suites",
+ "description": "Response",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the rule insight."
+ },
+ "actor_id": {
+ "type": "integer",
+ "description": "The number that identifies the user."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The handle for the GitHub user account."
+ },
+ "before_sha": {
+ "type": "string",
+ "description": "The first commit sha before the push evaluation."
+ },
+ "after_sha": {
+ "type": "string",
+ "description": "The last commit sha in the push evaluation."
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref name that the evaluation ran on."
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository associated with the rule evaluation."
+ },
+ "repository_name": {
+ "type": "string",
+ "description": "The name of the repository without the `.git` extension."
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
]
+ },
+ "result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass"
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` enforcement status."
+ },
+ "evaluation_result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass"
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."
}
}
}
@@ -733098,20 +774515,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -733119,223 +774528,241 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/search/labels",
- "title": "Search labels",
- "category": "search",
- "subcategory": "search",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}",
+ "title": "Get a repository rule suite",
+ "category": "repos",
+ "subcategory": "rule-suites",
"parameters": [
{
- "name": "repository_id",
- "description": "The id of the repository.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "q",
- "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 .
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "sort",
- "description": "Sorts the results of your query by when the label was created or updated. Default: best match
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ]
- }
- },
- {
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "rule_suite_id",
+ "description": "The unique identifier of the rule suite result.\nTo get this ID, you can use GET /repos/{owner}/{repo}/rulesets/rule-suites \nfor repositories and GET /orgs/{org}/rulesets/rule-suites \nfor organizations.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 1
+ "type": "integer"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page .
\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 .
\nFor example, if you want to find labels in the linguist repository that match bug, defect, or enhancement. Your query might look like this:
\nq=bug+defect+enhancement&repository_id=64778136
\nThe labels that best match the query appear first in the search results.
",
+ "descriptionHTML": "Gets information about a suite of rule evaluations from within a repository.\nFor more information, see \"Managing rulesets for a repository .\"
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "rule_suite_id": "RULE_SUITE_ID"
+ }
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "total_count": 2,
- "incomplete_results": false,
- "items": [
+ "id": 21,
+ "actor_id": 12,
+ "actor_name": "octocat",
+ "before_sha": "893f768e172fb1bc9c5d6f3dd48557e45f14e01d",
+ "after_sha": "dedd88641a362b6b4ea872da4847d6131a164d01",
+ "ref": "refs/heads/i-see-everything",
+ "repository_id": 404,
+ "repository_name": "octo-repo",
+ "pushed_at": "2023-07-06T08:43:03Z",
+ "result": "bypass",
+ "evaluation_result": "fail",
+ "rule_evaluations": [
{
- "id": 418327088,
- "node_id": "MDU6TGFiZWw0MTgzMjcwODg=",
- "url": "https://api.github.com/repos/octocat/linguist/labels/enhancement",
- "name": "enhancement",
- "color": "84b6eb",
- "default": true,
- "description": "New feature or request.",
- "score": 1
+ "rule_source": {
+ "type": "ruleset",
+ "id": 2,
+ "name": "Author email must be a GitHub email address"
+ },
+ "enforcement": "active",
+ "result": "pass",
+ "rule_type": "commit_author_email_pattern"
},
{
- "id": 418327086,
- "node_id": "MDU6TGFiZWw0MTgzMjcwODY=",
- "url": "https://api.github.com/repos/octocat/linguist/labels/bug",
- "name": "bug",
- "color": "ee0701",
- "default": true,
- "description": "Something isn't working.",
- "score": 1
+ "rule_source": {
+ "type": "protected_branch"
+ },
+ "enforcement": "active",
+ "result": "fail",
+ "rule_type": "pull_request",
+ "details": "Changes must be made through a pull request."
+ },
+ {
+ "rule_source": {
+ "type": "ruleset",
+ "id": 3,
+ "name": "Evaluate commit message pattern"
+ },
+ "enforcement": "evaluate",
+ "result": "fail",
+ "rule_type": "commit_message_pattern"
}
]
},
"schema": {
+ "title": "Rule Suite",
+ "description": "Response",
"type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
"properties": {
- "total_count": {
- "type": "integer"
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the rule insight."
},
- "incomplete_results": {
- "type": "boolean"
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The number that identifies the user."
},
- "items": {
+ "actor_name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The handle for the GitHub user account."
+ },
+ "before_sha": {
+ "type": "string",
+ "description": "The previous commit SHA of the ref."
+ },
+ "after_sha": {
+ "type": "string",
+ "description": "The new commit SHA of the ref."
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref name that the evaluation ran on."
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository associated with the rule evaluation."
+ },
+ "repository_name": {
+ "type": "string",
+ "description": "The name of the repository without the `.git` extension."
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail",
+ "bypass"
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` enforcement status."
+ },
+ "evaluation_result": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "pass",
+ "fail",
+ "bypass",
+ null
+ ],
+ "description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run."
+ },
+ "rule_evaluations": {
"type": "array",
+ "description": "Details on the evaluated rules.",
"items": {
- "title": "Label Search Result Item",
- "description": "Label Search Result Item",
"type": "object",
"properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
+ "rule_source": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of rule source."
+ },
+ "id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the rule source."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The name of the rule source."
+ }
+ }
},
- "url": {
+ "enforcement": {
"type": "string",
- "format": "uri"
- },
- "name": {
- "type": "string"
+ "enum": [
+ "active",
+ "evaluate",
+ "deleted ruleset"
+ ],
+ "description": "The enforcement level of this rule source."
},
- "color": {
- "type": "string"
+ "result": {
+ "type": "string",
+ "enum": [
+ "pass",
+ "fail"
+ ],
+ "description": "The result of the evaluation of the individual rule."
},
- "default": {
- "type": "boolean"
+ "rule_type": {
+ "type": "string",
+ "description": "The type of rule."
},
- "description": {
+ "details": {
"type": [
"string",
"null"
- ]
- },
- "score": {
- "type": "number"
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- }
+ ],
+ "description": "The detailed failure message for the rule. Null if the rule passed."
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "name",
- "color",
- "default",
- "description",
- "score"
- ]
+ }
}
}
}
@@ -733348,21 +774775,13 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
{
"httpStatusCode": "404",
"description": "Resource not found
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -733372,57 +774791,48 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Metadata\" repository permissions": "read"
+ "\"Administration\" repository permissions": "write"
}
- ],
- "allowsPublicRead": true
+ ]
}
- },
+ }
+ ],
+ "rules": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/search/repositories",
- "title": "Search repositories",
- "category": "search",
- "subcategory": "search",
+ "requestPath": "/repos/{owner}/{repo}/rules/branches/{branch}",
+ "title": "Get rules for a branch",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
- "name": "q",
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching for repositories \" for a detailed list of qualifiers.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "sort",
- "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
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "help-wanted-issues",
- "updated"
- ]
+ "type": "string"
}
},
{
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
+ "name": "branch",
+ "description": "The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API .
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
+ "type": "string"
+ },
+ "x-multi-segment": true
},
{
"name": "per_page",
@@ -733444,827 +774854,1517 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Find repositories via various criteria. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
\nThis query searches for repositories with the word tetris in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
",
+ "descriptionHTML": "Returns all active rules that apply to the specified branch. The branch does not need to exist; rules that would apply\nto a branch with that name will be returned. All active rules that apply will be returned, regardless of the level\nat which they are configured (e.g. repository or organization). Rules in rulesets with \"evaluate\" or \"disabled\"\nenforcement statuses are not returned.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "branch": "BRANCH"
+ }
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "total_count": 40,
- "incomplete_results": false,
- "items": [
- {
- "id": 3081286,
- "node_id": "MDEwOlJlcG9zaXRvcnkzMDgxMjg2",
- "name": "Tetris",
- "full_name": "dtrupenn/Tetris",
- "owner": {
- "login": "dtrupenn",
- "id": 872147,
- "node_id": "MDQ6VXNlcjg3MjE0Nw==",
- "avatar_url": "https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/dtrupenn",
- "received_events_url": "https://api.github.com/users/dtrupenn/received_events",
- "type": "User",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "site_admin": true
- },
- "private": false,
- "html_url": "https://github.com/dtrupenn/Tetris",
- "description": "A C implementation of Tetris using Pennsim through LC4",
- "fork": false,
- "url": "https://api.github.com/repos/dtrupenn/Tetris",
- "created_at": "2012-01-01T00:31:50Z",
- "updated_at": "2013-01-05T17:58:47Z",
- "pushed_at": "2012-01-01T00:37:02Z",
- "homepage": "https://github.com",
- "size": 524,
- "stargazers_count": 1,
- "watchers_count": 1,
- "language": "Assembly",
- "forks_count": 0,
- "open_issues_count": 0,
- "master_branch": "master",
- "default_branch": "master",
- "score": 1,
- "archive_url": "https://api.github.com/repos/dtrupenn/Tetris/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/dtrupenn/Tetris/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/dtrupenn/Tetris/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/dtrupenn/Tetris/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/dtrupenn/Tetris/comments{/number}",
- "commits_url": "https://api.github.com/repos/dtrupenn/Tetris/commits{/sha}",
- "compare_url": "https://api.github.com/repos/dtrupenn/Tetris/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/dtrupenn/Tetris/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/dtrupenn/Tetris/contributors",
- "deployments_url": "https://api.github.com/repos/dtrupenn/Tetris/deployments",
- "downloads_url": "https://api.github.com/repos/dtrupenn/Tetris/downloads",
- "events_url": "https://api.github.com/repos/dtrupenn/Tetris/events",
- "forks_url": "https://api.github.com/repos/dtrupenn/Tetris/forks",
- "git_commits_url": "https://api.github.com/repos/dtrupenn/Tetris/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/dtrupenn/Tetris/git/tags{/sha}",
- "git_url": "git:github.com/dtrupenn/Tetris.git",
- "issue_comment_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/dtrupenn/Tetris/issues{/number}",
- "keys_url": "https://api.github.com/repos/dtrupenn/Tetris/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/dtrupenn/Tetris/labels{/name}",
- "languages_url": "https://api.github.com/repos/dtrupenn/Tetris/languages",
- "merges_url": "https://api.github.com/repos/dtrupenn/Tetris/merges",
- "milestones_url": "https://api.github.com/repos/dtrupenn/Tetris/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/dtrupenn/Tetris/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/dtrupenn/Tetris/pulls{/number}",
- "releases_url": "https://api.github.com/repos/dtrupenn/Tetris/releases{/id}",
- "ssh_url": "git@github.com:dtrupenn/Tetris.git",
- "stargazers_url": "https://api.github.com/repos/dtrupenn/Tetris/stargazers",
- "statuses_url": "https://api.github.com/repos/dtrupenn/Tetris/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/dtrupenn/Tetris/subscribers",
- "subscription_url": "https://api.github.com/repos/dtrupenn/Tetris/subscription",
- "tags_url": "https://api.github.com/repos/dtrupenn/Tetris/tags",
- "teams_url": "https://api.github.com/repos/dtrupenn/Tetris/teams",
- "trees_url": "https://api.github.com/repos/dtrupenn/Tetris/git/trees{/sha}",
- "clone_url": "https://github.com/dtrupenn/Tetris.git",
- "mirror_url": "git:git.example.com/dtrupenn/Tetris",
- "hooks_url": "https://api.github.com/repos/dtrupenn/Tetris/hooks",
- "svn_url": "https://svn.github.com/dtrupenn/Tetris",
- "forks": 1,
- "open_issues": 1,
- "watchers": 1,
- "has_issues": true,
- "has_projects": true,
- "has_pages": true,
- "has_wiki": true,
- "has_downloads": true,
- "archived": true,
- "disabled": true,
- "visibility": "private",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- }
+ "example": [
+ {
+ "type": "commit_message_pattern",
+ "ruleset_source_type": "Repository",
+ "ruleset_source": "monalisa/my-repo",
+ "ruleset_id": 42,
+ "parameters": {
+ "operator": "starts_with",
+ "pattern": "issue"
}
- ]
- },
+ },
+ {
+ "type": "commit_author_email_pattern",
+ "ruleset_source_type": "Organization",
+ "ruleset_source": "my-org",
+ "ruleset_id": 73,
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
"schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "Repo Search Result Item",
- "description": "Repo Search Result Item",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule with ruleset details.",
+ "oneOf": [
+ {
+ "allOf": [
+ {
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "creation"
+ ]
+ }
+ }
},
- "node_id": {
- "type": "string"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "update"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
+ ]
+ }
+ }
},
- "name": {
- "type": "string"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "deletion"
+ ]
+ }
+ }
},
- "full_name": {
- "type": "string"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ }
},
- "owner": {
- "anyOf": [
- {
- "type": "null"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
},
- "login": {
+ "grouping_strategy": {
"type": "string",
- "examples": [
- "octocat"
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
]
},
- "id": {
+ "max_entries_to_build": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "avatar_url": {
+ "merge_method": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
+ },
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
- "following_url": {
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
+ },
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
+ },
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
+ },
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
+ }
+ },
+ "required": [
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
+ "description": "How this rule will appear to users."
},
- "gists_url": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "starred_url": {
+ "pattern": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "subscriptions_url": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "organizations_url": {
+ "pattern": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "repos_url": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "events_url": {
+ "pattern": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "received_events_url": {
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "type": {
+ "pattern": {
"type": "string",
- "examples": [
- "User"
- ]
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
},
- "site_admin": {
- "type": "boolean"
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
},
- "starred_at": {
+ "operator": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
},
- "user_view_type": {
+ "pattern": {
"type": "string",
- "examples": [
- "public"
- ]
+ "description": "The pattern to match with."
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "operator",
+ "pattern"
]
}
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time"
+ }
},
- "homepage": {
- "type": [
- "string",
- "null"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
],
- "format": "uri"
- },
- "size": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "default_branch": {
- "type": "string"
- },
- "score": {
- "type": "number"
- },
- "forks_url": {
- "type": "string",
- "format": "uri"
- },
- "keys_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string",
- "format": "uri"
- },
- "hooks_url": {
- "type": "string",
- "format": "uri"
- },
- "issue_events_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string",
- "format": "uri"
- },
- "assignees_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string",
- "format": "uri"
- },
- "blobs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string",
- "format": "uri"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri"
- },
- "contributors_url": {
- "type": "string",
- "format": "uri"
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri"
- },
- "subscription_url": {
- "type": "string",
- "format": "uri"
- },
- "commits_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string",
- "format": "uri"
- },
- "archive_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string",
- "format": "uri"
- },
- "issues_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string",
- "format": "uri"
- },
- "git_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string",
- "format": "uri"
- },
- "forks": {
- "type": "integer"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_paths"
+ ]
+ }
+ }
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
+ }
+ },
+ "required": [
+ "max_file_path_length"
+ ]
+ }
}
},
- "mirror_url": {
- "type": [
- "string",
- "null"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
],
- "format": "uri"
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string"
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
+ ]
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "parameters": {
"type": "object",
"properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "restricted_file_extensions"
]
}
- ]
+ }
},
- "permissions": {
- "type": "object",
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
"properties": {
- "admin": {
- "type": "boolean"
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
},
- "maintain": {
- "type": "boolean"
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
},
- "push": {
- "type": "boolean"
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
+ ]
},
- "triage": {
- "type": "boolean"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
+ }
+ },
+ "required": [
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
},
- "pull": {
- "type": "boolean"
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
}
- },
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
"required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "object_url": {
- "type": "string"
- },
- "object_type": {
- "type": [
- "string",
- "null"
- ]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
}
- }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
}
}
- }
+ },
+ "required": [
+ "workflows"
+ ]
}
}
},
- "temp_clone_token": {
- "type": "string"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_auto_merge": {
- "type": "boolean"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "allow_forking": {
- "type": "boolean"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
+ }
+ },
+ "required": [
+ "code_scanning_tools"
+ ]
+ }
+ }
},
- "is_template": {
- "type": "boolean"
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
+ }
+ }
},
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
+ {
+ "title": "repository ruleset data for rule",
+ "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values.",
+ "properties": {
+ "ruleset_source_type": {
+ "type": "string",
+ "description": "The type of source for the ruleset that includes this rule.",
+ "enum": [
+ "Repository",
+ "Organization"
+ ]
+ },
+ "ruleset_source": {
+ "type": "string",
+ "description": "The name of the source of the ruleset that includes this rule."
+ },
+ "ruleset_id": {
+ "type": "integer",
+ "description": "The ID of the ruleset that includes this rule."
+ }
+ }
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at",
- "score"
]
}
- }
+ ]
}
}
}
@@ -734274,18 +776374,6 @@
{
"httpStatusCode": "200",
"description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
}
],
"previews": [],
@@ -734293,23 +776381,35 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
"allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/search/topics",
- "title": "Search topics",
- "category": "search",
- "subcategory": "search",
+ "requestPath": "/repos/{owner}/{repo}/rulesets",
+ "title": "Get all repository rulesets",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
- "name": "q",
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query .
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
@@ -734332,300 +776432,1407 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "includes_parents",
+ "description": "Include rulesets configured at higher levels that apply to this repository
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": true
+ }
+ },
+ {
+ "name": "targets",
+ "description": "A comma-separated list of rule targets to filter by.\nIf provided, only rulesets that apply to the specified targets will be returned.\nFor example, branch,tag,push.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "examples": [
+ "branch,tag,push"
+ ]
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page . See \"Searching topics \" for a detailed list of qualifiers.
\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 .
\nFor example, if you want to search for topics related to Ruby that are featured on https://github.com/topics . Your query might look like this:
\nq=ruby+is:featured
\nThis query searches for topics with the keyword ruby and limits 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.
",
+ "descriptionHTML": "Get all the rulesets for a repository.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "total_count": 6,
- "incomplete_results": false,
- "items": [
- {
- "name": "ruby",
- "display_name": "Ruby",
- "short_description": "Ruby is a scripting language designed for simplified object-oriented programming.",
- "description": "Ruby was developed by Yukihiro \"Matz\" Matsumoto in 1995 with the intent of having an easily readable programming language. It is integrated with the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.",
- "created_by": "Yukihiro Matsumoto",
- "released": "December 21, 1995",
- "created_at": "2016-11-28T22:03:59Z",
- "updated_at": "2017-10-30T18:16:32Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "rails",
- "display_name": "Rails",
- "short_description": "Ruby on Rails (Rails) is a web application framework written in Ruby.",
- "description": "Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.",
- "created_by": "David Heinemeier Hansson",
- "released": "December 13 2005",
- "created_at": "2016-12-09T17:03:50Z",
- "updated_at": "2017-10-30T16:20:19Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "python",
- "display_name": "Python",
- "short_description": "Python is a dynamically typed programming language.",
- "description": "Python is a dynamically typed programming language designed by Guido Van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.",
- "created_by": "Guido van Rossum",
- "released": "February 20, 1991",
- "created_at": "2016-12-07T00:07:02Z",
- "updated_at": "2017-10-27T22:45:43Z",
- "featured": true,
- "curated": true,
- "score": 1
- },
- {
- "name": "jekyll",
- "display_name": "Jekyll",
- "short_description": "Jekyll is a simple, blog-aware static site generator.",
- "description": "Jekyll is a blog-aware, site generator written in Ruby. It takes raw text files, runs it through a renderer and produces a publishable static website.",
- "created_by": "Tom Preston-Werner",
- "released": "2008",
- "created_at": "2016-12-16T21:53:08Z",
- "updated_at": "2017-10-27T19:00:24Z",
- "featured": true,
- "curated": true,
- "score": 1
+ "example": [
+ {
+ "id": 42,
+ "name": "super cool ruleset",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "enabled",
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
+ },
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
},
- {
- "name": "sass",
- "display_name": "Sass",
- "short_description": "Sass is a stable extension to classic CSS.",
- "description": "Sass is a stylesheet language with a main implementation in Ruby. It is an extension of CSS that makes improvements to the old stylesheet format, such as being able to declare variables and using a cleaner nesting syntax.",
- "created_by": "Hampton Catlin, Natalie Weizenbaum, Chris Eppstein",
- "released": "November 28, 2006",
- "created_at": "2016-12-16T21:53:45Z",
- "updated_at": "2018-01-16T16:30:40Z",
- "featured": true,
- "curated": true,
- "score": 1
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ {
+ "id": 314,
+ "name": "Another ruleset",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "enabled",
+ "node_id": "RRS_lACkVXNlcgQQ",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/314"
+ },
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/314"
+ }
},
- {
- "name": "homebrew",
- "display_name": "Homebrew",
- "short_description": "Homebrew is a package manager for macOS.",
- "description": "Homebrew is a package manager for Apple's macOS operating system. It simplifies the installation of software and is popular in the Ruby on Rails community.",
- "created_by": "Max Howell",
- "released": "2009",
- "created_at": "2016-12-17T20:30:44Z",
- "updated_at": "2018-02-06T16:14:56Z",
- "featured": true,
- "curated": true,
- "score": 1
- }
- ]
- },
+ "created_at": "2023-08-15T08:43:03Z",
+ "updated_at": "2023-09-23T16:29:47Z"
+ }
+ ],
"schema": {
- "type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
- },
- "incomplete_results": {
- "type": "boolean"
- },
- "items": {
- "type": "array",
- "items": {
- "title": "Topic Search Result Item",
- "description": "Topic Search Result Item",
+ "type": "array",
+ "items": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
+ },
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
+ },
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
+ },
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
+ "type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
+ "properties": {
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
+ },
+ "actor_type": {
+ "type": "string",
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey",
+ "EnterpriseOwner"
+ ],
+ "description": "The type of actor that can bypass a ruleset"
+ },
+ "bypass_mode": {
+ "type": "string",
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
"type": "object",
"properties": {
- "name": {
- "type": "string"
- },
- "display_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "short_description": {
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "created_by": {
- "type": [
- "string",
- "null"
- ]
- },
- "released": {
- "type": [
- "string",
- "null"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "featured": {
- "type": "boolean"
- },
- "curated": {
- "type": "boolean"
- },
- "score": {
- "type": "number"
- },
- "repository_count": {
- "type": [
- "integer",
- "null"
- ]
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
+ }
},
- "logo_url": {
+ "html": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "uri"
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
},
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
+ {
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "object_url": {
- "type": "string"
+ "type": {
+ "type": "string",
+ "enum": [
+ "creation"
+ ]
+ }
+ }
+ },
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "update"
+ ]
},
- "object_type": {
- "type": [
- "string",
- "null"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
+ ]
+ }
+ }
+ },
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "deletion"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ }
+ },
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
]
},
- "property": {
- "type": "string"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
+ "type": "string",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
+ },
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_deployments"
+ ]
},
- "fragment": {
- "type": "string"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ }
+ },
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
+ },
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
+ },
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
+ },
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
+ },
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
+ },
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
+ },
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
+ }
+ },
+ "required": [
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_paths"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
+ }
+ },
+ "required": [
+ "max_file_path_length"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_extensions"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
+ }
+ },
+ "required": [
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
+ ]
},
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
}
}
- }
+ },
+ "required": [
+ "workflows"
+ ]
}
}
- }
- },
- "related": {
- "type": [
- "array",
- "null"
- ],
- "items": {
+ },
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "topic_relation": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "topic_id": {
- "type": "integer"
- },
- "relation_type": {
- "type": "string"
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
}
- }
+ },
+ "required": [
+ "code_scanning_tools"
+ ]
}
}
- }
- },
- "aliases": {
- "type": [
- "array",
- "null"
- ],
- "items": {
+ },
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "topic_relation": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "topic_id": {
- "type": "integer"
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
},
- "relation_type": {
- "type": "string"
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
}
}
}
}
}
- }
- },
- "required": [
- "name",
- "display_name",
- "short_description",
- "description",
- "created_by",
- "released",
- "created_at",
- "updated_at",
- "featured",
- "curated",
- "score"
- ]
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
}
@@ -734639,8 +777846,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -734648,2492 +777859,2450 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
"allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/search/users",
- "title": "Search users",
- "category": "search",
- "subcategory": "search",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/rulesets",
+ "title": "Create a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
- "name": "q",
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching users \" for a detailed list of qualifiers.
",
- "in": "query",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "sort",
- "description": "Sorts the results of your query by number of followers or repositories, or when the person joined GitHub Enterprise Cloud. Default: best match
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "followers",
- "repositories",
- "joined"
- ]
+ "type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the ruleset.
",
+ "isRequired": true
},
{
- "name": "order",
- "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.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- }
+ "type": "string",
+ "name": "target",
+ "in": "body",
+ "description": "The target of the ruleset
",
+ "enum": [
+ "branch",
+ "tag",
+ "push"
+ ],
+ "default": "branch"
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "string",
+ "name": "enforcement",
+ "in": "body",
+ "description": "The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate is not available for the repository target.
",
+ "isRequired": true,
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page .
\nWhen searching for users, you can get text match metadata for the issue login , public email , and name fields when you pass the text-match media type. For more details about highlighting search results, see Text match metadata . For more details about how to receive highlighted search results, see Text match metadata .
\nFor example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
\nThis query searches for users with the name tom. The results are restricted to users with more than 42 repositories and over 1,000 followers.
\nThis endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries .\"
",
- "codeExamples": [
+ "type": "array of objects",
+ "name": "bypass_actors",
+ "in": "body",
+ "description": "The actors that can bypass the rules in this ruleset
",
+ "childParamsGroups": [
+ {
+ "type": "integer or null",
+ "name": "actor_id",
+ "description": "The ID of the actor that can bypass a ruleset. Required for Integration, RepositoryRole, and Team actor types. If actor_type is OrganizationAdmin, this should be 1. If actor_type is DeployKey, this should be null. If actor_type is EnterpriseOwner, actor_id is ignored. OrganizationAdmin and EnterpriseOwner are not applicable for personal repositories.
"
+ },
+ {
+ "type": "string",
+ "name": "actor_type",
+ "description": "The type of actor that can bypass a ruleset
",
+ "isRequired": true,
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey",
+ "EnterpriseOwner"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "bypass_mode",
+ "description": "When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. pull_request is not applicable for the DeployKey actor type. Also, pull_request is only applicable to branch rulesets. When bypass_mode is exempt, rules will not be run for that actor and a bypass audit entry will not be created.
",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ ]
+ },
{
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "total_count": 12,
- "incomplete_results": false,
- "items": [
+ "type": "object",
+ "name": "conditions",
+ "in": "body",
+ "description": "Parameters for a repository ruleset ref name condition
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "ref_name",
+ "description": "",
+ "childParamsGroups": [
{
- "login": "mojombo",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
- "gravatar_id": "",
- "url": "https://api.github.com/users/mojombo",
- "html_url": "https://github.com/mojombo",
- "followers_url": "https://api.github.com/users/mojombo/followers",
- "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
- "organizations_url": "https://api.github.com/users/mojombo/orgs",
- "repos_url": "https://api.github.com/users/mojombo/repos",
- "received_events_url": "https://api.github.com/users/mojombo/received_events",
- "type": "User",
- "score": 1,
- "following_url": "https://api.github.com/users/mojombo/following{/other_user}",
- "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
- "events_url": "https://api.github.com/users/mojombo/events{/privacy}",
- "site_admin": true
+ "type": "array of strings",
+ "name": "include",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "exclude",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "rules",
+ "in": "body",
+ "description": "An array of rules within the ruleset.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "creation"
+ ]
}
]
},
- "schema": {
+ {
"type": "object",
- "required": [
- "total_count",
- "incomplete_results",
- "items"
- ],
- "properties": {
- "total_count": {
- "type": "integer"
+ "name": "update",
+ "description": "Only allow users with bypass permission to update matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "update"
+ ]
},
- "incomplete_results": {
- "type": "boolean"
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "update_allows_fetch_and_merge",
+ "description": "Branch can pull changes from its upstream repository
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "deletion"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "merge_queue",
+ "description": "Merges must be performed via a merge queue.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "merge_queue"
+ ]
},
- "items": {
- "type": "array",
- "items": {
- "title": "User Search Result Item",
- "description": "User Search Result Item",
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string",
- "format": "uri"
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- },
- "followers_url": {
- "type": "string",
- "format": "uri"
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri"
- },
- "organizations_url": {
- "type": "string",
- "format": "uri"
- },
- "repos_url": {
- "type": "string",
- "format": "uri"
- },
- "received_events_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "type": "string"
- },
- "score": {
- "type": "number"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "public_repos": {
- "type": "integer"
- },
- "public_gists": {
- "type": "integer"
- },
- "followers": {
- "type": "integer"
- },
- "following": {
- "type": "integer"
- },
- "created_at": {
- "type": "string",
- "format": "date-time"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "bio": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email"
- },
- "location": {
- "type": [
- "string",
- "null"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "hireable": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "text_matches": {
- "title": "Search Result Text Matches",
- "type": "array",
- "items": {
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "check_response_timeout_minutes",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "grouping_strategy",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
",
+ "isRequired": true,
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_build",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_merge",
+ "description": "The maximum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "merge_method",
+ "description": "Method to use when merging changes from queued pull requests.
",
+ "isRequired": true,
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge",
+ "description": "The minimum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge_wait_minutes",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "required_deployment_environments",
+ "description": "The environments that must be successfully deployed to before branches can be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "pull_request"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "allowed_merge_methods",
+ "description": "Array of allowed merge methods. Allowed values include merge, squash, and rebase. At least one option must be enabled.\nSupported values are: merge, squash, rebase
"
+ },
+ {
+ "type": "boolean",
+ "name": "dismiss_stale_reviews_on_push",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_code_owner_review",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_last_push_approval",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "required_approving_review_count",
+ "description": "The number of approving reviews that are required before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "required_review_thread_resolution",
+ "description": "All conversations on code must be resolved before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects",
+ "name": "required_reviewers",
+ "description": " Note
\n
\nrequired_reviewers is in beta and subject to change.
\n
\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "file_patterns",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "minimum_approvals",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
",
+ "isRequired": true
+ },
+ {
"type": "object",
- "properties": {
- "object_url": {
- "type": "string"
+ "name": "reviewer",
+ "description": "A required reviewing team
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "id",
+ "description": "ID of the reviewer which must review changes to matching files.
",
+ "isRequired": true
},
- "object_type": {
- "type": [
- "string",
- "null"
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of the reviewer
",
+ "isRequired": true,
+ "enum": [
+ "Team"
]
- },
- "property": {
- "type": "string"
- },
- "fragment": {
- "type": "string"
- },
- "matches": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string"
- },
- "indices": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
}
- }
+ ]
}
- },
- "blog": {
- "type": [
- "string",
- "null"
- ]
- },
- "company": {
- "type": [
- "string",
- "null"
- ]
- },
- "suspended_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "user_view_type": {
- "type": "string"
- }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url",
- "score"
- ]
- }
+ {
+ "type": "array of objects",
+ "name": "required_status_checks",
+ "description": "Status checks that are required.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "context",
+ "description": "The status check context name that must be present on the commit.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "integration_id",
+ "description": "The optional integration ID that this status check must originate from.
"
+ }
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "strict_required_status_checks_policy",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
",
+ "isRequired": true
+ }
+ ]
}
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "304",
- "description": "Not modified
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
- }
- }
- ]
- },
- "secret-scanning": {
- "secret-scanning": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/enterprises/{enterprise}/secret-scanning/alerts",
- "title": "List secret scanning alerts for an enterprise",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
- "parameters": [
- {
- "name": "enterprise",
- "description": "The slug version of the enterprise name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "state",
- "in": "query",
- "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- }
- },
- {
- "name": "secret_type",
- "in": "query",
- "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "resolution",
- "in": "query",
- "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "assignee",
- "in": "query",
- "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
- "required": false,
- "schema": {
- "type": "string"
- },
- "examples": {
- "assigned-to-user": {
- "value": "octocat",
- "summary": "Filter for alerts assigned to the user \"octocat\""
+ ]
},
- "all-assigned": {
- "value": "*",
- "summary": "Filter for all assigned alerts"
+ {
+ "type": "object",
+ "name": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ ]
},
- "all-unassigned": {
- "value": "none",
- "summary": "Filter for all unassigned alerts"
+ {
+ "type": "object",
+ "name": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_paths",
+ "description": "The file paths that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_path_length",
+ "description": "The maximum amount of characters allowed in file paths.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_extensions",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_size",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "workflows"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "workflows",
+ "description": "Workflows that must pass for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "path",
+ "description": "The path to the workflow file
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "ref",
+ "description": "The ref (branch or tag) of the workflow file to use
"
+ },
+ {
+ "type": "integer",
+ "name": "repository_id",
+ "description": "The ID of the repository where the workflow is defined
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "description": "The commit SHA of the workflow file to use
"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of objects",
+ "name": "code_scanning_tools",
+ "description": "Tools that must provide code scanning results for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "alerts_threshold",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "security_alerts_threshold",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "tool",
+ "description": "The name of a code scanning tool
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "review_draft_pull_requests",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review.
"
+ },
+ {
+ "type": "boolean",
+ "name": "review_on_push",
+ "description": "Copilot automatically reviews each new push to the pull request.
"
+ }
+ ]
+ }
+ ]
}
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "validity",
- "in": "query",
- "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "is_publicly_leaked",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- },
- {
- "name": "is_multi_repo",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- },
- {
- "name": "hide_secret",
- "in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
+ ],
+ "oneOfObject": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.\nTo use this endpoint, you must be a member of the enterprise, and you must use an access token with the repo scope or security_events scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager , or for repositories owned by enterprise managed users.
",
+ "descriptionHTML": "Create a ruleset for a repository.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "super cool ruleset",
+ "target": "branch",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ]
+ },
"parameters": {
- "enterprise": "ENTERPRISE"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "number": 2,
- "created_at": "2020-11-06T18:48:51Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
- "state": "resolved",
- "resolution": "false_positive",
- "resolved_at": "2020-11-07T02:47:13Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "example": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
},
- "secret_type": "adafruit_io_key",
- "secret_type_display_name": "Adafruit IO Key",
- "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ "schema": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
},
- "push_protection_bypassed_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
},
- "push_protection_bypassed": true,
- "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
- "push_protection_bypass_request_reviewer": {
- "login": "octocat",
- "id": 3,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/3?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
},
- "push_protection_bypass_request_reviewer_comment": "Example response",
- "push_protection_bypass_request_comment": "Example comment",
- "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
- "resolution_comment": "Example comment",
- "validity": "active",
- "publicly_leaked": false,
- "multi_repo": false,
- "is_base64_encoded": false,
- "first_location_detected": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
},
- "has_more_locations": true,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
+ "type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
+ "properties": {
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
+ },
+ "actor_type": {
+ "type": "string",
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey",
+ "EnterpriseOwner"
+ ],
+ "description": "The type of actor that can bypass a ruleset"
},
- {
+ "bypass_mode": {
"type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
}
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
- },
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
+ }
+ },
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "enum": [
+ "creation"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
- },
- "repository": {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
+ }
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "update"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "enum": [
+ "deletion"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "enum": [
+ "required_linear_history"
]
- },
- "events_url": {
+ }
+ }
+ },
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "enum": [
+ "merge_queue"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
+ "type": "string",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
+ },
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
]
- },
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "required_deployments"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
]
- },
- "user_view_type": {
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "public"
+ "enum": [
+ "required_signatures"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment that was optionally added when this alert was closed"
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
- ]
- },
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
},
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
},
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
},
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
},
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
]
},
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "parameters": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
},
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
},
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
]
},
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_title_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_title_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
]
},
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
]
},
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_comment_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_comment_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_title_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_title_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
]
},
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "discussion_comment_url"
+ "restricted_file_paths"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
]
},
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
}
},
"required": [
- "pull_request_title_url"
+ "max_file_path_length"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
]
},
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull_request_body_url"
+ "restricted_file_extensions"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
]
},
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
}
},
"required": [
- "pull_request_comment_url"
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
]
},
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
}
},
"required": [
- "pull_request_review_url"
+ "workflows"
+ ]
+ }
+ }
+ },
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "code_scanning"
]
},
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
}
},
"required": [
- "pull_request_review_comment_url"
+ "code_scanning_tools"
]
}
- ]
- }
- ]
- },
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "copilot_code_review"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
}
]
}
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
}
@@ -737142,37 +780311,41 @@
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
"progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/secret-scanning/alerts",
- "title": "List secret scanning alerts for an organization",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
+ "title": "Get a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -737180,165 +780353,36 @@
}
},
{
- "name": "state",
- "in": "query",
- "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- }
- },
- {
- "name": "secret_type",
- "in": "query",
- "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "resolution",
- "in": "query",
- "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "assignee",
- "in": "query",
- "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
- "required": false,
- "schema": {
- "type": "string"
- },
- "examples": {
- "assigned-to-user": {
- "value": "octocat",
- "summary": "Filter for alerts assigned to the user \"octocat\""
- },
- "all-assigned": {
- "value": "*",
- "summary": "Filter for all assigned alerts"
- },
- "all-unassigned": {
- "value": "none",
- "summary": "Filter for all unassigned alerts"
- }
- }
- },
- {
- "name": "sort",
- "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "validity",
- "in": "query",
- "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "is_publicly_leaked",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
- },
- {
- "name": "is_multi_repo",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
- "required": false,
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "boolean",
- "default": false
+ "type": "integer"
}
},
{
- "name": "hide_secret",
+ "name": "includes_parents",
+ "description": "Include rulesets configured at higher levels that apply to this repository
",
"in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
"required": false,
"schema": {
"type": "boolean",
- "default": false
+ "default": true
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
\nThe authenticated user must be an administrator or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Get a ruleset for a repository.
\nNote: To prevent leaking sensitive information, the bypass_actors property is only returned if the user\nmaking the API request has write access to the ruleset.
",
"codeExamples": [
{
"key": "default",
@@ -737346,1942 +780390,4100 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "number": 2,
- "created_at": "2020-11-06T18:48:51Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
- "state": "resolved",
- "resolution": "false_positive",
- "resolved_at": "2020-11-07T02:47:13Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "example": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
},
- "secret_type": "adafruit_io_key",
- "secret_type_display_name": "Adafruit IO Key",
- "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ "schema": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
},
- "push_protection_bypassed_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
},
- "push_protection_bypassed": true,
- "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
- "push_protection_bypass_request_reviewer": {
- "login": "octocat",
- "id": 3,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/3?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
},
- "push_protection_bypass_request_reviewer_comment": "Example response",
- "push_protection_bypass_request_comment": "Example comment",
- "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
- "resolution_comment": "Example comment",
- "validity": "active",
- "publicly_leaked": false,
- "multi_repo": false,
- "is_base64_encoded": false,
- "first_location_detected": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
},
- "has_more_locations": true,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
+ "type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
+ "properties": {
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
},
- {
+ "actor_type": {
"type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey",
+ "EnterpriseOwner"
+ ],
+ "description": "The type of actor that can bypass a ruleset"
},
+ "bypass_mode": {
+ "type": "string",
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
+ }
+ },
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
+ "type": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
+ "enum": [
+ "creation"
]
- },
- "avatar_url": {
+ }
+ }
+ },
+ {
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "enum": [
+ "update"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
]
- },
- "url": {
+ }
+ }
+ },
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
+ "enum": [
+ "deletion"
]
- },
- "html_url": {
+ }
+ }
+ },
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
+ "enum": [
+ "required_linear_history"
]
- },
- "followers_url": {
+ }
+ }
+ },
+ {
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
+ "enum": [
+ "merge_queue"
]
},
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
+ "type": "string",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "merge_method": {
+ "type": "string",
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
+ }
+ },
+ "required": [
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
]
- },
- "gists_url": {
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "enum": [
+ "required_deployments"
]
},
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
]
- },
- "subscriptions_url": {
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "enum": [
+ "required_signatures"
]
- },
- "organizations_url": {
+ }
+ }
+ },
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "enum": [
+ "pull_request"
]
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
+ },
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
+ },
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
+ },
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
+ },
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
+ },
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
+ },
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
+ }
+ },
+ "required": [
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
]
- },
- "events_url": {
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "enum": [
+ "required_status_checks"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
+ }
+ },
+ "required": [
+ "required_status_checks",
+ "strict_required_status_checks_policy"
]
- },
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "non_fast_forward"
]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "commit_message_pattern"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
- },
- "repository": {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
+ "type": {
"type": "string",
- "examples": [
- "octocat"
+ "enum": [
+ "commit_author_email_pattern"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "node_id": {
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
+ "enum": [
+ "committer_email_pattern"
]
},
- "avatar_url": {
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "enum": [
+ "branch_name_pattern"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "url": {
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
+ "enum": [
+ "tag_name_pattern"
]
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
+ }
+ },
+ "required": [
+ "operator",
+ "pattern"
]
- },
- "followers_url": {
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
+ "enum": [
+ "file_path_restriction"
]
},
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_paths"
]
- },
- "gists_url": {
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "enum": [
+ "max_file_path_length"
]
},
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
+ }
+ },
+ "required": [
+ "max_file_path_length"
]
- },
- "subscriptions_url": {
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "enum": [
+ "file_extension_restriction"
]
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "restricted_file_extensions"
]
- },
- "repos_url": {
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
+ "enum": [
+ "max_file_size"
]
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
+ }
+ },
+ "required": [
+ "max_file_size"
]
- },
- "received_events_url": {
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "enum": [
+ "workflows"
]
},
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
+ }
+ },
+ "required": [
+ "workflows"
+ ]
+ }
+ }
+ },
+ {
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "code_scanning"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
+ }
+ },
+ "required": [
+ "code_scanning_tools"
]
- },
- "user_view_type": {
+ }
+ }
+ },
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "public"
+ "enum": [
+ "copilot_code_review"
]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
}
+ }
+ }
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Metadata\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
+ "title": "Update a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the ruleset.
"
+ },
+ {
+ "type": "string",
+ "name": "target",
+ "in": "body",
+ "description": "The target of the ruleset
",
+ "enum": [
+ "branch",
+ "tag",
+ "push"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "enforcement",
+ "in": "body",
+ "description": "The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate is not available for the repository target.
",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "bypass_actors",
+ "in": "body",
+ "description": "The actors that can bypass the rules in this ruleset
",
+ "childParamsGroups": [
+ {
+ "type": "integer or null",
+ "name": "actor_id",
+ "description": "The ID of the actor that can bypass a ruleset. Required for Integration, RepositoryRole, and Team actor types. If actor_type is OrganizationAdmin, this should be 1. If actor_type is DeployKey, this should be null. If actor_type is EnterpriseOwner, actor_id is ignored. OrganizationAdmin and EnterpriseOwner are not applicable for personal repositories.
"
+ },
+ {
+ "type": "string",
+ "name": "actor_type",
+ "description": "The type of actor that can bypass a ruleset
",
+ "isRequired": true,
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey",
+ "EnterpriseOwner"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "bypass_mode",
+ "description": "When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. pull_request is not applicable for the DeployKey actor type. Also, pull_request is only applicable to branch rulesets. When bypass_mode is exempt, rules will not be run for that actor and a bypass audit entry will not be created.
",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "conditions",
+ "in": "body",
+ "description": "Parameters for a repository ruleset ref name condition
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "ref_name",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "include",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~DEFAULT_BRANCH to include the default branch or ~ALL to include all branches.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "exclude",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "rules",
+ "in": "body",
+ "description": "An array of rules within the ruleset.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "creation"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "update",
+ "description": "Only allow users with bypass permission to update matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "update"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "update_allows_fetch_and_merge",
+ "description": "Branch can pull changes from its upstream repository
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "deletion"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_linear_history"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "merge_queue",
+ "description": "Merges must be performed via a merge queue.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "check_response_timeout_minutes",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "grouping_strategy",
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.
",
+ "isRequired": true,
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_build",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "max_entries_to_merge",
+ "description": "The maximum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "merge_method",
+ "description": "Method to use when merging changes from queued pull requests.
",
+ "isRequired": true,
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
+ ]
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge",
+ "description": "The minimum number of PRs that will be merged together in a group.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "min_entries_to_merge_wait_minutes",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_deployments"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "required_deployment_environments",
+ "description": "The environments that must be successfully deployed to before branches can be merged.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "pull_request"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "allowed_merge_methods",
+ "description": "Array of allowed merge methods. Allowed values include merge, squash, and rebase. At least one option must be enabled.\nSupported values are: merge, squash, rebase
"
+ },
+ {
+ "type": "boolean",
+ "name": "dismiss_stale_reviews_on_push",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_code_owner_review",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "require_last_push_approval",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "required_approving_review_count",
+ "description": "The number of approving reviews that are required before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "required_review_thread_resolution",
+ "description": "All conversations on code must be resolved before a pull request can be merged.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects",
+ "name": "required_reviewers",
+ "description": " Note
\n
\nrequired_reviewers is in beta and subject to change.
\n
\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "file_patterns",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
",
+ "isRequired": true
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ {
+ "type": "integer",
+ "name": "minimum_approvals",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
",
+ "isRequired": true
+ },
+ {
+ "type": "object",
+ "name": "reviewer",
+ "description": "A required reviewing team
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "id",
+ "description": "ID of the reviewer which must review changes to matching files.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of the reviewer
",
+ "isRequired": true,
+ "enum": [
+ "Team"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "required_status_checks"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "required_status_checks",
+ "description": "Status checks that are required.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "context",
+ "description": "The status check context name that must be present on the commit.
",
+ "isRequired": true
+ },
+ {
+ "type": "integer",
+ "name": "integration_id",
+ "description": "The optional integration ID that this status check must originate from.
"
+ }
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "strict_required_status_checks_policy",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_message_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "commit_author_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "committer_email_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "branch_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "tag_name_pattern"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "name",
+ "description": "How this rule will appear to users.
"
+ },
+ {
+ "type": "boolean",
+ "name": "negate",
+ "description": "If true, the rule will fail if the pattern matches.
"
+ },
+ {
+ "type": "string",
+ "name": "operator",
+ "description": "The operator to use for matching.
",
+ "isRequired": true,
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "pattern",
+ "description": "The pattern to match with.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_path_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_paths",
+ "description": "The file paths that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_path_length"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_path_length",
+ "description": "The maximum amount of characters allowed in file paths.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "file_extension_restriction"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of strings",
+ "name": "restricted_file_extensions",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "max_file_size"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "integer",
+ "name": "max_file_size",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "workflows"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "do_not_enforce_on_create",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "workflows",
+ "description": "Workflows that must pass for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "path",
+ "description": "The path to the workflow file
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "ref",
+ "description": "The ref (branch or tag) of the workflow file to use
"
+ },
+ {
+ "type": "integer",
+ "name": "repository_id",
+ "description": "The ID of the repository where the workflow is defined
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "sha",
+ "description": "The commit SHA of the workflow file to use
"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "code_scanning"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "array of objects",
+ "name": "code_scanning_tools",
+ "description": "Tools that must provide code scanning results for this rule to pass.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "alerts_threshold",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "security_alerts_threshold",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"About code scanning alerts .\"
",
+ "isRequired": true,
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "tool",
+ "description": "The name of a code scanning tool
",
+ "isRequired": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "copilot_code_review"
+ ]
+ },
+ {
+ "type": "object",
+ "name": "parameters",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "boolean",
+ "name": "review_draft_pull_requests",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review.
"
+ },
+ {
+ "type": "boolean",
+ "name": "review_on_push",
+ "description": "Copilot automatically reviews each new push to the pull request.
"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "oneOfObject": true
+ }
+ ],
+ "descriptionHTML": "Update a ruleset for a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "super cool ruleset",
+ "target": "branch",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ],
+ "node_id": "RRS_lACkVXNlcgQB",
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/monalisa/my-repo/rulesets/42"
+ },
+ "html": {
+ "href": "https://github.com/monalisa/my-repo/rules/42"
+ }
+ },
+ "created_at": "2023-07-15T08:43:03Z",
+ "updated_at": "2023-08-23T16:29:47Z"
+ },
+ "schema": {
+ "title": "Repository ruleset",
+ "type": "object",
+ "description": "A set of rules to apply when specified conditions are met.",
+ "required": [
+ "id",
+ "name",
+ "source",
+ "enforcement"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the ruleset"
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the ruleset"
+ },
+ "target": {
+ "type": "string",
+ "description": "The target of the ruleset",
+ "enum": [
+ "branch",
+ "tag",
+ "push",
+ "repository"
+ ]
+ },
+ "source_type": {
+ "type": "string",
+ "description": "The type of the source of the ruleset",
+ "enum": [
+ "Repository",
+ "Organization",
+ "Enterprise"
+ ]
+ },
+ "source": {
+ "type": "string",
+ "description": "The name of the source"
+ },
+ "enforcement": {
+ "type": "string",
+ "description": "The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.",
+ "enum": [
+ "disabled",
+ "active",
+ "evaluate"
+ ]
+ },
+ "bypass_actors": {
+ "type": "array",
+ "description": "The actors that can bypass the rules in this ruleset",
+ "items": {
+ "title": "Repository Ruleset Bypass Actor",
+ "type": "object",
+ "description": "An actor that can bypass rules in a ruleset",
+ "required": [
+ "actor_type"
+ ],
+ "properties": {
+ "actor_id": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "description": "The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, and `Team` actor types. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories."
},
- "trees_url": {
+ "actor_type": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ "enum": [
+ "Integration",
+ "OrganizationAdmin",
+ "RepositoryRole",
+ "Team",
+ "DeployKey",
+ "EnterpriseOwner"
+ ],
+ "description": "The type of actor that can bypass a ruleset"
},
- "hooks_url": {
+ "bypass_mode": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
+ "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.",
+ "enum": [
+ "always",
+ "pull_request",
+ "exempt"
+ ],
+ "default": "always"
+ }
+ }
+ }
+ },
+ "current_user_can_bypass": {
+ "type": "string",
+ "description": "The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.",
+ "enum": [
+ "always",
+ "pull_requests_only",
+ "never",
+ "exempt"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "_links": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "object",
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The URL of the ruleset"
+ }
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
- },
+ "html": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "href": {
+ "type": "string",
+ "description": "The html URL of the ruleset"
+ }
+ }
+ }
+ }
+ },
+ "conditions": {
+ "anyOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Organization ruleset conditions",
+ "type": "object",
+ "description": "Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.",
+ "oneOf": [
+ {
+ "type": "object",
+ "title": "repository_name_and_ref_name",
+ "description": "Conditions to target repositories by name and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository names",
+ "type": "object",
+ "description": "Parameters for a repository name condition",
+ "properties": {
+ "repository_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "protected": {
+ "type": "boolean",
+ "description": "Whether renaming of target repositories is prevented."
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_name"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_id_and_ref_name",
+ "description": "Conditions to target repositories by id and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository IDs",
+ "type": "object",
+ "description": "Parameters for a repository ID condition",
+ "properties": {
+ "repository_id": {
+ "type": "object",
+ "properties": {
+ "repository_ids": {
+ "type": "array",
+ "description": "The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_id"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "title": "repository_property_and_ref_name",
+ "description": "Conditions to target repositories by property and refs by name",
+ "allOf": [
+ {
+ "title": "Repository ruleset conditions for ref names",
+ "type": "object",
+ "description": "Parameters for a repository ruleset ref name condition",
+ "properties": {
+ "ref_name": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Repository ruleset conditions for repository properties",
+ "type": "object",
+ "description": "Parameters for a repository property condition",
+ "properties": {
+ "repository_property": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "The repository properties and values to include. All of these properties must match for the condition to pass.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "The repository properties and values to exclude. The condition will not pass if any of these properties match.",
+ "items": {
+ "title": "Repository ruleset property targeting definition",
+ "type": "object",
+ "description": "Parameters for a targeting a repository property",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the repository property to target"
+ },
+ "property_values": {
+ "type": "array",
+ "description": "The values to match for the repository property",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source": {
+ "type": "string",
+ "description": "The source of the repository property. Defaults to 'custom' if not specified.",
+ "enum": [
+ "custom",
+ "system"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "property_values"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "repository_property"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "rules": {
+ "type": "array",
+ "items": {
+ "title": "Repository Rule",
+ "type": "object",
+ "description": "A repository rule.",
+ "oneOf": [
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "creation",
+ "description": "Only allow users with bypass permission to create matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
+ "enum": [
+ "creation"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "update",
+ "description": "Only allow users with bypass permission to update matching refs.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "enum": [
+ "update"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "update_allows_fetch_and_merge": {
+ "type": "boolean",
+ "description": "Branch can pull changes from its upstream repository"
+ }
+ },
+ "required": [
+ "update_allows_fetch_and_merge"
]
- },
+ }
+ }
+ },
+ {
+ "title": "deletion",
+ "description": "Only allow users with bypass permissions to delete matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "deletion"
]
- },
- "user_view_type": {
+ }
+ }
+ },
+ {
+ "title": "required_linear_history",
+ "description": "Prevent merge commits from being pushed to matching refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
"type": "string",
- "examples": [
- "public"
+ "enum": [
+ "required_linear_history"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment that was optionally added when this alert was closed"
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
- ]
- },
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "title": "merge_queue",
+ "description": "Merges must be performed via a merge queue.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "merge_queue"
+ ]
+ },
+ "parameters": {
"type": "object",
"properties": {
- "path": {
+ "check_response_timeout_minutes": {
+ "type": "integer",
+ "description": "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed",
+ "minimum": 1,
+ "maximum": 360
+ },
+ "grouping_strategy": {
"type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
+ "description": "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge.",
+ "enum": [
+ "ALLGREEN",
+ "HEADGREEN"
]
},
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ "max_entries_to_build": {
+ "type": "integer",
+ "description": "Limit the number of queued pull requests requesting checks and workflow runs at the same time.",
+ "minimum": 0,
+ "maximum": 100
},
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ "max_entries_to_merge": {
+ "type": "integer",
+ "description": "The maximum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "blob_sha": {
+ "merge_method": {
"type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ "description": "Method to use when merging changes from queued pull requests.",
+ "enum": [
+ "MERGE",
+ "SQUASH",
+ "REBASE"
]
},
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "min_entries_to_merge": {
+ "type": "integer",
+ "description": "The minimum number of PRs that will be merged together in a group.",
+ "minimum": 0,
+ "maximum": 100
},
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
+ "min_entries_to_merge_wait_minutes": {
+ "type": "integer",
+ "description": "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.",
+ "minimum": 0,
+ "maximum": 360
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
+ "check_response_timeout_minutes",
+ "grouping_strategy",
+ "max_entries_to_build",
+ "max_entries_to_merge",
+ "merge_method",
+ "min_entries_to_merge",
+ "min_entries_to_merge_wait_minutes"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_deployments",
+ "description": "Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_deployments"
]
},
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "parameters": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
+ "required_deployment_environments": {
+ "type": "array",
+ "description": "The environments that must be successfully deployed to before branches can be merged.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "required_deployment_environments"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_signatures",
+ "description": "Commits pushed to matching refs must have verified signatures.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_signatures"
+ ]
+ }
+ }
+ },
+ {
+ "title": "pull_request",
+ "description": "Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "allowed_merge_methods": {
+ "type": "array",
+ "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.",
+ "items": {
+ "type": "string",
+ "enum": [
+ "merge",
+ "squash",
+ "rebase"
+ ]
+ }
},
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ "dismiss_stale_reviews_on_push": {
+ "type": "boolean",
+ "description": "New, reviewable commits pushed will dismiss previous pull request review approvals."
},
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ "require_code_owner_review": {
+ "type": "boolean",
+ "description": "Require an approving review in pull requests that modify files that have a designated code owner."
},
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
+ "require_last_push_approval": {
+ "type": "boolean",
+ "description": "Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
},
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_approving_review_count": {
+ "type": "integer",
+ "description": "The number of approving reviews that are required before a pull request can be merged.",
+ "minimum": 0,
+ "maximum": 10
},
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_review_thread_resolution": {
+ "type": "boolean",
+ "description": "All conversations on code must be resolved before a pull request can be merged."
},
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
+ "required_reviewers": {
+ "type": "array",
+ "description": "> [!NOTE]\n> `required_reviewers` is in beta and subject to change.\n\nA collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.",
+ "items": {
+ "title": "RequiredReviewerConfiguration",
+ "description": "A reviewing team, and file patterns describing which files they must approve changes to.",
+ "type": "object",
+ "properties": {
+ "file_patterns": {
+ "type": "array",
+ "description": "Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "minimum_approvals": {
+ "type": "integer",
+ "description": "Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional."
+ },
+ "reviewer": {
+ "title": "Reviewer",
+ "description": "A required reviewing team",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "ID of the reviewer which must review changes to matching files."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the reviewer",
+ "enum": [
+ "Team"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ]
+ }
+ },
+ "required": [
+ "file_patterns",
+ "minimum_approvals",
+ "reviewer"
+ ]
+ }
}
},
"required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
+ "dismiss_stale_reviews_on_push",
+ "require_code_owner_review",
+ "require_last_push_approval",
+ "required_approving_review_count",
+ "required_review_thread_resolution"
+ ]
+ }
+ }
+ },
+ {
+ "title": "required_status_checks",
+ "description": "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "required_status_checks"
]
},
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "required_status_checks": {
+ "type": "array",
+ "description": "Status checks that are required.",
+ "items": {
+ "title": "StatusCheckConfiguration",
+ "description": "Required status check",
+ "type": "object",
+ "properties": {
+ "context": {
+ "type": "string",
+ "description": "The status check context name that must be present on the commit."
+ },
+ "integration_id": {
+ "type": "integer",
+ "description": "The optional integration ID that this status check must originate from."
+ }
+ },
+ "required": [
+ "context"
+ ]
+ }
+ },
+ "strict_required_status_checks_policy": {
+ "type": "boolean",
+ "description": "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled."
}
},
"required": [
- "issue_title_url"
+ "required_status_checks",
+ "strict_required_status_checks_policy"
+ ]
+ }
+ }
+ },
+ {
+ "title": "non_fast_forward",
+ "description": "Prevent users with push access from force pushing to refs.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "non_fast_forward"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_message_pattern",
+ "description": "Parameters to be used for the commit_message_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_message_pattern"
]
},
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "commit_author_email_pattern",
+ "description": "Parameters to be used for the commit_author_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit_author_email_pattern"
]
},
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "parameters": {
"type": "object",
"properties": {
- "issue_comment_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "issue_comment_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "committer_email_pattern",
+ "description": "Parameters to be used for the committer_email_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "committer_email_pattern"
]
},
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_title_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_title_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "branch_name_pattern",
+ "description": "Parameters to be used for the branch_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "branch_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_body_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_body_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "tag_name_pattern",
+ "description": "Parameters to be used for the tag_name_pattern rule",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "tag_name_pattern"
]
},
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "parameters": {
"type": "object",
"properties": {
- "discussion_comment_url": {
+ "name": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ "description": "How this rule will appear to users."
+ },
+ "negate": {
+ "type": "boolean",
+ "description": "If true, the rule will fail if the pattern matches."
+ },
+ "operator": {
+ "type": "string",
+ "description": "The operator to use for matching.",
+ "enum": [
+ "starts_with",
+ "ends_with",
+ "contains",
+ "regex"
]
+ },
+ "pattern": {
+ "type": "string",
+ "description": "The pattern to match with."
}
},
"required": [
- "discussion_comment_url"
+ "operator",
+ "pattern"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_path_restriction",
+ "description": "Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_path_restriction"
]
},
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "restricted_file_paths": {
+ "type": "array",
+ "description": "The file paths that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull_request_title_url"
+ "restricted_file_paths"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_path_length",
+ "description": "Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_path_length"
]
},
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "max_file_path_length": {
+ "type": "integer",
+ "description": "The maximum amount of characters allowed in file paths.",
+ "minimum": 1,
+ "maximum": 32767
}
},
"required": [
- "pull_request_body_url"
+ "max_file_path_length"
+ ]
+ }
+ }
+ },
+ {
+ "title": "file_extension_restriction",
+ "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "file_extension_restriction"
]
},
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
+ "restricted_file_extensions": {
+ "type": "array",
+ "description": "The file extensions that are restricted from being pushed to the commit graph.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull_request_comment_url"
+ "restricted_file_extensions"
+ ]
+ }
+ }
+ },
+ {
+ "title": "max_file_size",
+ "description": "Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "max_file_size"
]
},
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
+ "max_file_size": {
+ "type": "integer",
+ "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
+ "minimum": 1,
+ "maximum": 100
}
},
"required": [
- "pull_request_review_url"
+ "max_file_size"
+ ]
+ }
+ }
+ },
+ {
+ "title": "workflows",
+ "description": "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "workflows"
]
},
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "parameters": {
"type": "object",
"properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
+ "do_not_enforce_on_create": {
+ "type": "boolean",
+ "description": "Allow repositories and branches to be created if a check would otherwise prohibit it."
+ },
+ "workflows": {
+ "type": "array",
+ "description": "Workflows that must pass for this rule to pass.",
+ "items": {
+ "title": "WorkflowFileReference",
+ "description": "A workflow that must run for this rule to pass",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to the workflow file"
+ },
+ "ref": {
+ "type": "string",
+ "description": "The ref (branch or tag) of the workflow file to use"
+ },
+ "repository_id": {
+ "type": "integer",
+ "description": "The ID of the repository where the workflow is defined"
+ },
+ "sha": {
+ "type": "string",
+ "description": "The commit SHA of the workflow file to use"
+ }
+ },
+ "required": [
+ "path",
+ "repository_id"
+ ]
+ }
}
},
"required": [
- "pull_request_review_comment_url"
+ "workflows"
]
}
- ]
- }
- ]
- },
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
+ }
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "code_scanning",
+ "description": "Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.",
"type": "object",
+ "required": [
+ "type"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
+ "type": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "enum": [
+ "code_scanning"
]
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "code_scanning_tools": {
+ "type": "array",
+ "description": "Tools that must provide code scanning results for this rule to pass.",
+ "items": {
+ "title": "CodeScanningTool",
+ "description": "A tool that must provide code scanning results for this rule to pass.",
+ "type": "object",
+ "properties": {
+ "alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "errors",
+ "errors_and_warnings",
+ "all"
+ ]
+ },
+ "security_alerts_threshold": {
+ "type": "string",
+ "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"",
+ "enum": [
+ "none",
+ "critical",
+ "high_or_higher",
+ "medium_or_higher",
+ "all"
+ ]
+ },
+ "tool": {
+ "type": "string",
+ "description": "The name of a code scanning tool"
+ }
+ },
+ "required": [
+ "alerts_threshold",
+ "security_alerts_threshold",
+ "tool"
+ ]
+ }
+ }
+ },
+ "required": [
+ "code_scanning_tools"
]
- },
+ }
+ }
+ },
+ {
+ "title": "copilot_code_review",
+ "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
"type": {
"type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enum": [
+ "copilot_code_review"
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "review_draft_pull_requests": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews draft pull requests before they are marked as ready for review."
+ },
+ "review_on_push": {
+ "type": "boolean",
+ "description": "Copilot automatically reviews each new push to the pull request."
+ }
+ }
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
+ }
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}",
+ "title": "Delete a repository ruleset",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Delete a ruleset for a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
+ "title": "Get repository ruleset history",
+ "category": "repos",
+ "subcategory": "rules",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get the history of a repository ruleset.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "version_id": 3,
+ "actor": {
+ "id": 1,
+ "type": "User"
+ },
+ "updated_at": "2024-010-23T16:29:47Z"
+ },
+ {
+ "version_id": 2,
+ "actor": {
+ "id": 2,
+ "type": "User"
+ },
+ "updated_at": "2024-09-23T16:29:47Z"
+ },
+ {
+ "version_id": 1,
+ "actor": {
+ "id": 1,
+ "type": "User"
+ },
+ "updated_at": "2024-08-23T16:29:47Z"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Ruleset version",
+ "type": "object",
+ "description": "The historical version of a ruleset",
+ "required": [
+ "version_id",
+ "actor",
+ "updated_at"
+ ],
+ "properties": {
+ "version_id": {
+ "type": "integer",
+ "description": "The ID of the previous version of the ruleset"
+ },
+ "actor": {
+ "type": "object",
+ "description": "The actor who updated the ruleset",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "type": {
+ "type": "string"
}
- ]
+ }
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
}
}
}
@@ -739299,8 +784501,8 @@
"description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -739310,7 +784512,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Administration\" repository permissions": "write"
}
]
}
@@ -739318,10 +784520,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts",
- "title": "List secret scanning alerts for a repository",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}",
+ "title": "Get repository ruleset version",
+ "category": "repos",
+ "subcategory": "rules",
"parameters": [
{
"name": "owner",
@@ -739342,165 +784544,548 @@
}
},
{
- "name": "state",
- "in": "query",
- "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
- "required": false,
+ "name": "ruleset_id",
+ "description": "The ID of the ruleset.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
+ "type": "integer"
}
},
{
- "name": "secret_type",
- "in": "query",
- "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
- "required": false,
+ "name": "version_id",
+ "description": "The ID of the version
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string"
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Get a version of a repository ruleset.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ruleset_id": "RULESET_ID",
+ "version_id": "VERSION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "version_id": 3,
+ "actor": {
+ "id": 1,
+ "type": "User"
+ },
+ "updated_at": "2024-010-23T16:29:47Z",
+ "state": {
+ "id": 42,
+ "name": "super cool ruleset",
+ "target": "branch",
+ "source_type": "Repository",
+ "source": "monalisa/my-repo",
+ "enforcement": "active",
+ "bypass_actors": [
+ {
+ "actor_id": 234,
+ "actor_type": "Team",
+ "bypass_mode": "always"
+ }
+ ],
+ "conditions": {
+ "ref_name": {
+ "include": [
+ "refs/heads/main",
+ "refs/heads/master"
+ ],
+ "exclude": [
+ "refs/heads/dev*"
+ ]
+ }
+ },
+ "rules": [
+ {
+ "type": "commit_author_email_pattern",
+ "parameters": {
+ "operator": "contains",
+ "pattern": "github"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "schema": {
+ "allOf": [
+ {
+ "title": "Ruleset version",
+ "type": "object",
+ "description": "The historical version of a ruleset",
+ "required": [
+ "version_id",
+ "actor",
+ "updated_at"
+ ],
+ "properties": {
+ "version_id": {
+ "type": "integer",
+ "description": "The ID of the previous version of the ruleset"
+ },
+ "actor": {
+ "type": "object",
+ "description": "The actor who updated the ruleset",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "type": {
+ "type": "string"
+ }
+ }
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "state"
+ ],
+ "properties": {
+ "state": {
+ "type": "object",
+ "description": "The state of the ruleset version"
+ }
+ }
+ }
+ ]
+ }
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "name": "resolution",
- "in": "query",
- "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
- "required": false,
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "tags": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/tags/protection",
+ "title": "Closing down - List tag protection states for a repository",
+ "category": "repos",
+ "subcategory": "tags",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "assignee",
- "in": "query",
- "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis returns the tag protection states of a repository.
\nThis information is only available to repository administrators.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
},
- "examples": {
- "assigned-to-user": {
- "value": "octocat",
- "summary": "Filter for alerts assigned to the user \"octocat\""
- },
- "all-assigned": {
- "value": "*",
- "summary": "Filter for all assigned alerts"
- },
- "all-unassigned": {
- "value": "none",
- "summary": "Filter for all unassigned alerts"
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 2,
+ "pattern": "v1.*"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Tag protection",
+ "description": "Tag protection",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "enabled": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "examples": [
+ "v1.*"
+ ]
+ }
+ },
+ "required": [
+ "pattern"
+ ]
+ }
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "name": "sort",
- "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- }
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/tags/protection",
+ "title": "Closing down - Create a tag protection state for a repository",
+ "category": "repos",
+ "subcategory": "tags",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "type": "string"
}
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 1
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "pattern",
+ "in": "body",
+ "description": "An optional glob pattern to match against when enforcing tag protection.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis creates a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "pattern": "v1.*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "enabled": true
+ },
+ "schema": {
+ "title": "Tag protection",
+ "description": "Tag protection",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "enabled": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "pattern": {
+ "type": "string",
+ "examples": [
+ "v1.*"
+ ]
+ }
+ },
+ "required": [
+ "pattern"
+ ]
+ }
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/tags/protection/{tag_protection_id}",
+ "title": "Closing down - Delete a tag protection state for a repository",
+ "category": "repos",
+ "subcategory": "tags",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "string"
}
},
{
- "name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
- "in": "query",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
- "in": "query",
- "required": false,
+ "name": "tag_protection_id",
+ "description": "The unique identifier of the tag protection.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string"
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nClosing down notice: This operation is closing down and will be removed after August 30, 2024. Use the \"Repository Rulesets \" endpoint instead.
\n
\nThis deletes a tag protection state for a repository.\nThis endpoint is only available to repository administrators.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "tag_protection_id": "TAG_PROTECTION_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "name": "validity",
- "in": "query",
- "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
- "required": false,
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "webhooks": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks",
+ "title": "List repository webhooks",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "is_publicly_leaked",
- "in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
- "required": false,
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "boolean",
- "default": false
+ "type": "string"
}
},
{
- "name": "is_multi_repo",
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
- "required": false,
"schema": {
- "type": "boolean",
- "default": false
+ "type": "integer",
+ "default": 30
}
},
{
- "name": "hide_secret",
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
- "required": false,
"schema": {
- "type": "boolean",
- "default": false
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists secret scanning alerts for an eligible repository, from newest to oldest.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Lists webhooks for a repository. last response may return null if there have not been any deliveries within 30 days.
",
"codeExamples": [
{
"key": "default",
@@ -739518,1317 +785103,203 @@
"description": "Response
",
"example": [
{
- "number": 2,
- "created_at": "2020-11-06T18:48:51Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
- "state": "resolved",
- "resolution": "false_positive",
- "resolved_at": "2020-11-07T02:47:13Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
- },
- "secret_type": "adafruit_io_key",
- "secret_type_display_name": "Adafruit IO Key",
- "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "push_protection_bypassed_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
- },
- "push_protection_bypassed": true,
- "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
- "push_protection_bypass_request_reviewer": {
- "login": "octocat",
- "id": 3,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/3?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
- },
- "push_protection_bypass_request_reviewer_comment": "Example response",
- "push_protection_bypass_request_comment": "Example comment",
- "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
- "resolution_comment": "Example comment",
- "validity": "inactive",
- "publicly_leaked": false,
- "multi_repo": false,
- "is_base64_encoded": false,
- "first_location_detected": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
},
- "has_more_locations": true,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
}
}
],
"schema": {
"type": "array",
"items": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
"type": "object",
"properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
- "url": {
- "type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
- "format": "uri",
- "description": "The REST API URL of the code locations for this alert."
- },
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
- "type": "string",
- "enum": [
- "open",
- "resolved"
- ]
- },
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
- },
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ "type": {
+ "type": "string"
},
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment to resolve an alert."
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
- },
- "secret": {
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
"type": "string",
- "description": "The secret that was detected."
- },
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
- },
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "examples": [
+ "web"
]
},
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
- },
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
- },
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
]
},
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
- },
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
- ]
- },
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
- "type": "object",
- "properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_body_url"
- ]
- },
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
- "type": "object",
- "properties": {
- "issue_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
- ]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
- ]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
- }
- },
- "required": [
- "discussion_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_title_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "pull_request_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
- },
- "required": [
- "pull_request_review_comment_url"
- ]
- }
- ]
- }
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
]
},
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
"type": "string",
+ "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.**",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "\"0\""
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ {
+ "type": "number"
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
]
}
+ }
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
+ },
+ "test_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
+ },
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
+ },
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
+ },
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
]
}
- }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
}
}
}
@@ -740841,11 +785312,7 @@
},
{
"httpStatusCode": "404",
- "description": "Repository is public or secret scanning is disabled for the repository
"
- },
- {
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -740855,18 +785322,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Webhooks\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
- "title": "Get a secret scanning alert",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks",
+ "title": "Create a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
"name": "owner",
@@ -740885,1266 +785352,907 @@
"schema": {
"type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
"
},
{
- "name": "alert_number",
- "in": "path",
- "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
- "required": true,
- "schema": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- }
+ "type": "object",
+ "name": "config",
+ "in": "body",
+ "description": "Key/value pairs to provide settings for this webhook.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "url",
+ "description": "The URL to which the payloads will be delivered.
"
+ },
+ {
+ "type": "string",
+ "name": "content_type",
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
+ },
+ {
+ "type": "string",
+ "name": "secret",
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
+ },
+ {
+ "type": "string or number",
+ "name": "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.
"
+ }
+ ]
},
{
- "name": "hide_secret",
- "in": "query",
- "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false
- }
+ "type": "array of strings",
+ "name": "events",
+ "in": "body",
+ "description": "Determines what events the hook is triggered for.
",
+ "default": [
+ "push"
+ ]
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
+ "default": true
}
],
- "bodyParameters": [],
- "descriptionHTML": "Gets a single secret scanning alert detected in an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Repositories can have multiple webhooks installed. Each webhook should have a unique config. Multiple webhooks can\nshare the same config as long as those webhooks do not have any events that overlap.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "url": "https://example.com/webhook",
+ "content_type": "json",
+ "insecure_ssl": "0"
+ }
+ },
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "alert_number": "ALERT_NUMBER"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "number": 42,
- "created_at": "2020-11-06T18:18:30Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
- "state": "open",
- "resolution": null,
- "resolved_at": null,
- "resolved_by": null,
- "secret_type": "mailchimp_api_key",
- "secret_type_display_name": "Mailchimp API Key",
- "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
- "push_protection_bypassed_by": null,
- "push_protection_bypassed": false,
- "push_protection_bypassed_at": null,
- "push_protection_bypass_request_reviewer": null,
- "push_protection_bypass_request_reviewer_comment": null,
- "push_protection_bypass_request_comment": null,
- "push_protection_bypass_request_html_url": null,
- "resolution_comment": null,
- "validity": "unknown",
- "publicly_leaked": false,
- "multi_repo": false
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
+ },
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
+ }
},
"schema": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
"type": "object",
"properties": {
- "number": {
+ "type": {
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier of the webhook.",
"type": "integer",
- "description": "The security alert number.",
- "readOnly": true
+ "examples": [
+ 42
+ ]
},
- "created_at": {
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
"type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
+ "examples": [
+ "web"
+ ]
},
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
+ },
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
},
- {
+ "content_type": {
"type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
}
+ }
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
]
},
- "url": {
+ "created_at": {
"type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
},
- "html_url": {
+ "url": {
"type": "string",
- "description": "The GitHub URL of the alert resource.",
"format": "uri",
- "readOnly": true
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
},
- "locations_url": {
+ "test_url": {
"type": "string",
"format": "uri",
- "description": "The REST API URL of the code locations for this alert."
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
},
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "ping_url": {
"type": "string",
- "enum": [
- "open",
- "resolved"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
]
},
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
]
},
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
- {
- "type": "null"
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
]
}
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
]
+ }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
+ "title": "Get a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config properties, see \"Get a webhook configuration for a repository .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
+ },
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
+ }
+ },
+ "schema": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
},
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment to resolve an alert."
- },
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
},
- "secret_type_display_name": {
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
"type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ "examples": [
+ "web"
+ ]
},
- "secret": {
- "type": "string",
- "description": "The secret that was detected."
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
},
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
},
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
]
- }
- ]
- },
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
"type": "string",
+ "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.**",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "\"0\""
]
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ {
+ "type": "number"
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
]
}
- ]
+ }
},
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
},
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
},
- "push_protection_bypass_request_html_url": {
- "type": [
- "string",
- "null"
- ],
+ "url": {
+ "type": "string",
"format": "uri",
- "description": "The URL to a push protection bypass request."
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
},
- "validity": {
+ "test_url": {
"type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
]
},
- "publicly_leaked": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was publicly leaked."
- },
- "multi_repo": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
},
- "is_base64_encoded": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "A boolean value representing whether or not alert is base64 encoded"
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
},
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
},
- {
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
- ]
- },
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
- "type": "object",
- "properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_body_url"
- ]
- },
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
- "type": "object",
- "properties": {
- "issue_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
- ]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
- ]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
- }
- },
- "required": [
- "discussion_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_title_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "pull_request_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
- },
- "required": [
- "pull_request_review_comment_url"
- ]
- }
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
]
}
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
+ "title": "Update a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "object",
+ "name": "config",
+ "in": "body",
+ "description": "Configuration object of the webhook
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "url",
+ "description": "The URL to which the payloads will be delivered.
"
+ },
+ {
+ "type": "string",
+ "name": "content_type",
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
+ },
+ {
+ "type": "string",
+ "name": "secret",
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
+ },
+ {
+ "type": "string or number",
+ "name": "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": "array of strings",
+ "name": "events",
+ "in": "body",
+ "description": "Determines what events the hook is triggered for. This replaces the entire array of events.
",
+ "default": [
+ "push"
+ ]
+ },
+ {
+ "type": "array of strings",
+ "name": "add_events",
+ "in": "body",
+ "description": "Determines a list of events to be added to the list of events that the Hook triggers for.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "remove_events",
+ "in": "body",
+ "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
"
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
",
+ "default": true
+ }
+ ],
+ "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret set, you must provide the same secret or set a new secret or the secret will be removed. If you are only updating individual webhook config properties, use \"Update a webhook configuration for a repository .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "active": true,
+ "add_events": [
+ "pull_request"
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "type": "Repository",
+ "id": 12345678,
+ "name": "web",
+ "active": true,
+ "events": [
+ "push",
+ "pull_request"
+ ],
+ "config": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "url": "https://example.com/webhook"
+ },
+ "updated_at": "2019-06-03T00:57:16Z",
+ "created_at": "2019-06-03T00:57:16Z",
+ "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678",
+ "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test",
+ "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings",
+ "deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/deliveries",
+ "last_response": {
+ "code": null,
+ "status": "unused",
+ "message": null
+ }
+ },
+ "schema": {
+ "title": "Webhook",
+ "description": "Webhooks for repositories.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier of the webhook.",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "has_more_locations": {
+ "name": {
+ "description": "The name of a valid service, use 'web' for a webhook.",
+ "type": "string",
+ "examples": [
+ "web"
+ ]
+ },
+ "active": {
+ "description": "Determines whether the hook is actually triggered on pushes.",
"type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ "examples": [
+ true
+ ]
},
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
+ "events": {
+ "description": "Determines what events the hook is triggered for. Default: ['push'].",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "push",
+ "pull_request"
+ ]
+ },
+ "config": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
"type": "string",
+ "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.**",
"examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ }
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T20:39:23Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-09-06T17:26:27Z"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1"
+ ]
+ },
+ "test_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/test"
+ ]
+ },
+ "ping_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings"
+ ]
+ },
+ "deliveries_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
+ ]
+ },
+ "last_response": {
+ "title": "Hook Response",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "type": [
+ "string",
+ "null"
]
}
+ },
+ "required": [
+ "code",
+ "status",
+ "message"
]
}
- }
+ },
+ "required": [
+ "id",
+ "url",
+ "type",
+ "name",
+ "active",
+ "events",
+ "config",
+ "ping_url",
+ "created_at",
+ "updated_at",
+ "last_response",
+ "test_url"
+ ]
}
}
}
@@ -742155,16 +786263,214 @@
"description": "OK
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
+ "title": "Delete a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Delete a webhook for an organization.
\nThe authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
"httpStatusCode": "404",
- "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
+ "title": "Get a webhook configuration for a repository",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active state and events, use \"Get a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the read:repo_hook or repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "secret": "********",
+ "url": "https://example.com/webhook"
+ },
+ "schema": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
+ "format": "uri",
+ "examples": [
+ "https://example.com/webhook"
+ ]
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
+ ]
+ },
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
+ ]
+ },
+ "insecure_ssl": {
+ "oneOf": [
+ {
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
+ },
+ {
+ "type": "number"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
}
],
"previews": [],
@@ -742174,7 +786480,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Webhooks\" repository permissions": "read"
}
]
}
@@ -742182,10 +786488,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
- "title": "Update a secret scanning alert",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
+ "title": "Update a webhook configuration for a repository",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
"name": "owner",
@@ -742206,70 +786512,57 @@
}
},
{
- "name": "alert_number",
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
"in": "path",
- "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
"required": true,
"schema": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
+ "type": "integer"
}
}
],
"bodyParameters": [
{
"type": "string",
- "name": "state",
+ "name": "url",
"in": "body",
- "description": "Sets the state of the secret scanning alert. You must provide resolution when you set the state to resolved.
",
- "enum": [
- "open",
- "resolved"
- ]
+ "description": "The URL to which the payloads will be delivered.
"
},
{
- "type": "string or null",
- "name": "resolution",
+ "type": "string",
+ "name": "content_type",
"in": "body",
- "description": "Required when the state is resolved. The reason for resolving the alert.
",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
- ]
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
"
},
{
- "type": "string or null",
- "name": "resolution_comment",
+ "type": "string",
+ "name": "secret",
"in": "body",
- "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.
"
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers .
"
},
{
- "type": "string or null",
- "name": "assignee",
+ "type": "string or number",
+ "name": "insecure_ssl",
"in": "body",
- "description": "The username of the user to assign to the alert. Set to null to unassign the alert.
"
+ "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.
"
}
],
- "descriptionHTML": "Updates the status of a secret scanning alert in an eligible repository.
\nYou can also use this endpoint to assign or unassign an alert to a user who has write access to the repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "Updates the webhook configuration for a repository. To update more information about the webhook, including the active state and events, use \"Update a repository webhook .\"
\nOAuth app tokens and personal access tokens (classic) need the write:repo_hook or repo scope to use this endpoint.
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example of updating content type and URL",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "state": "resolved",
- "resolution": "false_positive"
+ "content_type": "json",
+ "url": "https://example.com/webhook"
},
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "alert_number": "ALERT_NUMBER"
+ "hook_id": "HOOK_ID"
}
},
"response": {
@@ -742277,1263 +786570,614 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "number": 42,
- "created_at": "2020-11-06T18:18:30Z",
- "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
- "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
- "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
- "state": "resolved",
- "resolution": "used_in_tests",
- "resolved_at": "2020-11-16T22:42:07Z",
- "resolved_by": {
- "login": "monalisa",
- "id": 2,
- "node_id": "MDQ6VXNlcjI=",
- "avatar_url": "https://alambic.github.com/avatars/u/2?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": true
- },
- "secret_type": "mailchimp_api_key",
- "secret_type_display_name": "Mailchimp API Key",
- "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
- "push_protection_bypassed": false,
- "push_protection_bypassed_by": null,
- "push_protection_bypassed_at": null,
- "push_protection_bypass_request_reviewer": null,
- "push_protection_bypass_request_reviewer_comment": null,
- "push_protection_bypass_request_comment": null,
- "push_protection_bypass_request_html_url": null,
- "resolution_comment": "Example comment",
- "validity": "unknown",
- "publicly_leaked": false,
- "multi_repo": false,
- "assigned_to": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://alambic.github.com/avatars/u/1?",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
+ "content_type": "json",
+ "insecure_ssl": "0",
+ "secret": "********",
+ "url": "https://example.com/webhook"
},
"schema": {
+ "title": "Webhook Configuration",
+ "description": "Configuration object of the webhook",
"type": "object",
"properties": {
- "number": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "string",
- "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "format": "date-time",
- "readOnly": true
- }
- ]
- },
"url": {
"type": "string",
- "description": "The REST API URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "description": "The GitHub URL of the alert resource.",
- "format": "uri",
- "readOnly": true
- },
- "locations_url": {
- "type": "string",
+ "description": "The URL to which the payloads will be delivered.",
"format": "uri",
- "description": "The REST API URL of the code locations for this alert."
+ "examples": [
+ "https://example.com/webhook"
+ ]
},
- "state": {
- "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "content_type": {
"type": "string",
- "enum": [
- "open",
- "resolved"
+ "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
+ "examples": [
+ "\"json\""
]
},
- "resolution": {
- "type": [
- "string",
- "null"
- ],
- "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "enum": [
- "false_positive",
- "wont_fix",
- "revoked",
- "used_in_tests",
- null
+ "secret": {
+ "type": "string",
+ "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).",
+ "examples": [
+ "\"********\""
]
},
- "resolved_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- "resolved_by": {
- "anyOf": [
+ "insecure_ssl": {
+ "oneOf": [
{
- "type": "null"
+ "type": "string",
+ "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.**",
+ "examples": [
+ "\"0\""
+ ]
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ "type": "number"
}
]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
+ "title": "List deliveries for a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "cursor",
+ "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 12345678,
+ "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "delivered_at": "2019-06-03T00:57:16Z",
+ "redelivery": false,
+ "duration": 0.27,
+ "status": "OK",
+ "status_code": 200,
+ "event": "issues",
+ "action": "opened",
+ "installation_id": 123,
+ "repository_id": 456,
+ "throttled_at": "2019-06-03T00:57:16Z"
+ },
+ {
+ "id": 123456789,
+ "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "delivered_at": "2019-06-04T00:57:16Z",
+ "redelivery": true,
+ "duration": 0.28,
+ "status": "OK",
+ "status_code": 200,
+ "event": "issues",
+ "action": "opened",
+ "installation_id": 123,
+ "repository_id": 456,
+ "throttled_at": null
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Simple webhook delivery",
+ "description": "Delivery made by a webhook, without request and response information.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the webhook delivery.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "guid": {
+ "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
+ "type": "string",
+ "examples": [
+ "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ ]
+ },
+ "delivered_at": {
+ "description": "Time when the webhook delivery occurred.",
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
+ },
+ "redelivery": {
+ "description": "Whether the webhook delivery is a redelivery.",
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "duration": {
+ "description": "Time spent delivering.",
+ "type": "number",
+ "examples": [
+ 0.03
+ ]
+ },
+ "status": {
+ "description": "Describes the response returned after attempting the delivery.",
+ "type": "string",
+ "examples": [
+ "failed to connect"
+ ]
+ },
+ "status_code": {
+ "description": "Status code received when delivery was made.",
+ "type": "integer",
+ "examples": [
+ 502
+ ]
+ },
+ "event": {
+ "description": "The event that triggered the delivery.",
+ "type": "string",
+ "examples": [
+ "issues"
+ ]
+ },
+ "action": {
+ "description": "The type of activity for the event that triggered the delivery.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "opened"
+ ]
+ },
+ "installation_id": {
+ "description": "The id of the GitHub App installation associated with this event.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 123
+ ]
+ },
+ "repository_id": {
+ "description": "The id of the repository associated with this event.",
+ "type": [
+ "integer",
+ "null"
+ ],
+ "format": "int64",
+ "examples": [
+ 123
+ ]
+ },
+ "throttled_at": {
+ "description": "Time when the webhook delivery was throttled.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
+ }
},
- "resolution_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment to resolve an alert."
+ "required": [
+ "id",
+ "guid",
+ "delivered_at",
+ "redelivery",
+ "duration",
+ "status",
+ "status_code",
+ "event",
+ "action",
+ "installation_id",
+ "repository_id"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
+ "title": "Get a delivery for a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "description": ""
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for a webhook configured in a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID",
+ "delivery_id": "DELIVERY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 12345678,
+ "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "delivered_at": "2019-06-03T00:57:16Z",
+ "redelivery": false,
+ "duration": 0.27,
+ "status": "OK",
+ "status_code": 200,
+ "event": "issues",
+ "action": "opened",
+ "installation_id": 123,
+ "repository_id": 456,
+ "url": "https://www.example.com",
+ "throttled_at": "2019-06-03T00:57:16Z",
+ "request": {
+ "headers": {
+ "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
+ "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
+ "Accept": "*/*",
+ "X-GitHub-Hook-ID": "42",
+ "User-Agent": "GitHub-Hookshot/b8c71d8",
+ "X-GitHub-Event": "issues",
+ "X-GitHub-Hook-Installation-Target-ID": "123",
+ "X-GitHub-Hook-Installation-Target-Type": "repository",
+ "content-type": "application/json",
+ "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d"
},
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
+ "payload": {
+ "action": "opened",
+ "issue": {
+ "body": "foo"
+ },
+ "repository": {
+ "id": 123
+ }
+ }
+ },
+ "response": {
+ "headers": {
+ "Content-Type": "text/html;charset=utf-8"
},
- "secret_type_display_name": {
- "type": "string",
- "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ "payload": "ok"
+ }
+ },
+ "schema": {
+ "title": "Webhook delivery",
+ "description": "Delivery made by a webhook.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the delivery.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
},
- "secret": {
+ "guid": {
+ "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).",
"type": "string",
- "description": "The secret that was detected."
+ "examples": [
+ "58474f00-b361-11eb-836d-0e4f3503ccbe"
+ ]
},
- "push_protection_bypassed": {
- "type": [
- "boolean",
- "null"
- ],
- "description": "Whether push protection was bypassed for the detected secret."
+ "delivered_at": {
+ "description": "Time when the delivery was delivered.",
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
},
- "push_protection_bypassed_by": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "redelivery": {
+ "description": "Whether the delivery is a redelivery.",
+ "type": "boolean",
+ "examples": [
+ false
]
},
- "push_protection_bypassed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ "duration": {
+ "description": "Time spent delivering.",
+ "type": "number",
+ "examples": [
+ 0.03
+ ]
},
- "push_protection_bypass_request_reviewer": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "status": {
+ "description": "Description of the status of the attempted delivery",
+ "type": "string",
+ "examples": [
+ "failed to connect"
]
},
- "push_protection_bypass_request_reviewer_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when reviewing a push protection bypass."
+ "status_code": {
+ "description": "Status code received when delivery was made.",
+ "type": "integer",
+ "examples": [
+ 502
+ ]
},
- "push_protection_bypass_request_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "An optional comment when requesting a push protection bypass."
+ "event": {
+ "description": "The event that triggered the delivery.",
+ "type": "string",
+ "examples": [
+ "issues"
+ ]
},
- "push_protection_bypass_request_html_url": {
+ "action": {
+ "description": "The type of activity for the event that triggered the delivery.",
"type": [
"string",
"null"
],
- "format": "uri",
- "description": "The URL to a push protection bypass request."
- },
- "validity": {
- "type": "string",
- "description": "The token status as of the latest validity check.",
- "enum": [
- "active",
- "inactive",
- "unknown"
+ "examples": [
+ "opened"
]
},
- "publicly_leaked": {
+ "installation_id": {
+ "description": "The id of the GitHub App installation associated with this event.",
"type": [
- "boolean",
+ "integer",
"null"
],
- "description": "Whether the detected secret was publicly leaked."
+ "examples": [
+ 123
+ ]
},
- "multi_repo": {
+ "repository_id": {
+ "description": "The id of the repository associated with this event.",
"type": [
- "boolean",
+ "integer",
"null"
],
- "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
+ "examples": [
+ 123
+ ]
},
- "is_base64_encoded": {
+ "throttled_at": {
+ "description": "Time when the webhook delivery was throttled.",
"type": [
- "boolean",
+ "string",
"null"
],
- "description": "A boolean value representing whether or not alert is base64 encoded"
- },
- "first_location_detected": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
- ]
- },
- "page_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki page",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- },
- "commit_url": {
- "type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
- "examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- ]
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
- ]
- },
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_title_url"
- ]
- },
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
- "type": "object",
- "properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
- }
- },
- "required": [
- "issue_body_url"
- ]
- },
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
- "type": "object",
- "properties": {
- "issue_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082"
- ]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
- ]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
- "examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- ]
- }
- },
- "required": [
- "discussion_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_title_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
- }
- },
- "required": [
- "pull_request_comment_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
- },
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
- },
- "required": [
- "pull_request_review_comment_url"
- ]
- }
- ]
- }
- ]
- },
- "has_more_locations": {
- "type": "boolean",
- "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
- },
- "assigned_to": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ "format": "date-time",
+ "examples": [
+ "2021-05-12T20:33:44Z"
+ ]
+ },
+ "url": {
+ "description": "The URL target of the delivery.",
+ "type": "string",
+ "examples": [
+ "https://www.example.com"
+ ]
+ },
+ "request": {
+ "type": "object",
+ "properties": {
+ "headers": {
+ "description": "The request headers sent with the webhook delivery.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true
+ },
+ "payload": {
+ "description": "The webhook payload.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "headers",
+ "payload"
+ ]
+ },
+ "response": {
+ "type": "object",
+ "properties": {
+ "headers": {
+ "description": "The response headers received when the delivery was made.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "additionalProperties": true
+ },
+ "payload": {
+ "description": "The response payload received.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "additionalProperties": true
}
+ },
+ "required": [
+ "headers",
+ "payload"
]
}
- }
+ },
+ "required": [
+ "id",
+ "guid",
+ "delivered_at",
+ "redelivery",
+ "duration",
+ "status",
+ "status_code",
+ "event",
+ "action",
+ "installation_id",
+ "repository_id",
+ "request",
+ "response"
+ ]
}
}
}
@@ -743545,19 +787189,108 @@
},
{
"httpStatusCode": "400",
- "description": "Bad request, resolution comment is invalid or the resolution was not changed.
"
+ "description": "Bad Request
"
},
{
- "httpStatusCode": "404",
- "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
+ "title": "Redeliver a delivery for a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "httpStatusCode": "422",
- "description": "State does not match the resolution or resolution comment, or assignee does not have write access to the repository
"
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "description": ""
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a webhook delivery for a webhook configured in a repository.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID",
+ "delivery_id": "DELIVERY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Accepted
",
+ "example": null,
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -743567,18 +787300,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "write"
+ "\"Webhooks\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
- "title": "List locations for a secret scanning alert",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings",
+ "title": "Ping a repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
"parameters": [
{
"name": "owner",
@@ -743599,37 +787332,95 @@
}
},
{
- "name": "alert_number",
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
"in": "path",
- "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
"required": true,
"schema": {
- "type": "integer",
- "description": "The security alert number.",
- "readOnly": true
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "This will trigger a ping event to be sent to the hook.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/tests",
+ "title": "Test the push repository webhook",
+ "category": "repos",
+ "subcategory": "webhooks",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 1
+ "type": "string"
}
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "string"
+ }
+ },
+ {
+ "name": "hook_id",
+ "description": "The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists all locations for a given secret scanning alert for an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "descriptionHTML": "This 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 Note
\n
\nPreviously /repos/:owner/:repo/hooks/:hook_id/test
\n
",
"codeExamples": [
{
"key": "default",
@@ -743639,460 +787430,1617 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "alert_number": "ALERT_NUMBER"
+ "hook_id": "HOOK_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Webhooks\" repository permissions": "read"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "scim": {
+ "scim": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/scim/v2/organizations/{org}/Users",
+ "title": "List SCIM provisioned identities",
+ "category": "scim",
+ "subcategory": "scim",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "startIndex",
+ "description": "Used for pagination: the index of the first result to return.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "count",
+ "description": "Used for pagination: the number of results to return.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "filter",
+ "description": "Filters results using the equals query parameter operator (eq). You can filter results that are equal to id, userName, emails, and externalId. For example, to search for an identity with the userName Octocat, you would use this query:
\n?filter=userName%20eq%20\\\"Octocat\\\".
\nTo filter results for the identity with the email octocat@github.com, you would use this query:
\n?filter=emails%20eq%20\\\"octocat@github.com\\\".
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Retrieves a paginated list of all provisioned organization members, including pending invitations. If you provide the filter parameter, the resources for all matching provisions members are returned.
\nThe returned list of SCIM provisioned identities from the GitHub Enterprise Cloud might not always match the organization or enterprise member list. Here is why that can occur:
\n\nWhen an organization invitation is generated by a SCIM integration, this creates an unlinked SCIM identity in the organization. When a user logs into their GitHub user account, visits the organization, and successfully authenticates via SAML, they get added as an organization member and linked to their SAML/SCIM identity in the organization. If the user does not do this, the SCIM identity will remain in the organization, not linked to any organization member. \nA user's organization membership (inviting and removing a user to/from the organization) should only be managed by a SCIM integration when this is configured for a GitHub organization. If a GitHub user who has a linked SCIM identity is removed from the organization using the GitHub UI or non-SCIM API, as opposed to the SCIM integration, this can leave behind a stale SAML/SCIM identity in the organization for the user. \n ",
+ "codeExamples": [
+ {
+ "key": "response-with-filter",
+ "request": {
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "type": "commit",
- "details": {
- "path": "/example/secrets.txt",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
- "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
- }
- },
- {
- "type": "wiki_commit",
- "details": {
- "path": "/example/Home.md",
- "start_line": 1,
- "end_line": 1,
- "start_column": 1,
- "end_column": 64,
- "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
- "page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
- "commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
- "commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
- }
- },
- {
- "type": "issue_title",
- "details": {
- "issue_title_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- }
- },
- {
- "type": "issue_body",
- "details": {
- "issue_body_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- }
- },
- {
- "type": "issue_comment",
- "details": {
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- }
- },
- {
- "type": "discussion_title",
- "details": {
- "discussion_title_url": "https://github.com/community/community/discussions/39082"
- }
- },
- {
- "type": "discussion_body",
- "details": {
- "discussion_body_url": "https://github.com/community/community/discussions/39082#discussion-4566270"
- }
- },
- {
- "type": "discussion_comment",
- "details": {
- "discussion_comment_url": "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
- }
- },
- {
- "type": "pull_request_title",
- "details": {
- "pull_request_title_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- }
- },
- {
- "type": "pull_request_body",
- "details": {
- "pull_request_body_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- }
- },
- {
- "type": "pull_request_comment",
- "details": {
- "pull_request_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1825855898"
- }
- },
- {
- "type": "pull_request_review",
- "details": {
- "pull_request_review_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- }
- },
- {
- "type": "pull_request_review_comment",
- "details": {
- "pull_request_review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ "contentType": "application/scim+json",
+ "description": "Response with filter
",
+ "example": {
+ "schemas": [
+ "urn:ietf:params:scim:api:messages:2.0:ListResponse"
+ ],
+ "totalResults": 1,
+ "itemsPerPage": 1,
+ "startIndex": 1,
+ "Resources": [
+ {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "5fc0c238-1112-11e8-8e45-920c87bdbd75",
+ "externalId": "00u1dhhb1fkIGP7RL1d8",
+ "userName": "octocat@github.com",
+ "displayName": "Mona Octocat",
+ "name": {
+ "givenName": "Mona",
+ "familyName": "Octocat",
+ "formatted": "Mona Octocat"
+ },
+ "emails": [
+ {
+ "value": "octocat@github.com",
+ "primary": true
+ }
+ ],
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2018-02-13T15:05:24.000-08:00",
+ "lastModified": "2018-02-13T15:05:55.000-08:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/5fc0c238-1112-11e8-8e45-920c87bdbd75"
+ }
}
- }
- ],
+ ]
+ },
"schema": {
- "type": "array",
- "description": "List of locations where the secret was detected",
- "items": {
- "type": "object",
- "properties": {
- "type": {
+ "title": "SCIM User List",
+ "description": "SCIM User List",
+ "type": "object",
+ "properties": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
"type": "string",
- "enum": [
- "commit",
- "wiki_commit",
- "issue_title",
- "issue_body",
- "issue_comment",
- "discussion_title",
- "discussion_body",
- "discussion_comment",
- "pull_request_title",
- "pull_request_body",
- "pull_request_comment",
- "pull_request_review",
- "pull_request_review_comment"
- ],
- "description": "The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.",
"examples": [
- "commit"
+ "urn:ietf:params:scim:api:messages:2.0:ListResponse"
]
- },
- "details": {
- "oneOf": [
- {
- "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ }
+ },
+ "totalResults": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "itemsPerPage": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "startIndex": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "Resources": {
+ "type": "array",
+ "items": {
+ "title": "SCIM /Users",
+ "description": "SCIM /Users provisioning endpoints",
+ "type": "object",
+ "properties": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ }
+ },
+ "id": {
+ "description": "Unique identifier of an external identity",
+ "type": "string",
+ "examples": [
+ "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ ]
+ },
+ "externalId": {
+ "description": "The ID of the User.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "a7b0f98395"
+ ]
+ },
+ "userName": {
+ "description": "Configured by the admin. Could be an email, login, or username",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "someone@example.com"
+ ]
+ },
+ "displayName": {
+ "description": "The name of the user, suitable for display to end-users",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Jon Doe"
+ ]
+ },
+ "name": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path in the repository",
- "examples": [
- "/example/secrets.txt"
+ "givenName": {
+ "type": [
+ "string",
+ "null"
]
},
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
- },
- "blob_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated blob",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ "familyName": {
+ "type": [
+ "string",
+ "null"
]
},
- "blob_url": {
- "type": "string",
- "description": "The API URL to get the associated blob resource"
- },
- "commit_sha": {
- "type": "string",
- "description": "SHA-1 hash ID of the associated commit",
- "examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ "formatted": {
+ "type": [
+ "string",
+ "null"
]
- },
- "commit_url": {
- "type": "string",
- "description": "The API URL to get the associated commit resource"
}
},
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "blob_url",
- "commit_sha",
- "commit_url"
+ "example": {
+ "givenName": "Jane",
+ "familyName": "User"
+ }
+ },
+ "emails": {
+ "description": "user emails",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "examples": [
+ {
+ "value": "someone@example.com",
+ "primary": true
+ },
+ {
+ "value": "another@example.com",
+ "primary": false
+ }
]
},
- {
- "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "active": {
+ "description": "The active status of the User.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "meta": {
"type": "object",
"properties": {
- "path": {
- "type": "string",
- "description": "The file path of the wiki page",
- "examples": [
- "/example/Home.md"
- ]
- },
- "start_line": {
- "type": "number",
- "description": "Line number at which the secret starts in the file"
- },
- "end_line": {
- "type": "number",
- "description": "Line number at which the secret ends in the file"
- },
- "start_column": {
- "type": "number",
- "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
- },
- "end_column": {
- "type": "number",
- "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
- },
- "blob_sha": {
+ "resourceType": {
"type": "string",
- "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ "User"
]
},
- "page_url": {
+ "created": {
"type": "string",
- "description": "The GitHub URL to get the associated wiki page",
+ "format": "date-time",
"examples": [
- "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ "2019-01-24T22:45:36.000Z"
]
},
- "commit_sha": {
+ "lastModified": {
"type": "string",
- "description": "SHA-1 hash ID of the associated commit",
+ "format": "date-time",
"examples": [
- "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ "2019-01-24T22:45:36.000Z"
]
},
- "commit_url": {
+ "location": {
"type": "string",
- "description": "The GitHub URL to get the associated wiki commit",
+ "format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
]
}
+ }
+ },
+ "organization_id": {
+ "description": "The ID of the organization.",
+ "type": "integer"
+ },
+ "operations": {
+ "description": "Set of operations to be performed",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "properties": {
+ "op": {
+ "type": "string",
+ "enum": [
+ "add",
+ "remove",
+ "replace"
+ ]
+ },
+ "path": {
+ "type": "string"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array",
+ "items": {}
+ }
+ ]
+ }
+ },
+ "required": [
+ "op"
+ ],
+ "type": "object"
},
- "required": [
- "path",
- "start_line",
- "end_line",
- "start_column",
- "end_column",
- "blob_sha",
- "page_url",
- "commit_sha",
- "commit_url"
+ "examples": [
+ {
+ "op": "replace",
+ "value": {
+ "active": false
+ }
+ }
]
},
- {
- "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
- "type": "object",
- "properties": {
- "issue_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
- ]
+ "groups": {
+ "description": "associated groups",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
}
- },
- "required": [
- "issue_title_url"
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "id",
+ "schemas",
+ "emails",
+ "active",
+ "meta"
+ ]
+ }
+ }
+ },
+ "required": [
+ "schemas",
+ "totalResults",
+ "itemsPerPage",
+ "startIndex",
+ "Resources"
+ ]
+ }
+ }
+ },
+ {
+ "key": "response-without-filter",
+ "request": {
+ "description": "Example 2: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/scim+json",
+ "description": "Response without filter
",
+ "example": {
+ "schemas": [
+ "urn:ietf:params:scim:api:messages:2.0:ListResponse"
+ ],
+ "totalResults": 2,
+ "itemsPerPage": 2,
+ "startIndex": 1,
+ "Resources": [
+ {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "edefdfedf-050c-11e7-8d32",
+ "externalId": "a7d0f98382",
+ "userName": "mona.octocat@okta.example.com",
+ "displayName": "Mona Octocat",
+ "name": {
+ "givenName": "Mona",
+ "familyName": "Octocat",
+ "formatted": "Mona Octocat"
+ },
+ "emails": [
+ {
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
+ }
+ ],
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2017-03-09T16:11:13-05:00",
+ "lastModified": "2017-03-09T16:11:13-05:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ }
+ },
+ {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "77563764-eb6-24-0598234-958243",
+ "externalId": "sdfoiausdofiua",
+ "userName": "hubot@example.com",
+ "displayName": "hu bot",
+ "name": {
+ "givenName": "hu",
+ "familyName": "bot",
+ "formatted": "hu bot"
+ },
+ "emails": [
+ {
+ "value": "hubot@example.com",
+ "primary": true
+ }
+ ],
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2017-03-09T16:11:13-05:00",
+ "lastModified": "2017-03-09T16:11:13-05:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243"
+ }
+ }
+ ]
+ },
+ "schema": {
+ "title": "SCIM User List",
+ "description": "SCIM User List",
+ "type": "object",
+ "properties": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:api:messages:2.0:ListResponse"
+ ]
+ }
+ },
+ "totalResults": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "itemsPerPage": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "startIndex": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "Resources": {
+ "type": "array",
+ "items": {
+ "title": "SCIM /Users",
+ "description": "SCIM /Users provisioning endpoints",
+ "type": "object",
+ "properties": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ }
+ },
+ "id": {
+ "description": "Unique identifier of an external identity",
+ "type": "string",
+ "examples": [
+ "1b78eada-9baa-11e6-9eb6-a431576d590e"
]
},
- {
- "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "externalId": {
+ "description": "The ID of the User.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "a7b0f98395"
+ ]
+ },
+ "userName": {
+ "description": "Configured by the admin. Could be an email, login, or username",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "someone@example.com"
+ ]
+ },
+ "displayName": {
+ "description": "The name of the user, suitable for display to end-users",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Jon Doe"
+ ]
+ },
+ "name": {
"type": "object",
"properties": {
- "issue_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the issue where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ "givenName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "familyName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "formatted": {
+ "type": [
+ "string",
+ "null"
]
}
},
- "required": [
- "issue_body_url"
+ "example": {
+ "givenName": "Jane",
+ "familyName": "User"
+ }
+ },
+ "emails": {
+ "description": "user emails",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "examples": [
+ {
+ "value": "someone@example.com",
+ "primary": true
+ },
+ {
+ "value": "another@example.com",
+ "primary": false
+ }
]
},
- {
- "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "active": {
+ "description": "The active status of the User.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "meta": {
"type": "object",
"properties": {
- "issue_comment_url": {
+ "resourceType": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get the issue comment where the secret was detected.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ "User"
]
- }
- },
- "required": [
- "issue_comment_url"
- ]
- },
- {
- "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
- "type": "object",
- "properties": {
- "discussion_title_url": {
+ },
+ "created": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
+ "format": "date-time",
"examples": [
- "https://github.com/community/community/discussions/39082"
+ "2019-01-24T22:45:36.000Z"
]
- }
- },
- "required": [
- "discussion_title_url"
- ]
- },
- {
- "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
- "type": "object",
- "properties": {
- "discussion_body_url": {
+ },
+ "lastModified": {
"type": "string",
- "format": "uri",
- "description": "The URL to the discussion where the secret was detected.",
+ "format": "date-time",
"examples": [
- "https://github.com/community/community/discussions/39082#discussion-4566270"
+ "2019-01-24T22:45:36.000Z"
]
- }
- },
- "required": [
- "discussion_body_url"
- ]
- },
- {
- "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
- "type": "object",
- "properties": {
- "discussion_comment_url": {
+ },
+ "location": {
"type": "string",
"format": "uri",
- "description": "The API URL to get the discussion comment where the secret was detected.",
"examples": [
- "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
]
}
+ }
+ },
+ "organization_id": {
+ "description": "The ID of the organization.",
+ "type": "integer"
+ },
+ "operations": {
+ "description": "Set of operations to be performed",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "properties": {
+ "op": {
+ "type": "string",
+ "enum": [
+ "add",
+ "remove",
+ "replace"
+ ]
+ },
+ "path": {
+ "type": "string"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array",
+ "items": {}
+ }
+ ]
+ }
+ },
+ "required": [
+ "op"
+ ],
+ "type": "object"
},
- "required": [
- "discussion_comment_url"
+ "examples": [
+ {
+ "op": "replace",
+ "value": {
+ "active": false
+ }
+ }
]
},
- {
- "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_title_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
+ "groups": {
+ "description": "associated groups",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
}
- },
- "required": [
- "pull_request_title_url"
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "id",
+ "schemas",
+ "emails",
+ "active",
+ "meta"
+ ]
+ }
+ }
+ },
+ "required": [
+ "schemas",
+ "totalResults",
+ "itemsPerPage",
+ "startIndex",
+ "Resources"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "429",
+ "description": "Too many requests
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/scim/v2/organizations/{org}/Users",
+ "title": "Provision and invite a SCIM user",
+ "category": "scim",
+ "subcategory": "scim",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "userName",
+ "in": "body",
+ "description": "Configured by the admin. Could be an email, login, or username
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "displayName",
+ "in": "body",
+ "description": "The name of the user, suitable for display to end-users
"
+ },
+ {
+ "type": "object",
+ "name": "name",
+ "in": "body",
+ "description": "",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "givenName",
+ "description": "",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "familyName",
+ "description": "",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "formatted",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "emails",
+ "in": "body",
+ "description": "user emails
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "value",
+ "description": "",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "primary",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "type": "array of strings",
+ "name": "schemas",
+ "in": "body",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "externalId",
+ "in": "body",
+ "description": ""
+ },
+ {
+ "type": "array of strings",
+ "name": "groups",
+ "in": "body",
+ "description": ""
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": ""
+ }
+ ],
+ "descriptionHTML": "Provisions organization membership for a user, and sends an activation email to the email address. If the user was previously a member of the organization, the invitation will reinstate any former privileges that the user had. For more information about reinstating former members, see \"Reinstating a former member of your organization .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "userName": "mona.octocat@okta.example.com",
+ "externalId": "a7d0f98382",
+ "name": {
+ "givenName": "Monalisa",
+ "familyName": "Octocat",
+ "formatted": "Monalisa Octocat"
+ },
+ "emails": [
+ {
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
+ },
+ {
+ "value": "monalisa@octocat.github.com"
+ }
+ ]
+ },
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/scim+json",
+ "description": "Response
",
+ "example": {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "edefdfedf-050c-11e7-8d32",
+ "externalId": "a7d0f98382",
+ "userName": "mona.octocat@okta.example.com",
+ "displayName": "Monalisa Octocat",
+ "name": {
+ "givenName": "Monalisa",
+ "familyName": "Octocat",
+ "formatted": "Monalisa Octocat"
+ },
+ "emails": [
+ {
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
+ },
+ {
+ "value": "monalisa@octocat.github.com"
+ }
+ ],
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2017-03-09T16:11:13-05:00",
+ "lastModified": "2017-03-09T16:11:13-05:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ }
+ },
+ "schema": {
+ "title": "SCIM /Users",
+ "description": "SCIM /Users provisioning endpoints",
+ "type": "object",
+ "properties": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ }
+ },
+ "id": {
+ "description": "Unique identifier of an external identity",
+ "type": "string",
+ "examples": [
+ "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ ]
+ },
+ "externalId": {
+ "description": "The ID of the User.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "a7b0f98395"
+ ]
+ },
+ "userName": {
+ "description": "Configured by the admin. Could be an email, login, or username",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "someone@example.com"
+ ]
+ },
+ "displayName": {
+ "description": "The name of the user, suitable for display to end-users",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Jon Doe"
+ ]
+ },
+ "name": {
+ "type": "object",
+ "properties": {
+ "givenName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "familyName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "formatted": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "example": {
+ "givenName": "Jane",
+ "familyName": "User"
+ }
+ },
+ "emails": {
+ "description": "user emails",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "examples": [
+ {
+ "value": "someone@example.com",
+ "primary": true
+ },
+ {
+ "value": "another@example.com",
+ "primary": false
+ }
+ ]
+ },
+ "active": {
+ "description": "The active status of the User.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "meta": {
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "created": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "lastModified": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
+ ]
+ }
+ }
+ },
+ "organization_id": {
+ "description": "The ID of the organization.",
+ "type": "integer"
+ },
+ "operations": {
+ "description": "Set of operations to be performed",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "properties": {
+ "op": {
+ "type": "string",
+ "enum": [
+ "add",
+ "remove",
+ "replace"
+ ]
+ },
+ "path": {
+ "type": "string"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array",
+ "items": {}
+ }
+ ]
+ }
+ },
+ "required": [
+ "op"
+ ],
+ "type": "object"
+ },
+ "examples": [
+ {
+ "op": "replace",
+ "value": {
+ "active": false
+ }
+ }
+ ]
+ },
+ "groups": {
+ "description": "associated groups",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "id",
+ "schemas",
+ "emails",
+ "active",
+ "meta"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal server error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
+ "title": "Get SCIM provisioning information for a user",
+ "category": "scim",
+ "subcategory": "scim",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "scim_user_id",
+ "description": "The unique identifier of the SCIM user.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets SCIM provisioning information for a user.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG",
+ "scim_user_id": "SCIM_USER_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/scim+json",
+ "description": "Response
",
+ "example": {
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "edefdfedf-050c-11e7-8d32",
+ "externalId": "a7d0f98382",
+ "userName": "mona.octocat@okta.example.com",
+ "displayName": "Monalisa Octocat",
+ "name": {
+ "givenName": "Monalisa",
+ "familyName": "Octocat",
+ "formatted": "Monalisa Octocat"
+ },
+ "emails": [
+ {
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
+ },
+ {
+ "value": "monalisa@octocat.github.com"
+ }
+ ],
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2017-03-09T16:11:13-05:00",
+ "lastModified": "2017-03-09T16:11:13-05:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ }
+ },
+ "schema": {
+ "title": "SCIM /Users",
+ "description": "SCIM /Users provisioning endpoints",
+ "type": "object",
+ "properties": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ }
+ },
+ "id": {
+ "description": "Unique identifier of an external identity",
+ "type": "string",
+ "examples": [
+ "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ ]
+ },
+ "externalId": {
+ "description": "The ID of the User.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "a7b0f98395"
+ ]
+ },
+ "userName": {
+ "description": "Configured by the admin. Could be an email, login, or username",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "someone@example.com"
+ ]
+ },
+ "displayName": {
+ "description": "The name of the user, suitable for display to end-users",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Jon Doe"
+ ]
+ },
+ "name": {
+ "type": "object",
+ "properties": {
+ "givenName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "familyName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "formatted": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "example": {
+ "givenName": "Jane",
+ "familyName": "User"
+ }
+ },
+ "emails": {
+ "description": "user emails",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "examples": [
+ {
+ "value": "someone@example.com",
+ "primary": true
+ },
+ {
+ "value": "another@example.com",
+ "primary": false
+ }
+ ]
+ },
+ "active": {
+ "description": "The active status of the User.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "meta": {
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "created": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "lastModified": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
+ ]
+ }
+ }
+ },
+ "organization_id": {
+ "description": "The ID of the organization.",
+ "type": "integer"
+ },
+ "operations": {
+ "description": "Set of operations to be performed",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "properties": {
+ "op": {
+ "type": "string",
+ "enum": [
+ "add",
+ "remove",
+ "replace"
]
},
- {
- "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
- "type": "object",
- "properties": {
- "pull_request_body_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
- ]
- }
- },
- "required": [
- "pull_request_body_url"
- ]
+ "path": {
+ "type": "string"
},
- {
- "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
- ]
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array",
+ "items": {}
}
- },
- "required": [
- "pull_request_comment_url"
]
+ }
+ },
+ "required": [
+ "op"
+ ],
+ "type": "object"
+ },
+ "examples": [
+ {
+ "op": "replace",
+ "value": {
+ "active": false
+ }
+ }
+ ]
+ },
+ "groups": {
+ "description": "associated groups",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
},
- {
- "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
- ]
- }
- },
- "required": [
- "pull_request_review_url"
- ]
+ "display": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
},
- {
- "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
- "type": "object",
- "properties": {
- "pull_request_review_comment_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get the pull request review comment where the secret was detected.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
- ]
- }
- },
- "required": [
- "pull_request_review_comment_url"
- ]
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
}
- ]
+ }
}
}
- }
+ },
+ "required": [
+ "id",
+ "schemas",
+ "emails",
+ "active",
+ "meta"
+ ]
}
}
}
@@ -744103,12 +789051,16 @@
"description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -744118,22 +789070,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses",
- "title": "Create a push protection bypass",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "verb": "put",
+ "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
+ "title": "Update a provisioned organization membership",
+ "category": "scim",
+ "subcategory": "scim",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -744141,8 +789093,8 @@
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "scim_user_id",
+ "description": "The unique identifier of the SCIM user.
",
"in": "path",
"required": true,
"schema": {
@@ -744151,27 +789103,96 @@
}
],
"bodyParameters": [
+ {
+ "type": "array of strings",
+ "name": "schemas",
+ "in": "body",
+ "description": ""
+ },
{
"type": "string",
- "name": "reason",
+ "name": "displayName",
"in": "body",
- "description": "The reason for bypassing push protection.
",
- "isRequired": true,
- "enum": [
- "false_positive",
- "used_in_tests",
- "will_fix_later"
- ]
+ "description": "The name of the user, suitable for display to end-users
"
},
{
"type": "string",
- "name": "placeholder_id",
+ "name": "externalId",
"in": "body",
- "description": "The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
",
+ "description": ""
+ },
+ {
+ "type": "array of strings",
+ "name": "groups",
+ "in": "body",
+ "description": ""
+ },
+ {
+ "type": "boolean",
+ "name": "active",
+ "in": "body",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "userName",
+ "in": "body",
+ "description": "Configured by the admin. Could be an email, login, or username
",
"isRequired": true
+ },
+ {
+ "type": "object",
+ "name": "name",
+ "in": "body",
+ "description": "",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "givenName",
+ "description": "",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "familyName",
+ "description": "",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "formatted",
+ "description": ""
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "emails",
+ "in": "body",
+ "description": "user emails
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "type",
+ "description": ""
+ },
+ {
+ "type": "string",
+ "name": "value",
+ "description": "",
+ "isRequired": true
+ },
+ {
+ "type": "boolean",
+ "name": "primary",
+ "description": ""
+ }
+ ]
}
],
- "descriptionHTML": "Creates a bypass for a previously push protected secret.
\nThe authenticated user must be the original author of the committed secret.
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
",
+ "descriptionHTML": "Replaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the Update an attribute for a SCIM user endpoint instead.
\nYou must at least provide the required values for the user: userName, name, and emails.
\n Warning
\n
\nSetting active: false removes the user from the organization, deletes the external identity, and deletes the associated {scim_user_id}.
\n
",
"codeExamples": [
{
"key": "default",
@@ -744180,48 +789201,302 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "reason": "will_fix_later",
- "placeholder_id": "2k4dM4tseyC5lPIsjl5emX9sPNk"
+ "userName": "mona.octocat@okta.example.com",
+ "externalId": "a7d0f98382",
+ "name": {
+ "givenName": "Monalisa",
+ "familyName": "Octocat",
+ "formatted": "Monalisa Octocat"
+ },
+ "emails": [
+ {
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
+ }
+ ]
},
"parameters": {
- "owner": "OWNER",
- "repo": "REPO"
+ "org": "ORG",
+ "scim_user_id": "SCIM_USER_ID"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/json",
+ "contentType": "application/scim+json",
"description": "Response
",
"example": {
- "reason": "will_fix_later",
- "expire_at": "2020-11-06T18:18:30Z",
- "token_type": "mailchimp_api_key"
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ],
+ "id": "edefdfedf-050c-11e7-8d32",
+ "externalId": "a7d0f98382",
+ "userName": "mona.octocat@okta.example.com",
+ "displayName": "Monalisa Octocat",
+ "name": {
+ "givenName": "Monalisa",
+ "familyName": "Octocat",
+ "formatted": "Monalisa Octocat"
+ },
+ "emails": [
+ {
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
+ },
+ {
+ "value": "monalisa@octocat.github.com"
+ }
+ ],
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2017-03-09T16:11:13-05:00",
+ "lastModified": "2017-03-09T16:11:13-05:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ }
},
"schema": {
+ "title": "SCIM /Users",
+ "description": "SCIM /Users provisioning endpoints",
"type": "object",
"properties": {
- "reason": {
- "description": "The reason for bypassing push protection.",
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ }
+ },
+ "id": {
+ "description": "Unique identifier of an external identity",
"type": "string",
- "enum": [
- "false_positive",
- "used_in_tests",
- "will_fix_later"
+ "examples": [
+ "1b78eada-9baa-11e6-9eb6-a431576d590e"
]
},
- "expire_at": {
+ "externalId": {
+ "description": "The ID of the User.",
"type": [
"string",
"null"
],
- "format": "date-time",
- "description": "The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ "examples": [
+ "a7b0f98395"
+ ]
},
- "token_type": {
- "type": "string",
- "description": "The token type this bypass is for."
+ "userName": {
+ "description": "Configured by the admin. Could be an email, login, or username",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "someone@example.com"
+ ]
+ },
+ "displayName": {
+ "description": "The name of the user, suitable for display to end-users",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Jon Doe"
+ ]
+ },
+ "name": {
+ "type": "object",
+ "properties": {
+ "givenName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "familyName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "formatted": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "example": {
+ "givenName": "Jane",
+ "familyName": "User"
+ }
+ },
+ "emails": {
+ "description": "user emails",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "examples": [
+ {
+ "value": "someone@example.com",
+ "primary": true
+ },
+ {
+ "value": "another@example.com",
+ "primary": false
+ }
+ ]
+ },
+ "active": {
+ "description": "The active status of the User.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "meta": {
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "created": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "lastModified": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
+ ]
+ }
+ }
+ },
+ "organization_id": {
+ "description": "The ID of the organization.",
+ "type": "integer"
+ },
+ "operations": {
+ "description": "Set of operations to be performed",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "properties": {
+ "op": {
+ "type": "string",
+ "enum": [
+ "add",
+ "remove",
+ "replace"
+ ]
+ },
+ "path": {
+ "type": "string"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array",
+ "items": {}
+ }
+ ]
+ }
+ },
+ "required": [
+ "op"
+ ],
+ "type": "object"
+ },
+ "examples": [
+ {
+ "op": "replace",
+ "value": {
+ "active": false
+ }
+ }
+ ]
+ },
+ "groups": {
+ "description": "associated groups",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
+ }
+ }
+ }
}
- }
+ },
+ "required": [
+ "id",
+ "schemas",
+ "emails",
+ "active",
+ "meta"
+ ]
}
}
}
@@ -744232,45 +789507,41 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "User does not have enough permissions to perform this action.
"
- },
- {
- "httpStatusCode": "404",
- "description": "Placeholder ID not found, or push protection is disabled on this repository.
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "422",
- "description": "Bad request, input data missing or incorrect.
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": false,
+ "serverToServer": true,
"fineGrainedPat": true,
"permissions": [
{
- "\"Contents\" repository permissions": "write"
+ "\"Members\" organization permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/secret-scanning/scan-history",
- "title": "Get secret scanning scan history for a repository",
- "category": "secret-scanning",
- "subcategory": "secret-scanning",
+ "verb": "patch",
+ "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
+ "title": "Update an attribute for a SCIM user",
+ "category": "scim",
+ "subcategory": "scim",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -744278,8 +789549,8 @@
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "scim_user_id",
+ "description": "The unique identifier of the SCIM user.
",
"in": "path",
"required": true,
"schema": {
@@ -744287,231 +789558,344 @@
}
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
\n\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "bodyParameters": [
+ {
+ "type": "array of strings",
+ "name": "schemas",
+ "in": "body",
+ "description": ""
+ },
+ {
+ "type": "array of objects",
+ "name": "Operations",
+ "in": "body",
+ "description": "Set of operations to be performed
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "op",
+ "description": "",
+ "isRequired": true,
+ "enum": [
+ "add",
+ "remove",
+ "replace"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "path",
+ "description": ""
+ },
+ {
+ "type": "object or array or string",
+ "name": "value",
+ "description": ""
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Allows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific Operations JSON format that contains at least one of the add, remove, or replace operations. For examples and more information on the SCIM operations format, see the SCIM specification .
\n Note
\n
\nComplicated SCIM path selectors that include filters are not supported. For example, a path selector defined as \"path\": \"emails[type eq \\\"work\\\"]\" will not work.
\n
\n Warning
\n
\nIf you set active:false using the replace operation (as shown in the JSON example below), it removes the user from the organization, deletes the external identity, and deletes the associated :scim_user_id.
\n
{\n \"Operations\":[{\n \"op\":\"replace\",\n \"value\":{\n \"active\":false\n }\n }]\n}\n\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "Operations": [
+ {
+ "op": "replace",
+ "value": {
+ "displayName": "Octocat"
+ }
+ }
+ ]
+ },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO"
+ "org": "ORG",
+ "scim_user_id": "SCIM_USER_ID"
}
},
"response": {
"statusCode": "200",
- "contentType": "application/json",
+ "contentType": "application/scim+json",
"description": "Response
",
"example": {
- "incremental_scans": [
- {
- "type": "git",
- "status": "completed",
- "completed_at": "2024-10-07T02:47:00Z"
- }
+ "schemas": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
],
- "backfill_scans": [
- {
- "type": "git",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:50:00Z"
- },
+ "id": "edefdfedf-050c-11e7-8d32",
+ "externalId": "a7d0f98382",
+ "userName": "mona.octocat@okta.example.com",
+ "displayName": "Monalisa Octocat",
+ "name": {
+ "givenName": "Monalisa",
+ "familyName": "Octocat",
+ "formatted": "Monalisa Octocat"
+ },
+ "emails": [
{
- "type": "issue",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:49:00Z"
+ "value": "mona.octocat@okta.example.com",
+ "primary": true
},
{
- "type": "discussion",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:48:00Z"
- }
- ],
- "pattern_update_scans": [
- {
- "type": "discussion",
- "status": "in_progress",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:51:00Z"
+ "value": "monalisa@octocat.github.com"
}
],
- "custom_pattern_backfill_scans": [
- {
- "type": "git",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:55:00Z",
- "pattern_slug": "my-custom-pattern",
- "pattern_scope": "enterprise"
- },
- {
- "type": "git",
- "status": "completed",
- "started_at": "2024-10-07T02:47:00Z",
- "completed_at": "2024-10-07T02:55:00Z",
- "pattern_slug": "my-custom-pattern",
- "pattern_scope": "organization"
- }
- ]
+ "active": true,
+ "meta": {
+ "resourceType": "User",
+ "created": "2017-03-09T16:11:13-05:00",
+ "lastModified": "2017-03-09T16:11:13-05:00",
+ "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32"
+ }
},
"schema": {
+ "title": "SCIM /Users",
+ "description": "SCIM /Users provisioning endpoints",
"type": "object",
"properties": {
- "incremental_scans": {
+ "schemas": {
+ "description": "SCIM schema used.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "string",
+ "examples": [
+ "urn:ietf:params:scim:schemas:core:2.0:User"
+ ]
+ }
+ },
+ "id": {
+ "description": "Unique identifier of an external identity",
+ "type": "string",
+ "examples": [
+ "1b78eada-9baa-11e6-9eb6-a431576d590e"
+ ]
+ },
+ "externalId": {
+ "description": "The ID of the User.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "a7b0f98395"
+ ]
+ },
+ "userName": {
+ "description": "Configured by the admin. Could be an email, login, or username",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "someone@example.com"
+ ]
+ },
+ "displayName": {
+ "description": "The name of the user, suitable for display to end-users",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Jon Doe"
+ ]
+ },
+ "name": {
+ "type": "object",
+ "properties": {
+ "givenName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "familyName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "formatted": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "example": {
+ "givenName": "Jane",
+ "familyName": "User"
+ }
+ },
+ "emails": {
+ "description": "user emails",
"type": "array",
"items": {
- "description": "Information on a single scan performed by secret scanning on the repository",
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
- },
- "status": {
- "type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ "value": {
+ "type": "string"
},
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
+ "primary": {
+ "type": "boolean"
},
- "started_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
+ "type": {
+ "type": "string"
}
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "examples": [
+ {
+ "value": "someone@example.com",
+ "primary": true
+ },
+ {
+ "value": "another@example.com",
+ "primary": false
+ }
+ ]
+ },
+ "active": {
+ "description": "The active status of the User.",
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "meta": {
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "created": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "lastModified": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2019-01-24T22:45:36.000Z"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d"
+ ]
}
}
},
- "pattern_update_scans": {
+ "organization_id": {
+ "description": "The ID of the organization.",
+ "type": "integer"
+ },
+ "operations": {
+ "description": "Set of operations to be performed",
"type": "array",
+ "minItems": 1,
"items": {
- "description": "Information on a single scan performed by secret scanning on the repository",
- "type": "object",
"properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
- },
- "status": {
+ "op": {
"type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ "enum": [
+ "add",
+ "remove",
+ "replace"
+ ]
},
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
+ "path": {
+ "type": "string"
},
- "started_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array",
+ "items": {}
+ }
+ ]
+ }
+ },
+ "required": [
+ "op"
+ ],
+ "type": "object"
+ },
+ "examples": [
+ {
+ "op": "replace",
+ "value": {
+ "active": false
}
}
- }
+ ]
},
- "backfill_scans": {
+ "groups": {
+ "description": "associated groups",
"type": "array",
"items": {
- "description": "Information on a single scan performed by secret scanning on the repository",
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
- },
- "status": {
- "type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
- },
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
+ "value": {
+ "type": "string"
},
- "started_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
+ "display": {
+ "type": "string"
}
}
}
},
- "custom_pattern_backfill_scans": {
+ "roles": {
"type": "array",
"items": {
- "allOf": [
- {
- "description": "Information on a single scan performed by secret scanning on the repository",
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of scan"
- },
- "status": {
- "type": "string",
- "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
- },
- "completed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was completed. Empty if the scan is running"
- },
- "started_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The time that the scan was started. Empty if the scan is pending"
- }
- }
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
},
- {
- "type": "object",
- "properties": {
- "pattern_name": {
- "type": "string",
- "description": "Name of the custom pattern for custom pattern scans"
- },
- "pattern_scope": {
- "type": "string",
- "description": "Level at which the custom pattern is defined, one of \"repository\", \"organization\", or \"enterprise\""
- }
- }
+ "primary": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string"
+ },
+ "display": {
+ "type": "string"
}
- ]
+ }
}
}
- }
+ },
+ "required": [
+ "id",
+ "schemas",
+ "emails",
+ "active",
+ "meta"
+ ]
}
}
}
@@ -744521,13 +789905,25 @@
"httpStatusCode": "200",
"description": "OK
"
},
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
{
"httpStatusCode": "404",
- "description": "Repository does not have GitHub Advanced Security or secret scanning enabled
"
+ "description": "Resource not found
"
},
{
- "httpStatusCode": "503",
- "description": "Service unavailable
"
+ "httpStatusCode": "429",
+ "description": "Too Many Requests
"
}
],
"previews": [],
@@ -744537,20 +789933,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read"
+ "\"Members\" organization permissions": "write"
}
]
}
- }
- ],
- "alert-dismissal-requests": [
+ },
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/dismissal-requests/secret-scanning",
- "title": "List alert dismissal requests for secret scanning for an org",
- "category": "secret-scanning",
- "subcategory": "alert-dismissal-requests",
+ "verb": "delete",
+ "requestPath": "/scim/v2/organizations/{org}/Users/{scim_user_id}",
+ "title": "Delete a SCIM user from an organization",
+ "category": "scim",
+ "subcategory": "scim",
"parameters": [
{
"name": "org",
@@ -744562,64 +789956,111 @@
}
},
{
- "name": "repository_name",
- "description": "The name of the repository to filter on.
",
- "in": "query",
+ "name": "scim_user_id",
+ "description": "The unique identifier of the SCIM user.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
- },
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Deletes a SCIM user from an organization.
",
+ "codeExamples": [
{
- "name": "reviewer",
- "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
+ "key": "204",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG",
+ "scim_user_id": "SCIM_USER_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "name": "requester",
- "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "httpStatusCode": "304",
+ "description": "Not modified
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "write"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "search": {
+ "search": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/search/code",
+ "title": "Search code",
+ "category": "search",
+ "subcategory": "search",
+ "parameters": [
+ {
+ "name": "q",
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching code \" for a detailed list of qualifiers.
",
"in": "query",
- "required": false,
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "name": "sort",
+ "deprecated": true,
+ "description": "This field is closing down. Sorts the results of your query. Can only be indexed, which indicates how recently a file has been indexed by the GitHub Enterprise Cloud search infrastructure. Default: best match
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
+ "indexed"
+ ]
}
},
{
- "name": "request_status",
- "description": "The status of the dismissal request to filter on. When specified, only requests with this status will be returned.
",
+ "name": "order",
+ "description": "This field is closing down. 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.
",
"in": "query",
+ "deprecated": true,
"required": false,
"schema": {
"type": "string",
"enum": [
- "completed",
- "cancelled",
- "approved",
- "expired",
- "denied",
- "open",
- "all"
+ "desc",
+ "asc"
],
- "default": "all"
+ "default": "desc"
}
},
{
@@ -744642,297 +790083,1088 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists requests to dismiss secret scanning alerts in an org.
\nDelegated alert dismissal must be enabled on repositories in the org and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.
",
+ "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to find the definition of the addClass function inside jQuery repository, your query would look something like this:
\nq=addClass+in:file+language:js+repo:jquery/jquery
\nThis query searches for the keyword addClass within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery repository.
\nConsiderations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\n\nOnly the default branch is considered. In most cases, this will be the master branch. \nOnly files smaller than 384 KB are searchable. \nYou must always include at least one search term when searching source code. For example, searching for language:go is not valid, while amazing language:go is. \n \nThis endpoint requires you to authenticate and limits you to 10 requests per minute.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "A list of the alert dismissal requests.
",
- "example": [
- {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning_closure",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "alert_number": 17,
- "reason": "false_positive"
- }
- ],
- "resource_identifier": 17,
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "description": "Response
",
+ "example": {
+ "total_count": 7,
+ "incomplete_results": false,
+ "items": [
+ {
+ "name": "classes.js",
+ "path": "src/attributes/classes.js",
+ "sha": "d7212f9dee2dcc18f084d7df8f417b80846ded5a",
+ "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=825ac3773694e0cd23ee74895fd5aeb535b27da4",
+ "git_url": "https://api.github.com/repositories/167174/git/blobs/d7212f9dee2dcc18f084d7df8f417b80846ded5a",
+ "html_url": "https://github.com/jquery/jquery/blob/825ac3773694e0cd23ee74895fd5aeb535b27da4/src/attributes/classes.js",
+ "repository": {
+ "id": 167174,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+ "name": "jquery",
+ "full_name": "jquery/jquery",
+ "owner": {
+ "login": "jquery",
+ "id": 70142,
+ "node_id": "MDQ6VXNlcjcwMTQy",
+ "avatar_url": "https://0.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https%3A%2F%2Fidenticons.github.com%2Ff426f04f2f9813718fb806b30e0093de.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jquery",
+ "html_url": "https://github.com/jquery",
+ "followers_url": "https://api.github.com/users/jquery/followers",
+ "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+ "organizations_url": "https://api.github.com/users/jquery/orgs",
+ "repos_url": "https://api.github.com/users/jquery/repos",
+ "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jquery/received_events",
+ "type": "Organization",
+ "site_admin": false
},
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21",
- "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
- },
- {
- "id": 22,
- "number": 43,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
+ "private": false,
+ "html_url": "https://github.com/jquery/jquery",
+ "description": "jQuery JavaScript Library",
+ "fork": false,
+ "url": "https://api.github.com/repos/jquery/jquery",
+ "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+ "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+ "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+ "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/jquery/jquery/events",
+ "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+ "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+ "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+ "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+ "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+ "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+ "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments/{number}",
+ "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+ "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+ "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+ "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
+ "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ },
+ "score": 1
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
},
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
+ "incomplete_results": {
+ "type": "boolean"
},
- "request_type": "secret_scanning_closure",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "alert_number": 19
- }
- ],
- "resource_identifier": 19,
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 46,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "approved",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/22",
- "html_url": "https://github.com/octo-org/smile/security/secret-scanning/19"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Secret scanning alert dismissal request",
- "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the dismissal request."
- },
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the dismissal request within its repository."
- },
- "repository": {
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Code Search Result Item",
+ "description": "Code Search Result Item",
"type": "object",
- "description": "The repository the dismissal request is for.",
"properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the repository the dismissal request is for."
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "repository": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
},
- "name": {
- "type": "string",
- "description": "The name of the repository the dismissal request is for."
+ "score": {
+ "type": "number"
},
- "full_name": {
- "type": "string",
- "description": "The full name of the repository the dismissal request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the dismissal request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
+ "file_size": {
+ "type": "integer"
},
- "name": {
- "type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the dismissal.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the dismissal."
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "actor_name": {
+ "last_modified_at": {
"type": "string",
- "description": "The name of the GitHub user who requested the dismissal."
- }
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the secret alert that is being requested to be dismissed.",
- "items": {
- "type": "object",
- "properties": {
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "alert_number": {
- "type": "string",
- "description": "The number of the secret scanning alert that was detected."
- },
- "reason": {
- "type": "string",
- "description": "The reason the user provided for requesting the dismissal.",
- "enum": [
- "fixed_later",
- "false_positive",
- "tests",
- "revoked"
- ]
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The number of the secret scanning alert that was detected.",
- "examples": [
- 1234
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the dismissal request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "expired"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the dismissal request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the dismissal request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the dismissal request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the dismissal request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
+ "format": "date-time"
+ },
+ "line_numbers": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "reviewer": {
+ "examples": [
+ "73..77",
+ "77..78"
+ ]
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
"type": "object",
- "description": "The user who reviewed the bypass request.",
"properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
+ "object_url": {
+ "type": "string"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
}
}
- },
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
}
}
- }
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the dismissal request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/security/secret-scanning/17"
+ },
+ "required": [
+ "score",
+ "name",
+ "path",
+ "sha",
+ "git_url",
+ "html_url",
+ "url",
+ "repository"
]
}
}
@@ -744944,19 +791176,23 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "A list of the alert dismissal requests.
"
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "403",
"description": "Forbidden
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -744964,91 +791200,53 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alert dismissal requests\" organization permissions": "read",
- "\"Secret scanning alerts\" repository permissions": "read"
- }
- ]
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/dismissal-requests/secret-scanning",
- "title": "List alert dismissal requests for secret scanning for a repository",
- "category": "secret-scanning",
- "subcategory": "alert-dismissal-requests",
+ "requestPath": "/search/commits",
+ "title": "Search commits",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "reviewer",
- "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "requester",
- "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "name": "q",
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching commits \" for a detailed list of qualifiers.
",
"in": "query",
- "required": false,
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "name": "sort",
+ "description": "Sorts the results of your query by author-date or committer-date. Default: best match
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
+ "author-date",
+ "committer-date"
+ ]
}
},
{
- "name": "request_status",
- "description": "The status of the dismissal request to filter on. When specified, only requests with this status will be returned.
",
+ "name": "order",
+ "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.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "completed",
- "cancelled",
- "approved",
- "expired",
- "denied",
- "open",
- "all"
+ "desc",
+ "asc"
],
- "default": "all"
+ "default": "desc"
}
},
{
@@ -745071,628 +791269,1467 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists requests to dismiss secret scanning alerts in a repository.
\nDelegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.
",
+ "descriptionHTML": "Find commits via various criteria on the default branch (usually main). This method returns up to 100 results per page .
\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\nmetadata .
\nFor example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "A list of the alert dismissal requests.
",
- "example": [
- {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning_closure",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "alert_number": 17,
- "reason": "false_positive"
- }
- ],
- "resource_identifier": 17,
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "description": "Response
",
+ "example": {
+ "total_count": 1,
+ "incomplete_results": false,
+ "items": [
+ {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f/comments",
+ "commit": {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f",
+ "author": {
+ "date": "2014-02-04T14:38:36-08:00",
+ "name": "The Octocat",
+ "email": "octocat@nowhere.com"
},
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21",
- "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
- },
- {
- "id": 22,
- "number": 43,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning_closure",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "alert_number": 19
- }
- ],
- "resource_identifier": 19,
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 46,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "committer": {
+ "date": "2014-02-12T15:18:55-08:00",
+ "name": "The Octocat",
+ "email": "octocat@nowhere.com"
},
- "status": "approved",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/22",
- "html_url": "https://github.com/octo-org/smile/security/secret-scanning/19"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Secret scanning alert dismissal request",
- "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the dismissal request."
+ "message": "Create styles.css and updated README",
+ "tree": {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa68",
+ "sha": "a639e96f9038797fba6e0469f94a4b0cc459fa68"
+ },
+ "comment_count": 8
},
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the dismissal request within its repository."
+ "author": {
+ "login": "octocat",
+ "id": 583231,
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
+ "committer": {},
+ "parents": [
+ {
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
+ "html_url": "https://github.com/octocat/Spoon-Knife/commit/a30c19e3f13765a3b48829788bc1cb8b4e95cee4",
+ "sha": "a30c19e3f13765a3b48829788bc1cb8b4e95cee4"
+ }
+ ],
"repository": {
+ "id": 1300192,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMzAwMTky",
+ "name": "Spoon-Knife",
+ "full_name": "octocat/Spoon-Knife",
+ "owner": {
+ "login": "octocat",
+ "id": 583231,
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Spoon-Knife",
+ "description": "This repo is for demonstration purposes only.",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Spoon-Knife",
+ "forks_url": "https://api.github.com/repos/octocat/Spoon-Knife/forks",
+ "keys_url": "https://api.github.com/repos/octocat/Spoon-Knife/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Spoon-Knife/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/octocat/Spoon-Knife/teams",
+ "hooks_url": "https://api.github.com/repos/octocat/Spoon-Knife/hooks",
+ "issue_events_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/octocat/Spoon-Knife/events",
+ "assignees_url": "https://api.github.com/repos/octocat/Spoon-Knife/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/octocat/Spoon-Knife/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/tags",
+ "blobs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/octocat/Spoon-Knife/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/octocat/Spoon-Knife/languages",
+ "stargazers_url": "https://api.github.com/repos/octocat/Spoon-Knife/stargazers",
+ "contributors_url": "https://api.github.com/repos/octocat/Spoon-Knife/contributors",
+ "subscribers_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscription",
+ "commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/octocat/Spoon-Knife/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/octocat/Spoon-Knife/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/octocat/Spoon-Knife/merges",
+ "archive_url": "https://api.github.com/repos/octocat/Spoon-Knife/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/octocat/Spoon-Knife/downloads",
+ "issues_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/octocat/Spoon-Knife/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/octocat/Spoon-Knife/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Spoon-Knife/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/octocat/Spoon-Knife/labels{/name}",
+ "releases_url": "https://api.github.com/repos/octocat/Spoon-Knife/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/octocat/Spoon-Knife/deployments"
+ },
+ "score": 1,
+ "node_id": "MDQ6VXNlcjU4MzIzMQ=="
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Commit Search Result Item",
+ "description": "Commit Search Result Item",
"type": "object",
- "description": "The repository the dismissal request is for.",
"properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the repository the dismissal request is for."
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "name": {
+ "sha": {
+ "type": "string"
+ },
+ "html_url": {
"type": "string",
- "description": "The name of the repository the dismissal request is for."
+ "format": "uri"
},
- "full_name": {
+ "comments_url": {
"type": "string",
- "description": "The full name of the repository the dismissal request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the dismissal request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
+ "format": "uri"
+ },
+ "commit": {
+ "type": "object",
+ "properties": {
+ "author": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "date": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "name",
+ "email",
+ "date"
+ ]
+ },
+ "committer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Git User",
+ "description": "Metaproperties for Git author/committer information.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "\"Chris Wanstrath\""
+ ]
+ },
+ "email": {
+ "type": "string",
+ "examples": [
+ "\"chris@ozmm.org\""
+ ]
+ },
+ "date": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "\"2007-10-29T02:42:39.000-07:00\""
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "comment_count": {
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "tree": {
+ "type": "object",
+ "properties": {
+ "sha": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "sha",
+ "url"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "verification": {
+ "title": "Verification",
+ "type": "object",
+ "properties": {
+ "verified": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "payload": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "signature": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "verified_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "verified",
+ "reason",
+ "payload",
+ "signature",
+ "verified_at"
+ ]
+ }
+ },
+ "required": [
+ "author",
+ "committer",
+ "comment_count",
+ "message",
+ "tree",
+ "url"
+ ]
+ },
+ "author": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "committer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Git User",
+ "description": "Metaproperties for Git author/committer information.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "examples": [
+ "\"Chris Wanstrath\""
+ ]
+ },
+ "email": {
+ "type": "string",
+ "examples": [
+ "\"chris@ozmm.org\""
+ ]
+ },
+ "date": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "\"2007-10-29T02:42:39.000-07:00\""
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "parents": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string"
+ },
+ "html_url": {
+ "type": "string"
+ },
+ "sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "repository": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ },
+ "score": {
+ "type": "number"
},
- "name": {
- "type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the dismissal.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the dismissal."
+ "node_id": {
+ "type": "string"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who requested the dismissal."
- }
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the secret alert that is being requested to be dismissed.",
- "items": {
- "type": "object",
- "properties": {
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "alert_number": {
- "type": "string",
- "description": "The number of the secret scanning alert that was detected."
- },
- "reason": {
- "type": "string",
- "description": "The reason the user provided for requesting the dismissal.",
- "enum": [
- "fixed_later",
- "false_positive",
- "tests",
- "revoked"
- ]
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The number of the secret scanning alert that was detected.",
- "examples": [
- 1234
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the dismissal request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "expired"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the dismissal request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the dismissal request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the dismissal request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the dismissal request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
- },
- "reviewer": {
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
"type": "object",
- "description": "The user who reviewed the bypass request.",
"properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
+ "object_url": {
+ "type": "string"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
}
}
- },
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
}
}
- }
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the dismissal request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/security/secret-scanning/17"
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "A list of the alert dismissal requests.
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Contents\" repository permissions": "read",
- "\"Secret scanning alert dismissal requests\" repository permissions": "read"
- },
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Contents\" repository permissions": "read",
- "\"Secret scanning alert dismissal requests\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}",
- "title": "Get an alert dismissal request for secret scanning",
- "category": "secret-scanning",
- "subcategory": "alert-dismissal-requests",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "alert_number",
- "in": "path",
- "required": true,
- "description": "The number that identifies the secret scanning alert in a repository.
",
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a specific request to dismiss a secret scanning alert in a repository.
\nDelegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "alert_number": "ALERT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "A single dismissal request.
",
- "example": {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning_closure",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "alert_number": 17,
- "reason": "false_positive"
- }
- ],
- "resource_identifier": 17,
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21",
- "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
- },
- "schema": {
- "title": "Secret scanning alert dismissal request",
- "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the dismissal request."
- },
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the dismissal request within its repository."
- },
- "repository": {
- "type": "object",
- "description": "The repository the dismissal request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the repository the dismissal request is for."
- },
- "name": {
- "type": "string",
- "description": "The name of the repository the dismissal request is for."
- },
- "full_name": {
- "type": "string",
- "description": "The full name of the repository the dismissal request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the dismissal request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
- },
- "name": {
- "type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the dismissal.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the dismissal."
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who requested the dismissal."
- }
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the secret alert that is being requested to be dismissed.",
- "items": {
- "type": "object",
- "properties": {
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "alert_number": {
- "type": "string",
- "description": "The number of the secret scanning alert that was detected."
- },
- "reason": {
- "type": "string",
- "description": "The reason the user provided for requesting the dismissal.",
- "enum": [
- "fixed_later",
- "false_positive",
- "tests",
- "revoked"
- ]
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The number of the secret scanning alert that was detected.",
- "examples": [
- 1234
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the dismissal request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "expired"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the dismissal request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the dismissal request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the dismissal request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the dismissal request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
- },
- "reviewer": {
- "type": "object",
- "description": "The user who reviewed the bypass request.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
- },
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
- }
- }
- },
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
- }
- }
+ "required": [
+ "sha",
+ "node_id",
+ "url",
+ "html_url",
+ "author",
+ "committer",
+ "parents",
+ "comments_url",
+ "commit",
+ "repository",
+ "score"
+ ]
}
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the dismissal request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/security/secret-scanning/17"
- ]
}
}
}
@@ -745702,19 +792739,11 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "A single dismissal request.
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "description": "OK
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
}
],
"previews": [],
@@ -745722,227 +792751,62 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Contents\" repository permissions": "read"
- }
- ]
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
},
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}",
- "title": "Review an alert dismissal request for secret scanning",
- "category": "secret-scanning",
- "subcategory": "alert-dismissal-requests",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "alert_number",
- "in": "path",
- "required": true,
- "description": "The number that identifies the secret scanning alert in a repository.
",
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "status",
- "in": "body",
- "description": "The review action to perform on the dismissal request.
",
- "isRequired": true,
- "enum": [
- "approve",
- "deny"
- ]
- },
- {
- "type": "string",
- "name": "message",
- "in": "body",
- "description": "A message to include with the review. Has a maximum character length of 2048.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Approve or deny a request to dismiss a secret scanning alert in a repository.
\nDelegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "status": "deny",
- "message": "This secret has not been revoked."
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "alert_number": "ALERT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "The review of the dismissal request.
",
- "example": {
- "dismissal_review_id": 1
- },
- "schema": {
- "type": "object",
- "properties": {
- "dismissal_review_id": {
- "type": "integer",
- "description": "ID of the dismissal review."
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "The review of the dismissal request.
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Contents\" repository permissions": "read",
- "\"Secret scanning alert dismissal requests\" organization permissions": "write"
- },
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Contents\" repository permissions": "read",
- "\"Secret scanning alert dismissal requests\" repository permissions": "write"
- }
- ]
- }
- }
- ],
- "delegated-bypass": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/enterprises/{enterprise}/bypass-requests/secret-scanning",
- "title": "List bypass requests for secret scanning for an enterprise",
- "category": "secret-scanning",
- "subcategory": "delegated-bypass",
+ "requestPath": "/search/issues",
+ "title": "Search issues and pull requests",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "enterprise",
- "description": "The slug version of the enterprise name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "organization_name",
- "description": "The name of the organization to filter on.
",
- "in": "query",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "reviewer",
- "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "requester",
- "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "name": "q",
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching issues and pull requests \" for a detailed list of qualifiers.
",
"in": "query",
- "required": false,
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "name": "sort",
+ "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
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
+ "comments",
+ "reactions",
+ "reactions-+1",
+ "reactions--1",
+ "reactions-smile",
+ "reactions-thinking_face",
+ "reactions-heart",
+ "reactions-tada",
+ "interactions",
+ "created",
+ "updated"
+ ]
}
},
{
- "name": "request_status",
- "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
+ "name": "order",
+ "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.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "completed",
- "cancelled",
- "approved",
- "expired",
- "deleted",
- "denied",
- "open",
- "all"
+ "desc",
+ "asc"
],
- "default": "all"
+ "default": "desc"
}
},
{
@@ -745962,736 +792826,2875 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "advanced_search",
+ "description": "Set to true to use advanced search.\nExample: http://api.github.com/search/issues?q={query}&advanced_search=true
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": "List requests to bypass secret scanning push protection in an enterprise.
\nDelegated bypass must be enabled on repositories in the enterprise and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "descriptionHTML": "Find issues by state and keyword. This method returns up to 100 results per page .
\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\nsearch results, see Text match metadata .
\nFor example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
\nThis query searches for the keyword windows, within any open issue that is labeled as bug. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
\n Note
\n
\nFor requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue or is:pull-request qualifier will receive an HTTP 422 Unprocessable Entity response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is qualifier, see \"Searching only issues or pull requests .\"
\n
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "enterprise": "ENTERPRISE"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "used_in_tests",
- "path": "/tests/README.md:16:0",
- "branch": "refs/heads/main"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
- "html_url": "https://github.com/octo-org/smile/exemptions/1"
- },
- {
- "id": 12,
- "number": 24,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "fix_later",
- "path": "README.md:17:0",
- "branch": "refs/heads/my-branch"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
- "status": "denied",
- "requester_comment": "Token is already revoked, I'll remove it later",
- "expires_at": "2024-07-08T07:43:03Z",
- "created_at": "2024-07-01T07:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "example": {
+ "total_count": 280,
+ "incomplete_results": false,
+ "items": [
+ {
+ "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132",
+ "repository_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit",
+ "labels_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/labels{/name}",
+ "comments_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/comments",
+ "events_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/events",
+ "html_url": "https://github.com/batterseapower/pinyin-toolkit/issues/132",
+ "id": 35802,
+ "node_id": "MDU6SXNzdWUzNTgwMg==",
+ "number": 132,
+ "title": "Line Number Indexes Beyond 20 Not Displayed",
+ "user": {
+ "login": "Nick3C",
+ "id": 90254,
+ "node_id": "MDQ6VXNlcjkwMjU0",
+ "avatar_url": "https://secure.gravatar.com/avatar/934442aadfe3b2f4630510de416c5718?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/Nick3C",
+ "html_url": "https://github.com/Nick3C",
+ "followers_url": "https://api.github.com/users/Nick3C/followers",
+ "following_url": "https://api.github.com/users/Nick3C/following{/other_user}",
+ "gists_url": "https://api.github.com/users/Nick3C/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/Nick3C/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/Nick3C/subscriptions",
+ "organizations_url": "https://api.github.com/users/Nick3C/orgs",
+ "repos_url": "https://api.github.com/users/Nick3C/repos",
+ "events_url": "https://api.github.com/users/Nick3C/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/Nick3C/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "labels": [
+ {
+ "id": 4,
+ "node_id": "MDU6TGFiZWw0",
+ "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/labels/bug",
+ "name": "bug",
+ "color": "ff0000"
+ }
+ ],
+ "state": "open",
+ "assignee": null,
+ "milestone": {
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
+ "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
+ "id": 1002604,
+ "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
+ "number": 1,
+ "state": "open",
+ "title": "v1.0",
+ "description": "Tracking milestone for version 1.0",
+ "creator": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2",
- "html_url": "https://github.com/octo-org/smile/exemptions/2"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Secret scanning bypass request",
- "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the bypass request."
+ "open_issues": 4,
+ "closed_issues": 8,
+ "created_at": "2011-04-10T20:09:31Z",
+ "updated_at": "2014-03-03T18:58:10Z",
+ "closed_at": "2013-02-12T13:22:01Z",
+ "due_on": "2012-10-09T23:39:01Z"
},
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the bypass request within its repository."
+ "comments": 15,
+ "created_at": "2009-07-12T20:10:41Z",
+ "updated_at": "2009-07-19T09:23:43Z",
+ "closed_at": null,
+ "pull_request": {
+ "url": "https://api/github.com/repos/octocat/Hello-World/pull/1347",
+ "html_url": "https://github.com/octocat/Hello-World/pull/1347",
+ "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
+ "patch_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347"
},
- "repository": {
+ "body": "...",
+ "score": 1,
+ "locked": true,
+ "author_association": "COLLABORATOR",
+ "state_reason": "completed"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
+ },
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Issue Search Result Item",
+ "description": "Issue Search Result Item",
"type": "object",
- "description": "The repository the bypass request is for.",
"properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "repository_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ },
"id": {
"type": "integer",
- "description": "The ID of the repository the bypass request is for."
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "number": {
+ "type": "integer"
+ },
+ "title": {
+ "type": "string"
+ },
+ "locked": {
+ "type": "boolean"
+ },
+ "active_lock_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "user": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ }
+ }
+ },
+ "sub_issues_summary": {
+ "title": "Sub-issues Summary",
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "completed": {
+ "type": "integer"
+ },
+ "percent_completed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "percent_completed"
+ ]
+ },
+ "issue_dependencies_summary": {
+ "title": "Issue Dependencies Summary",
+ "type": "object",
+ "properties": {
+ "blocked_by": {
+ "type": "integer"
+ },
+ "blocking": {
+ "type": "integer"
+ },
+ "total_blocked_by": {
+ "type": "integer"
+ },
+ "total_blocking": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blocked_by",
+ "blocking",
+ "total_blocked_by",
+ "total_blocking"
+ ]
+ },
+ "issue_field_values": {
+ "type": "array",
+ "items": {
+ "title": "Issue Field Value",
+ "description": "A value assigned to an issue field",
+ "type": "object",
+ "properties": {
+ "issue_field_id": {
+ "description": "Unique identifier for the issue field.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "IFT_GDKND"
+ ]
+ },
+ "data_type": {
+ "description": "The data type of the issue field",
+ "type": "string",
+ "enum": [
+ "text",
+ "single_select",
+ "number",
+ "date"
+ ],
+ "examples": [
+ "text"
+ ]
+ },
+ "value": {
+ "description": "The value of the issue field",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "Sample text"
+ ]
+ },
+ {
+ "type": "number",
+ "examples": [
+ 42.5
+ ]
+ },
+ {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ ],
+ "type": [
+ "null",
+ "string",
+ "number",
+ "integer"
+ ]
+ },
+ "single_select_option": {
+ "description": "Details about the selected option (only present for single_select fields)",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier for the option.",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "name": {
+ "description": "The name of the option",
+ "type": "string",
+ "examples": [
+ "High"
+ ]
+ },
+ "color": {
+ "description": "The color of the option",
+ "type": "string",
+ "examples": [
+ "red"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ]
+ }
+ },
+ "required": [
+ "issue_field_id",
+ "node_id",
+ "data_type",
+ "value"
+ ]
+ }
+ },
+ "state": {
+ "type": "string"
+ },
+ "state_reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "milestone": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Milestone",
+ "description": "A collection of related issues and pull requests.",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World/milestones/v1.0"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1002604
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDk6TWlsZXN0b25lMTAwMjYwNA=="
+ ]
+ },
+ "number": {
+ "description": "The number of the milestone.",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "state": {
+ "description": "The state of the milestone.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "default": "open",
+ "examples": [
+ "open"
+ ]
+ },
+ "title": {
+ "description": "The title of the milestone.",
+ "type": "string",
+ "examples": [
+ "v1.0"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "Tracking milestone for version 1.0"
+ ]
+ },
+ "creator": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 4
+ ]
+ },
+ "closed_issues": {
+ "type": "integer",
+ "examples": [
+ 8
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-04-10T20:09:31Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2014-03-03T18:58:10Z"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2013-02-12T13:22:01Z"
+ ]
+ },
+ "due_on": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2012-10-09T23:39:01Z"
+ ]
+ }
+ },
+ "required": [
+ "closed_issues",
+ "creator",
+ "description",
+ "due_on",
+ "closed_at",
+ "id",
+ "node_id",
+ "labels_url",
+ "html_url",
+ "number",
+ "open_issues",
+ "state",
+ "title",
+ "url",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
},
- "name": {
- "type": "string",
- "description": "The name of the repository the bypass request is for."
+ "comments": {
+ "type": "integer"
},
- "full_name": {
+ "created_at": {
"type": "string",
- "description": "The full name of the repository the bypass request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the bypass request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
+ "format": "date-time"
},
- "name": {
+ "updated_at": {
"type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the bypass.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the bypass."
+ "format": "date-time"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who requested the bypass."
- }
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the push rules that are being requested to be bypassed.",
- "items": {
- "type": "object",
- "properties": {
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "bypass_reason": {
- "type": "string",
- "enum": [
- "used_in_tests",
- "false_positive",
- "fix_later"
- ],
- "description": "The reason the bypass was requested."
- },
- "path": {
- "type": "string",
- "description": "The path in the repo where the secret was located during the request."
- },
- "branch": {
- "type": "string",
- "description": "The branch in the repo where the secret was located during the request."
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the bypass request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "completed",
- "expired",
- "open"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the bypass request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the bypass request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
- },
- "reviewer": {
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
"type": "object",
- "description": "The user who reviewed the bypass request.",
"properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
+ "object_url": {
+ "type": "string"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
}
}
- },
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
}
- }
- }
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the bypass request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/exemptions/1"
- ]
- }
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/bypass-requests/secret-scanning",
- "title": "List bypass requests for secret scanning for an org",
- "category": "secret-scanning",
- "subcategory": "delegated-bypass",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repository_name",
- "description": "The name of the repository to filter on.
",
- "in": "query",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "reviewer",
- "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "requester",
- "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
- }
- },
- {
- "name": "request_status",
- "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "completed",
- "cancelled",
- "approved",
- "expired",
- "deleted",
- "denied",
- "open",
- "all"
- ],
- "default": "all"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List requests to bypass secret scanning push protection in an org.
\nDelegated bypass must be enabled on repositories in the org and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "used_in_tests",
- "path": "/tests/README.md:16:0",
- "branch": "refs/heads/main"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
- "html_url": "https://github.com/octo-org/smile/exemptions/1"
- },
- {
- "id": 12,
- "number": 24,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "fix_later",
- "path": "README.md:17:0",
- "branch": "refs/heads/my-branch"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
- "status": "denied",
- "requester_comment": "Token is already revoked, I'll remove it later",
- "expires_at": "2024-07-08T07:43:03Z",
- "created_at": "2024-07-01T07:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2",
- "html_url": "https://github.com/octo-org/smile/exemptions/2"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Secret scanning bypass request",
- "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the bypass request."
- },
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the bypass request within its repository."
- },
- "repository": {
- "type": "object",
- "description": "The repository the bypass request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the repository the bypass request is for."
},
- "name": {
- "type": "string",
- "description": "The name of the repository the bypass request is for."
+ "pull_request": {
+ "type": "object",
+ "properties": {
+ "merged_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "diff_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "patch_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "diff_url",
+ "html_url",
+ "patch_url",
+ "url"
+ ]
},
- "full_name": {
- "type": "string",
- "description": "The full name of the repository the bypass request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the bypass request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
+ "body": {
+ "type": "string"
},
- "name": {
- "type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the bypass.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the bypass."
+ "score": {
+ "type": "number"
},
- "actor_name": {
+ "author_association": {
+ "title": "author_association",
"type": "string",
- "description": "The name of the GitHub user who requested the bypass."
- }
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the push rules that are being requested to be bypassed.",
- "items": {
- "type": "object",
- "properties": {
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "bypass_reason": {
- "type": "string",
- "enum": [
- "used_in_tests",
- "false_positive",
- "fix_later"
- ],
- "description": "The reason the bypass was requested."
- },
- "path": {
- "type": "string",
- "description": "The path in the repo where the secret was located during the request."
+ "description": "How the author is associated with the repository.",
+ "enum": [
+ "COLLABORATOR",
+ "CONTRIBUTOR",
+ "FIRST_TIMER",
+ "FIRST_TIME_CONTRIBUTOR",
+ "MANNEQUIN",
+ "MEMBER",
+ "NONE",
+ "OWNER"
+ ],
+ "examples": [
+ "OWNER"
+ ]
+ },
+ "draft": {
+ "type": "boolean"
+ },
+ "repository": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
},
- "branch": {
- "type": "string",
- "description": "The branch in the repo where the secret was located during the request."
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the bypass request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "completed",
- "expired",
- "open"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the bypass request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the bypass request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "body_html": {
+ "type": "string"
+ },
+ "body_text": {
+ "type": "string"
+ },
+ "timeline_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "title": "Issue Type",
+ "description": "The type of issue.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the issue type."
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The node identifier of the issue type."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the issue type."
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The description of the issue type."
+ },
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The color of the issue type.",
+ "enum": [
+ "gray",
+ "blue",
+ "green",
+ "yellow",
+ "orange",
+ "red",
+ "pink",
+ "purple",
+ null
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time the issue type created.",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "The time the issue type last updated.",
+ "format": "date-time"
+ },
+ "is_enabled": {
+ "type": "boolean",
+ "description": "The enabled state of the issue type."
+ }
},
- "reviewer": {
- "type": "object",
- "description": "The user who reviewed the bypass request.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "description"
+ ]
+ },
+ "performed_via_github_app": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "GitHub app",
+ "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the GitHub app",
+ "type": "integer",
+ "examples": [
+ 37
+ ]
+ },
+ "slug": {
+ "description": "The slug name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "probot-owners"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDExOkludGVncmF0aW9uMQ=="
+ ]
+ },
+ "client_id": {
+ "type": "string",
+ "examples": [
+ "\"Iv1.25b5d1e65ffc4022\""
+ ]
+ },
+ "owner": {
+ "oneOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ {
+ "title": "Enterprise",
+ "description": "An enterprise on GitHub.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "description": "A short description of the enterprise.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/enterprises/octo-business"
+ ]
+ },
+ "website_url": {
+ "description": "The enterprise's website URL.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "id": {
+ "description": "Unique identifier of the enterprise",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the enterprise.",
+ "type": "string",
+ "examples": [
+ "Octo Business"
+ ]
+ },
+ "slug": {
+ "description": "The slug url identifier for the enterprise.",
+ "type": "string",
+ "examples": [
+ "octo-business"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2019-01-26T19:14:43Z"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "name",
+ "slug",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "avatar_url"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "description": "The name of the GitHub app",
+ "type": "string",
+ "examples": [
+ "Probot Owners"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "The description of the app."
+ ]
+ },
+ "external_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://example.com"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/apps/super-ci"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-08T16:18:44-04:00"
+ ]
+ },
+ "permissions": {
+ "description": "The set of permissions for the GitHub app",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "string"
+ },
+ "checks": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "contents": {
+ "type": "string"
+ },
+ "deployments": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "type": "string"
+ },
+ "example": {
+ "issues": "read",
+ "deployments": "write"
+ }
+ },
+ "events": {
+ "description": "The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "label",
+ "deployment"
+ ]
+ },
+ "installations_count": {
+ "description": "The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
+ "type": "integer",
+ "examples": [
+ 5
+ ]
+ }
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
- }
+ "required": [
+ "id",
+ "node_id",
+ "owner",
+ "name",
+ "description",
+ "external_url",
+ "html_url",
+ "created_at",
+ "updated_at",
+ "permissions",
+ "events"
+ ]
+ }
+ ]
+ },
+ "reactions": {
+ "title": "Reaction Rollup",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "total_count": {
+ "type": "integer"
+ },
+ "+1": {
+ "type": "integer"
+ },
+ "-1": {
+ "type": "integer"
+ },
+ "laugh": {
+ "type": "integer"
+ },
+ "confused": {
+ "type": "integer"
+ },
+ "heart": {
+ "type": "integer"
+ },
+ "hooray": {
+ "type": "integer"
+ },
+ "eyes": {
+ "type": "integer"
+ },
+ "rocket": {
+ "type": "integer"
}
},
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
- }
+ "required": [
+ "url",
+ "total_count",
+ "+1",
+ "-1",
+ "laugh",
+ "confused",
+ "heart",
+ "hooray",
+ "eyes",
+ "rocket"
+ ]
}
- }
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the bypass request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/exemptions/1"
+ },
+ "required": [
+ "assignee",
+ "closed_at",
+ "comments",
+ "comments_url",
+ "events_url",
+ "html_url",
+ "id",
+ "node_id",
+ "labels",
+ "labels_url",
+ "milestone",
+ "number",
+ "repository_url",
+ "state",
+ "locked",
+ "title",
+ "url",
+ "user",
+ "author_association",
+ "created_at",
+ "updated_at",
+ "score"
]
}
}
@@ -746706,12 +795709,20 @@
"description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -746719,92 +795730,62 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Organization bypass requests for secret scanning\" organization permissions": "read"
- }
- ]
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/bypass-requests/secret-scanning",
- "title": "List bypass requests for secret scanning for a repository",
- "category": "secret-scanning",
- "subcategory": "delegated-bypass",
+ "requestPath": "/search/labels",
+ "title": "Search labels",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "reviewer",
- "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "name": "repository_id",
+ "description": "The id of the repository.
",
"in": "query",
- "required": false,
+ "required": true,
"schema": {
- "type": "string"
+ "type": "integer"
}
},
{
- "name": "requester",
- "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "name": "q",
+ "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 .
",
"in": "query",
- "required": false,
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "time_period",
- "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "name": "sort",
+ "description": "Sorts the results of your query by when the label was created or updated. Default: best match
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "hour",
- "day",
- "week",
- "month"
- ],
- "default": "day"
+ "created",
+ "updated"
+ ]
}
},
{
- "name": "request_status",
- "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
+ "name": "order",
+ "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.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
- "completed",
- "cancelled",
- "approved",
- "expired",
- "deleted",
- "denied",
- "open",
- "all"
+ "desc",
+ "asc"
],
- "default": "all"
+ "default": "desc"
}
},
{
@@ -746827,306 +795808,144 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists requests to bypass secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page .
\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 .
\nFor example, if you want to find labels in the linguist repository that match bug, defect, or enhancement. Your query might look like this:
\nq=bug+defect+enhancement&repository_id=64778136
\nThe labels that best match the query appear first in the search results.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "A list of the bypass requests.
",
- "example": [
- {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "used_in_tests",
- "path": "/tests/README.md:16:0",
- "branch": "refs/heads/main"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
- "html_url": "https://github.com/octo-org/smile/exemptions/1"
- },
- {
- "id": 12,
- "number": 24,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "incomplete_results": false,
+ "items": [
+ {
+ "id": 418327088,
+ "node_id": "MDU6TGFiZWw0MTgzMjcwODg=",
+ "url": "https://api.github.com/repos/octocat/linguist/labels/enhancement",
+ "name": "enhancement",
+ "color": "84b6eb",
+ "default": true,
+ "description": "New feature or request.",
+ "score": 1
},
- "organization": {
- "id": 1,
- "name": "octo-org"
+ {
+ "id": 418327086,
+ "node_id": "MDU6TGFiZWw0MTgzMjcwODY=",
+ "url": "https://api.github.com/repos/octocat/linguist/labels/bug",
+ "name": "bug",
+ "color": "ee0701",
+ "default": true,
+ "description": "Something isn't working.",
+ "score": 1
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
+ "properties": {
+ "total_count": {
+ "type": "integer"
},
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
+ "incomplete_results": {
+ "type": "boolean"
},
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "fix_later",
- "path": "README.md:17:0",
- "branch": "refs/heads/my-branch"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
- "status": "denied",
- "requester_comment": "Token is already revoked, I'll remove it later",
- "expires_at": "2024-07-08T07:43:03Z",
- "created_at": "2024-07-01T07:43:03Z",
- "responses": [
- {
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
- },
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
- }
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2",
- "html_url": "https://github.com/octo-org/smile/exemptions/2"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Secret scanning bypass request",
- "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the bypass request."
- },
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the bypass request within its repository."
- },
- "repository": {
+ "items": {
+ "type": "array",
+ "items": {
+ "title": "Label Search Result Item",
+ "description": "Label Search Result Item",
"type": "object",
- "description": "The repository the bypass request is for.",
"properties": {
"id": {
- "type": "integer",
- "description": "The ID of the repository the bypass request is for."
+ "type": "integer"
},
- "name": {
- "type": "string",
- "description": "The name of the repository the bypass request is for."
+ "node_id": {
+ "type": "string"
},
- "full_name": {
+ "url": {
"type": "string",
- "description": "The full name of the repository the bypass request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the bypass request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
+ "format": "uri"
},
"name": {
- "type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the bypass.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the bypass."
+ "type": "string"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who requested the bypass."
- }
- }
- },
- "request_type": {
- "type": "string",
- "description": "The type of request."
- },
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the push rules that are being requested to be bypassed.",
- "items": {
- "type": "object",
- "properties": {
- "secret_type": {
- "type": "string",
- "description": "The type of secret that secret scanning detected."
- },
- "bypass_reason": {
- "type": "string",
- "enum": [
- "used_in_tests",
- "false_positive",
- "fix_later"
- ],
- "description": "The reason the bypass was requested."
- },
- "path": {
- "type": "string",
- "description": "The path in the repo where the secret was located during the request."
- },
- "branch": {
- "type": "string",
- "description": "The branch in the repo where the secret was located during the request."
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the bypass request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "completed",
- "expired",
- "open"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the bypass request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the bypass request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
- },
- "reviewer": {
+ "color": {
+ "type": "string"
+ },
+ "default": {
+ "type": "boolean"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "score": {
+ "type": "number"
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
"type": "object",
- "description": "The user who reviewed the bypass request.",
"properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
+ "object_url": {
+ "type": "string"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
}
}
- },
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
}
}
- }
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the bypass request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/exemptions/1"
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "name",
+ "color",
+ "default",
+ "description",
+ "score"
]
}
}
@@ -747138,7 +795957,11 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "A list of the bypass requests.
"
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "403",
@@ -747149,8 +795972,8 @@
"description": "Resource not found
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -747160,431 +795983,898 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Organization bypass requests for secret scanning\" organization permissions": "read"
- },
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Secret scanning push protection bypass requests\" repository permissions": "read"
+ "\"Metadata\" repository permissions": "read"
}
- ]
+ ],
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}",
- "title": "Get a bypass request for secret scanning",
- "category": "secret-scanning",
- "subcategory": "delegated-bypass",
+ "requestPath": "/search/repositories",
+ "title": "Search repositories",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
+ "name": "q",
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching for repositories \" for a detailed list of qualifiers.
",
+ "in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "sort",
+ "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
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "stars",
+ "forks",
+ "help-wanted-issues",
+ "updated"
+ ]
}
},
{
- "name": "bypass_request_number",
- "in": "path",
- "required": true,
- "description": "The number that identifies the bypass request in a repository.
",
+ "name": "order",
+ "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.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "integer"
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Gets a specific request to bypass secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "descriptionHTML": "Find repositories via various criteria. This method returns up to 100 results per page .
\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 .
\nFor example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
\nThis query searches for repositories with the word tetris in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "bypass_request_number": "BYPASS_REQUEST_NUMBER"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "A single bypass request.
",
+ "description": "Response
",
"example": {
- "id": 21,
- "number": 42,
- "repository": {
- "id": 1,
- "name": "smile",
- "full_name": "octo-org/smile"
- },
- "organization": {
- "id": 1,
- "name": "octo-org"
- },
- "requester": {
- "actor_id": 12,
- "actor_name": "monalisa"
- },
- "request_type": "secret_scanning",
- "data": [
- {
- "secret_type": "adafruit_io_key",
- "bypass_reason": "used_in_tests",
- "path": "/tests/README.md:16:0",
- "branch": "refs/heads/main"
- }
- ],
- "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
- "status": "denied",
- "requester_comment": "Test token used in the readme as an example",
- "expires_at": "2024-07-08T08:43:03Z",
- "created_at": "2024-07-01T08:43:03Z",
- "responses": [
+ "total_count": 40,
+ "incomplete_results": false,
+ "items": [
{
- "id": 42,
- "reviewer": {
- "actor_id": 4,
- "actor_name": "octocat"
+ "id": 3081286,
+ "node_id": "MDEwOlJlcG9zaXRvcnkzMDgxMjg2",
+ "name": "Tetris",
+ "full_name": "dtrupenn/Tetris",
+ "owner": {
+ "login": "dtrupenn",
+ "id": 872147,
+ "node_id": "MDQ6VXNlcjg3MjE0Nw==",
+ "avatar_url": "https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/dtrupenn",
+ "received_events_url": "https://api.github.com/users/dtrupenn/received_events",
+ "type": "User",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "site_admin": true
},
- "status": "denied",
- "created_at": "2024-07-02T08:43:04Z"
+ "private": false,
+ "html_url": "https://github.com/dtrupenn/Tetris",
+ "description": "A C implementation of Tetris using Pennsim through LC4",
+ "fork": false,
+ "url": "https://api.github.com/repos/dtrupenn/Tetris",
+ "created_at": "2012-01-01T00:31:50Z",
+ "updated_at": "2013-01-05T17:58:47Z",
+ "pushed_at": "2012-01-01T00:37:02Z",
+ "homepage": "https://github.com",
+ "size": 524,
+ "stargazers_count": 1,
+ "watchers_count": 1,
+ "language": "Assembly",
+ "forks_count": 0,
+ "open_issues_count": 0,
+ "master_branch": "master",
+ "default_branch": "master",
+ "score": 1,
+ "archive_url": "https://api.github.com/repos/dtrupenn/Tetris/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/dtrupenn/Tetris/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/dtrupenn/Tetris/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/dtrupenn/Tetris/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/dtrupenn/Tetris/comments{/number}",
+ "commits_url": "https://api.github.com/repos/dtrupenn/Tetris/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/dtrupenn/Tetris/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/dtrupenn/Tetris/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/dtrupenn/Tetris/contributors",
+ "deployments_url": "https://api.github.com/repos/dtrupenn/Tetris/deployments",
+ "downloads_url": "https://api.github.com/repos/dtrupenn/Tetris/downloads",
+ "events_url": "https://api.github.com/repos/dtrupenn/Tetris/events",
+ "forks_url": "https://api.github.com/repos/dtrupenn/Tetris/forks",
+ "git_commits_url": "https://api.github.com/repos/dtrupenn/Tetris/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/dtrupenn/Tetris/git/tags{/sha}",
+ "git_url": "git:github.com/dtrupenn/Tetris.git",
+ "issue_comment_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/dtrupenn/Tetris/issues{/number}",
+ "keys_url": "https://api.github.com/repos/dtrupenn/Tetris/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/dtrupenn/Tetris/labels{/name}",
+ "languages_url": "https://api.github.com/repos/dtrupenn/Tetris/languages",
+ "merges_url": "https://api.github.com/repos/dtrupenn/Tetris/merges",
+ "milestones_url": "https://api.github.com/repos/dtrupenn/Tetris/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/dtrupenn/Tetris/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/dtrupenn/Tetris/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/dtrupenn/Tetris/releases{/id}",
+ "ssh_url": "git@github.com:dtrupenn/Tetris.git",
+ "stargazers_url": "https://api.github.com/repos/dtrupenn/Tetris/stargazers",
+ "statuses_url": "https://api.github.com/repos/dtrupenn/Tetris/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/dtrupenn/Tetris/subscribers",
+ "subscription_url": "https://api.github.com/repos/dtrupenn/Tetris/subscription",
+ "tags_url": "https://api.github.com/repos/dtrupenn/Tetris/tags",
+ "teams_url": "https://api.github.com/repos/dtrupenn/Tetris/teams",
+ "trees_url": "https://api.github.com/repos/dtrupenn/Tetris/git/trees{/sha}",
+ "clone_url": "https://github.com/dtrupenn/Tetris.git",
+ "mirror_url": "git:git.example.com/dtrupenn/Tetris",
+ "hooks_url": "https://api.github.com/repos/dtrupenn/Tetris/hooks",
+ "svn_url": "https://svn.github.com/dtrupenn/Tetris",
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1,
+ "has_issues": true,
+ "has_projects": true,
+ "has_pages": true,
+ "has_wiki": true,
+ "has_downloads": true,
+ "archived": true,
+ "disabled": true,
+ "visibility": "private",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ }
}
- ],
- "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
- "html_url": "https://github.com/octo-org/smile/exemptions/1"
+ ]
},
"schema": {
- "title": "Secret scanning bypass request",
- "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
"type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
"properties": {
- "id": {
- "type": "integer",
- "description": "The unique identifier of the bypass request."
- },
- "number": {
- "type": "integer",
- "description": "The number uniquely identifying the bypass request within its repository."
- },
- "repository": {
- "type": "object",
- "description": "The repository the bypass request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the repository the bypass request is for."
- },
- "name": {
- "type": "string",
- "description": "The name of the repository the bypass request is for."
- },
- "full_name": {
- "type": "string",
- "description": "The full name of the repository the bypass request is for."
- }
- }
- },
- "organization": {
- "type": "object",
- "description": "The organization associated with the repository the bypass request is for.",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the organization."
- },
- "name": {
- "type": "string",
- "description": "The name of the organization."
- }
- }
- },
- "requester": {
- "type": "object",
- "description": "The user who requested the bypass.",
- "properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who requested the bypass."
- },
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who requested the bypass."
- }
- }
+ "total_count": {
+ "type": "integer"
},
- "request_type": {
- "type": "string",
- "description": "The type of request."
+ "incomplete_results": {
+ "type": "boolean"
},
- "data": {
- "type": [
- "array",
- "null"
- ],
- "description": "Data describing the push rules that are being requested to be bypassed.",
+ "items": {
+ "type": "array",
"items": {
+ "title": "Repo Search Result Item",
+ "description": "Repo Search Result Item",
"type": "object",
"properties": {
- "secret_type": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "full_name": {
+ "type": "string"
+ },
+ "owner": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
- "description": "The type of secret that secret scanning detected."
+ "format": "uri"
},
- "bypass_reason": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
- "enum": [
- "used_in_tests",
- "false_positive",
- "fix_later"
+ "format": "uri"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
],
- "description": "The reason the bypass was requested."
+ "format": "uri"
},
- "path": {
+ "size": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "score": {
+ "type": "number"
+ },
+ "forks_url": {
"type": "string",
- "description": "The path in the repo where the secret was located during the request."
+ "format": "uri"
},
- "branch": {
+ "keys_url": {
+ "type": "string"
+ },
+ "collaborators_url": {
+ "type": "string"
+ },
+ "teams_url": {
"type": "string",
- "description": "The branch in the repo where the secret was located during the request."
- }
- }
- }
- },
- "resource_identifier": {
- "type": "string",
- "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
- "examples": [
- "827efc6d56897b048c772eb4087f854f46256132"
- ]
- },
- "status": {
- "type": "string",
- "description": "The status of the bypass request.",
- "enum": [
- "pending",
- "denied",
- "approved",
- "cancelled",
- "completed",
- "expired",
- "open"
- ]
- },
- "requester_comment": {
- "type": [
- "string",
- "null"
- ],
- "description": "The comment the requester provided when creating the bypass request."
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request will expire."
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the bypass request was created."
- },
- "responses": {
- "type": [
- "array",
- "null"
- ],
- "description": "The responses to the bypass request.",
- "items": {
- "title": "Bypass response",
- "description": "A response made by a delegated bypasser to a bypass request.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "description": "The ID of the response to the bypass request."
+ "format": "uri"
},
- "reviewer": {
+ "hooks_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "issue_events_url": {
+ "type": "string"
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "assignees_url": {
+ "type": "string"
+ },
+ "branches_url": {
+ "type": "string"
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "blobs_url": {
+ "type": "string"
+ },
+ "git_tags_url": {
+ "type": "string"
+ },
+ "git_refs_url": {
+ "type": "string"
+ },
+ "trees_url": {
+ "type": "string"
+ },
+ "statuses_url": {
+ "type": "string"
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "commits_url": {
+ "type": "string"
+ },
+ "git_commits_url": {
+ "type": "string"
+ },
+ "comments_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string"
+ },
+ "contents_url": {
+ "type": "string"
+ },
+ "compare_url": {
+ "type": "string"
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "archive_url": {
+ "type": "string"
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "issues_url": {
+ "type": "string"
+ },
+ "pulls_url": {
+ "type": "string"
+ },
+ "milestones_url": {
+ "type": "string"
+ },
+ "notifications_url": {
+ "type": "string"
+ },
+ "labels_url": {
+ "type": "string"
+ },
+ "releases_url": {
+ "type": "string"
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ },
+ "has_issues": {
+ "type": "boolean"
+ },
+ "has_projects": {
+ "type": "boolean"
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_wiki": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string"
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "permissions": {
"type": "object",
- "description": "The user who reviewed the bypass request.",
"properties": {
- "actor_id": {
- "type": "integer",
- "description": "The ID of the GitHub user who reviewed the bypass request."
+ "admin": {
+ "type": "boolean"
},
- "actor_name": {
- "type": "string",
- "description": "The name of the GitHub user who reviewed the bypass request."
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
+ },
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
}
}
},
- "status": {
- "type": "string",
- "description": "The response status to the bypass request until dismissed.",
- "enum": [
- "approved",
- "denied",
- "dismissed"
- ]
+ "temp_clone_token": {
+ "type": "string"
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time the response to the bypass request was created."
+ "allow_merge_commit": {
+ "type": "boolean"
+ },
+ "allow_squash_merge": {
+ "type": "boolean"
+ },
+ "allow_rebase_merge": {
+ "type": "boolean"
+ },
+ "allow_auto_merge": {
+ "type": "boolean"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
}
- }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "score"
+ ]
}
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
- ]
- },
- "html_url": {
- "type": "string",
- "description": "The URL to view the bypass request in a browser.",
- "format": "uri",
- "examples": [
- "https://github.com/octo-org/smile/exemptions/1"
- ]
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "A single bypass request.
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Organization bypass requests for secret scanning\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}",
- "title": "Review a bypass request for secret scanning",
- "category": "secret-scanning",
- "subcategory": "delegated-bypass",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "bypass_request_number",
- "in": "path",
- "required": true,
- "description": "The number that identifies the bypass request in a repository.
",
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "status",
- "in": "body",
- "description": "The review action to perform on the bypass request.
",
- "isRequired": true,
- "enum": [
- "approve",
- "reject"
- ]
- },
- {
- "type": "string",
- "name": "message",
- "in": "body",
- "description": "A message to include with the review. Has a maximum character length of 2048.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Approve or deny a request to bypass secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "status": "reject",
- "message": "This secret has not been revoked."
- },
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "bypass_request_number": "BYPASS_REQUEST_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "The review of the bypass request.
",
- "example": {
- "bypass_review_id": 1
- },
- "schema": {
- "type": "object",
- "properties": {
- "bypass_review_id": {
- "type": "integer",
- "description": "ID of the bypass review."
}
}
}
@@ -747594,23 +796884,19 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "The review of the bypass request.
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "description": "OK
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "422",
"description": "Validation failed, or the endpoint has been spammed.
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -747618,343 +796904,339 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Organization bypass requests for secret scanning\" organization permissions": "write"
- },
- {
- "\"Secret scanning alerts\" repository permissions": "read",
- "\"Secret scanning push protection bypass requests\" repository permissions": "write"
- }
- ]
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}",
- "title": "Dismiss a response on a bypass request for secret scanning",
- "category": "secret-scanning",
- "subcategory": "delegated-bypass",
+ "verb": "get",
+ "requestPath": "/search/topics",
+ "title": "Search topics",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
+ "name": "q",
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query .
",
+ "in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
- "name": "bypass_response_id",
- "in": "path",
- "required": true,
- "description": "ID of the bypass response.
",
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
"schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Dissmiss a response given to a bypass request for secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "bypass_response_id": "BYPASS_RESPONSE_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Review was successfully dismissed.
"
+ "type": "integer",
+ "default": 30
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "Review was successfully dismissed.
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
},
{
- "httpStatusCode": "500",
- "description": "Internal Error
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": false,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Secret scanning alerts\" repository permissions": "read"
- }
- ]
- }
- }
- ],
- "push-protection": [
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/enterprises/{enterprise}/secret-scanning/pattern-configurations",
- "title": "List enterprise pattern configurations",
- "category": "secret-scanning",
- "subcategory": "push-protection",
- "parameters": [
- {
- "name": "enterprise",
- "description": "The slug version of the enterprise name.
",
- "in": "path",
- "required": true,
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
"schema": {
- "type": "string"
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists the secret scanning pattern configurations for an enterprise.
\nPersonal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page . See \"Searching topics \" for a detailed list of qualifiers.
\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 .
\nFor example, if you want to search for topics related to Ruby that are featured on https://github.com/topics . Your query might look like this:
\nq=ruby+is:featured
\nThis query searches for topics with the keyword ruby and limits 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.
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "enterprise": "ENTERPRISE"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "provider_pattern_overrides": [
+ "total_count": 6,
+ "incomplete_results": false,
+ "items": [
+ {
+ "name": "ruby",
+ "display_name": "Ruby",
+ "short_description": "Ruby is a scripting language designed for simplified object-oriented programming.",
+ "description": "Ruby was developed by Yukihiro \"Matz\" Matsumoto in 1995 with the intent of having an easily readable programming language. It is integrated with the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.",
+ "created_by": "Yukihiro Matsumoto",
+ "released": "December 21, 1995",
+ "created_at": "2016-11-28T22:03:59Z",
+ "updated_at": "2017-10-30T18:16:32Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "rails",
+ "display_name": "Rails",
+ "short_description": "Ruby on Rails (Rails) is a web application framework written in Ruby.",
+ "description": "Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.",
+ "created_by": "David Heinemeier Hansson",
+ "released": "December 13 2005",
+ "created_at": "2016-12-09T17:03:50Z",
+ "updated_at": "2017-10-30T16:20:19Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "python",
+ "display_name": "Python",
+ "short_description": "Python is a dynamically typed programming language.",
+ "description": "Python is a dynamically typed programming language designed by Guido Van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.",
+ "created_by": "Guido van Rossum",
+ "released": "February 20, 1991",
+ "created_at": "2016-12-07T00:07:02Z",
+ "updated_at": "2017-10-27T22:45:43Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
+ {
+ "name": "jekyll",
+ "display_name": "Jekyll",
+ "short_description": "Jekyll is a simple, blog-aware static site generator.",
+ "description": "Jekyll is a blog-aware, site generator written in Ruby. It takes raw text files, runs it through a renderer and produces a publishable static website.",
+ "created_by": "Tom Preston-Werner",
+ "released": "2008",
+ "created_at": "2016-12-16T21:53:08Z",
+ "updated_at": "2017-10-27T19:00:24Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
{
- "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
- "slug": "github_personal_access_token_legacy_v2",
- "display_name": "GitHub Personal Access Token (Legacy v2)",
- "alert_total": 15,
- "alert_total_percentage": 36,
- "false_positives": 2,
- "false_positive_rate": 13,
- "bypass_rate": 13,
- "default_setting": "enabled",
- "setting": "enabled",
- "enterprise_setting": "enabled"
- }
- ],
- "custom_pattern_overrides": [
+ "name": "sass",
+ "display_name": "Sass",
+ "short_description": "Sass is a stable extension to classic CSS.",
+ "description": "Sass is a stylesheet language with a main implementation in Ruby. It is an extension of CSS that makes improvements to the old stylesheet format, such as being able to declare variables and using a cleaner nesting syntax.",
+ "created_by": "Hampton Catlin, Natalie Weizenbaum, Chris Eppstein",
+ "released": "November 28, 2006",
+ "created_at": "2016-12-16T21:53:45Z",
+ "updated_at": "2018-01-16T16:30:40Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
+ },
{
- "token_type": "cp_2",
- "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "slug": "custom-api-key",
- "display_name": "Custom API Key",
- "alert_total": 15,
- "alert_total_percentage": 36,
- "false_positives": 3,
- "false_positive_rate": 20,
- "bypass_rate": 20,
- "default_setting": "disabled",
- "setting": "enabled"
+ "name": "homebrew",
+ "display_name": "Homebrew",
+ "short_description": "Homebrew is a package manager for macOS.",
+ "description": "Homebrew is a package manager for Apple's macOS operating system. It simplifies the installation of software and is popular in the Ruby on Rails community.",
+ "created_by": "Max Howell",
+ "released": "2009",
+ "created_at": "2016-12-17T20:30:44Z",
+ "updated_at": "2018-02-06T16:14:56Z",
+ "featured": true,
+ "curated": true,
+ "score": 1
}
]
},
"schema": {
- "title": "Secret scanning pattern configuration",
- "description": "A collection of secret scanning patterns and their settings related to push protection.",
"type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
"properties": {
- "pattern_config_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
+ "total_count": {
+ "type": "integer"
},
- "provider_pattern_overrides": {
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
"type": "array",
- "description": "Overrides for partner patterns.",
"items": {
+ "title": "Topic Search Result Item",
+ "description": "Topic Search Result Item",
"type": "object",
"properties": {
- "token_type": {
- "type": "string",
- "description": "The ID of the pattern."
+ "name": {
+ "type": "string"
},
- "custom_pattern_version": {
+ "display_name": {
"type": [
"string",
"null"
- ],
- "description": "The version of this pattern if it's a custom pattern."
- },
- "slug": {
- "type": "string",
- "description": "The slug of the pattern."
- },
- "display_name": {
- "type": "string",
- "description": "The user-friendly name for the pattern."
- },
- "alert_total": {
- "type": "integer",
- "description": "The total number of alerts generated by this pattern."
- },
- "alert_total_percentage": {
- "type": "integer",
- "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
- },
- "false_positives": {
- "type": "integer",
- "description": "The number of false positive alerts generated by this pattern."
- },
- "false_positive_rate": {
- "type": "integer",
- "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
- },
- "bypass_rate": {
- "type": "integer",
- "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
+ ]
},
- "default_setting": {
- "type": "string",
- "description": "The default push protection setting for this pattern.",
- "enum": [
- "disabled",
- "enabled"
+ "short_description": {
+ "type": [
+ "string",
+ "null"
]
},
- "enterprise_setting": {
+ "description": {
"type": [
"string",
"null"
- ],
- "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
- "enum": [
- "not-set",
- "disabled",
- "enabled",
- null
]
},
- "setting": {
- "type": "string",
- "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
+ "created_by": {
+ "type": [
+ "string",
+ "null"
]
- }
- }
- }
- },
- "custom_pattern_overrides": {
- "type": "array",
- "description": "Overrides for custom patterns defined by the organization.",
- "items": {
- "type": "object",
- "properties": {
- "token_type": {
- "type": "string",
- "description": "The ID of the pattern."
},
- "custom_pattern_version": {
+ "released": {
"type": [
"string",
"null"
- ],
- "description": "The version of this pattern if it's a custom pattern."
+ ]
},
- "slug": {
+ "created_at": {
"type": "string",
- "description": "The slug of the pattern."
+ "format": "date-time"
},
- "display_name": {
+ "updated_at": {
"type": "string",
- "description": "The user-friendly name for the pattern."
- },
- "alert_total": {
- "type": "integer",
- "description": "The total number of alerts generated by this pattern."
- },
- "alert_total_percentage": {
- "type": "integer",
- "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
+ "format": "date-time"
},
- "false_positives": {
- "type": "integer",
- "description": "The number of false positive alerts generated by this pattern."
+ "featured": {
+ "type": "boolean"
},
- "false_positive_rate": {
- "type": "integer",
- "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
+ "curated": {
+ "type": "boolean"
},
- "bypass_rate": {
- "type": "integer",
- "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
+ "score": {
+ "type": "number"
},
- "default_setting": {
- "type": "string",
- "description": "The default push protection setting for this pattern.",
- "enum": [
- "disabled",
- "enabled"
+ "repository_count": {
+ "type": [
+ "integer",
+ "null"
]
},
- "enterprise_setting": {
+ "logo_url": {
"type": [
"string",
"null"
],
- "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
- "enum": [
- "not-set",
- "disabled",
- "enabled",
- null
- ]
+ "format": "uri"
},
- "setting": {
- "type": "string",
- "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
+ },
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "related": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "topic_relation": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "topic_id": {
+ "type": "integer"
+ },
+ "relation_type": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "aliases": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "topic_relation": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "topic_id": {
+ "type": "integer"
+ },
+ "relation_type": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
}
- }
+ },
+ "required": [
+ "name",
+ "display_name",
+ "short_description",
+ "description",
+ "created_by",
+ "released",
+ "created_at",
+ "updated_at",
+ "featured",
+ "curated",
+ "score"
+ ]
}
}
}
@@ -747968,412 +797250,350 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
}
],
"previews": [],
"progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/enterprises/{enterprise}/secret-scanning/pattern-configurations",
- "title": "Update enterprise pattern configurations",
- "category": "secret-scanning",
- "subcategory": "push-protection",
+ "verb": "get",
+ "requestPath": "/search/users",
+ "title": "Search users",
+ "category": "search",
+ "subcategory": "search",
"parameters": [
{
- "name": "enterprise",
- "description": "The slug version of the enterprise name.
",
- "in": "path",
+ "name": "q",
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query . See \"Searching users \" for a detailed list of qualifiers.
",
+ "in": "query",
"required": true,
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string or null",
- "name": "pattern_config_version",
- "in": "body",
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
- },
- {
- "type": "array of objects",
- "name": "provider_pattern_settings",
- "in": "body",
- "description": "Pattern settings for provider patterns.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "token_type",
- "description": "The ID of the pattern to configure.
"
- },
- {
- "type": "string",
- "name": "push_protection_setting",
- "description": "Push protection setting to set for the pattern.
",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
- }
- ]
},
{
- "type": "array of objects",
- "name": "custom_pattern_settings",
- "in": "body",
- "description": "Pattern settings for custom patterns.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "token_type",
- "description": "The ID of the pattern to configure.
"
- },
- {
- "type": "string or null",
- "name": "custom_pattern_version",
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
- },
- {
- "type": "string",
- "name": "push_protection_setting",
- "description": "Push protection setting to set for the pattern.
",
- "enum": [
- "disabled",
- "enabled"
- ]
- }
- ]
- }
- ],
- "descriptionHTML": "Updates the secret scanning pattern configurations for an enterprise.
\nPersonal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "provider_pattern_settings": [
- {
- "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
- "push_protection_setting": "enabled"
- }
- ],
- "custom_pattern_settings": [
- {
- "token_type": "cp_2",
- "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "push_protection_setting": "enabled"
- }
- ]
- },
- "parameters": {
- "enterprise": "ENTERPRISE"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"
- },
- "schema": {
- "type": "object",
- "properties": {
- "pattern_config_version": {
- "type": "string",
- "description": "The updated pattern configuration version."
- }
- }
- }
+ "name": "sort",
+ "description": "Sorts the results of your query by number of followers or repositories, or when the person joined GitHub Enterprise Cloud. Default: best match
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "followers",
+ "repositories",
+ "joined"
+ ]
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "name": "order",
+ "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.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "desc",
+ "asc"
+ ],
+ "default": "desc"
+ }
},
{
- "httpStatusCode": "409",
- "description": "Conflict
"
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": false,
- "serverToServer": false,
- "fineGrainedPat": false,
- "permissions": []
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
- "title": "List organization pattern configurations",
- "category": "secret-scanning",
- "subcategory": "push-protection",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
"schema": {
- "type": "string"
+ "type": "integer",
+ "default": 1
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the read:org scope to use this endpoint.
",
+ "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page .
\nWhen searching for users, you can get text match metadata for the issue login , public email , and name fields when you pass the text-match media type. For more details about highlighting search results, see Text match metadata . For more details about how to receive highlighted search results, see Text match metadata .
\nFor example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
\nThis query searches for users with the name tom. The results are restricted to users with more than 42 repositories and over 1,000 followers.
\nThis endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries .\"
",
"codeExamples": [
{
"key": "default",
"request": {
"description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG"
- }
+ "acceptHeader": "application/vnd.github.v3+json"
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "provider_pattern_overrides": [
- {
- "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
- "slug": "github_personal_access_token_legacy_v2",
- "display_name": "GitHub Personal Access Token (Legacy v2)",
- "alert_total": 15,
- "alert_total_percentage": 36,
- "false_positives": 2,
- "false_positive_rate": 13,
- "bypass_rate": 13,
- "default_setting": "enabled",
- "setting": "enabled",
- "enterprise_setting": "enabled"
- }
- ],
- "custom_pattern_overrides": [
+ "total_count": 12,
+ "incomplete_results": false,
+ "items": [
{
- "token_type": "cp_2",
- "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "slug": "custom-api-key",
- "display_name": "Custom API Key",
- "alert_total": 15,
- "alert_total_percentage": 36,
- "false_positives": 3,
- "false_positive_rate": 20,
- "bypass_rate": 20,
- "default_setting": "disabled",
- "setting": "enabled"
+ "login": "mojombo",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/mojombo",
+ "html_url": "https://github.com/mojombo",
+ "followers_url": "https://api.github.com/users/mojombo/followers",
+ "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
+ "organizations_url": "https://api.github.com/users/mojombo/orgs",
+ "repos_url": "https://api.github.com/users/mojombo/repos",
+ "received_events_url": "https://api.github.com/users/mojombo/received_events",
+ "type": "User",
+ "score": 1,
+ "following_url": "https://api.github.com/users/mojombo/following{/other_user}",
+ "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
+ "events_url": "https://api.github.com/users/mojombo/events{/privacy}",
+ "site_admin": true
}
]
},
"schema": {
- "title": "Secret scanning pattern configuration",
- "description": "A collection of secret scanning patterns and their settings related to push protection.",
"type": "object",
+ "required": [
+ "total_count",
+ "incomplete_results",
+ "items"
+ ],
"properties": {
- "pattern_config_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
+ "total_count": {
+ "type": "integer"
},
- "provider_pattern_overrides": {
+ "incomplete_results": {
+ "type": "boolean"
+ },
+ "items": {
"type": "array",
- "description": "Overrides for partner patterns.",
"items": {
+ "title": "User Search Result Item",
+ "description": "User Search Result Item",
"type": "object",
"properties": {
- "token_type": {
+ "login": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "avatar_url": {
"type": "string",
- "description": "The ID of the pattern."
+ "format": "uri"
},
- "custom_pattern_version": {
+ "gravatar_id": {
"type": [
"string",
"null"
- ],
- "description": "The version of this pattern if it's a custom pattern."
+ ]
},
- "slug": {
+ "url": {
"type": "string",
- "description": "The slug of the pattern."
+ "format": "uri"
},
- "display_name": {
+ "html_url": {
"type": "string",
- "description": "The user-friendly name for the pattern."
+ "format": "uri"
},
- "alert_total": {
- "type": "integer",
- "description": "The total number of alerts generated by this pattern."
+ "followers_url": {
+ "type": "string",
+ "format": "uri"
},
- "alert_total_percentage": {
- "type": "integer",
- "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri"
},
- "false_positives": {
- "type": "integer",
- "description": "The number of false positive alerts generated by this pattern."
+ "organizations_url": {
+ "type": "string",
+ "format": "uri"
},
- "false_positive_rate": {
- "type": "integer",
- "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
+ "repos_url": {
+ "type": "string",
+ "format": "uri"
},
- "bypass_rate": {
- "type": "integer",
- "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
+ "received_events_url": {
+ "type": "string",
+ "format": "uri"
},
- "default_setting": {
+ "type": {
+ "type": "string"
+ },
+ "score": {
+ "type": "number"
+ },
+ "following_url": {
+ "type": "string"
+ },
+ "gists_url": {
+ "type": "string"
+ },
+ "starred_url": {
+ "type": "string"
+ },
+ "events_url": {
+ "type": "string"
+ },
+ "public_repos": {
+ "type": "integer"
+ },
+ "public_gists": {
+ "type": "integer"
+ },
+ "followers": {
+ "type": "integer"
+ },
+ "following": {
+ "type": "integer"
+ },
+ "created_at": {
"type": "string",
- "description": "The default push protection setting for this pattern.",
- "enum": [
- "disabled",
- "enabled"
- ]
+ "format": "date-time"
},
- "enterprise_setting": {
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
- "enum": [
- "not-set",
- "disabled",
- "enabled",
- null
]
},
- "setting": {
- "type": "string",
- "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
+ "bio": {
+ "type": [
+ "string",
+ "null"
]
- }
- }
- }
- },
- "custom_pattern_overrides": {
- "type": "array",
- "description": "Overrides for custom patterns defined by the organization.",
- "items": {
- "type": "object",
- "properties": {
- "token_type": {
- "type": "string",
- "description": "The ID of the pattern."
},
- "custom_pattern_version": {
+ "email": {
"type": [
"string",
"null"
],
- "description": "The version of this pattern if it's a custom pattern."
- },
- "slug": {
- "type": "string",
- "description": "The slug of the pattern."
- },
- "display_name": {
- "type": "string",
- "description": "The user-friendly name for the pattern."
+ "format": "email"
},
- "alert_total": {
- "type": "integer",
- "description": "The total number of alerts generated by this pattern."
+ "location": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "alert_total_percentage": {
- "type": "integer",
- "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
+ "site_admin": {
+ "type": "boolean"
},
- "false_positives": {
- "type": "integer",
- "description": "The number of false positive alerts generated by this pattern."
+ "hireable": {
+ "type": [
+ "boolean",
+ "null"
+ ]
},
- "false_positive_rate": {
- "type": "integer",
- "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
+ "text_matches": {
+ "title": "Search Result Text Matches",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "object_url": {
+ "type": "string"
+ },
+ "object_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "property": {
+ "type": "string"
+ },
+ "fragment": {
+ "type": "string"
+ },
+ "matches": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "indices": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
},
- "bypass_rate": {
- "type": "integer",
- "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
+ "blog": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "default_setting": {
- "type": "string",
- "description": "The default push protection setting for this pattern.",
- "enum": [
- "disabled",
- "enabled"
+ "company": {
+ "type": [
+ "string",
+ "null"
]
},
- "enterprise_setting": {
+ "suspended_at": {
"type": [
"string",
"null"
],
- "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
- "enum": [
- "not-set",
- "disabled",
- "enabled",
- null
- ]
+ "format": "date-time"
},
- "setting": {
- "type": "string",
- "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
+ "user_view_type": {
+ "type": "string"
}
- }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url",
+ "score"
+ ]
}
}
}
@@ -748387,173 +797607,16 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
- "title": "Update organization pattern configurations",
- "category": "secret-scanning",
- "subcategory": "push-protection",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string or null",
- "name": "pattern_config_version",
- "in": "body",
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
- },
- {
- "type": "array of objects",
- "name": "provider_pattern_settings",
- "in": "body",
- "description": "Pattern settings for provider patterns.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "token_type",
- "description": "The ID of the pattern to configure.
"
- },
- {
- "type": "string",
- "name": "push_protection_setting",
- "description": "Push protection setting to set for the pattern.
",
- "enum": [
- "not-set",
- "disabled",
- "enabled"
- ]
- }
- ]
- },
- {
- "type": "array of objects",
- "name": "custom_pattern_settings",
- "in": "body",
- "description": "Pattern settings for custom patterns.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "token_type",
- "description": "The ID of the pattern to configure.
"
- },
- {
- "type": "string or null",
- "name": "custom_pattern_version",
- "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
- },
- {
- "type": "string",
- "name": "push_protection_setting",
- "description": "Push protection setting to set for the pattern.
",
- "enum": [
- "disabled",
- "enabled"
- ]
- }
- ]
- }
- ],
- "descriptionHTML": "Updates the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the write:org scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "provider_pattern_settings": [
- {
- "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
- "push_protection_setting": "enabled"
- }
- ],
- "custom_pattern_settings": [
- {
- "token_type": "cp_2",
- "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
- "push_protection_setting": "enabled"
- }
- ]
- },
- "parameters": {
- "org": "ORG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"
- },
- "schema": {
- "type": "object",
- "properties": {
- "pattern_config_version": {
- "type": "string",
- "description": "The updated pattern configuration version."
- }
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "409",
- "description": "Conflict
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "422",
"description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -748561,177 +797624,121 @@
"userToServerRest": true,
"serverToServer": true,
"fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" organization permissions": "write"
- }
- ]
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
}
}
]
},
- "security-advisories": {
- "global-advisories": [
+ "secret-scanning": {
+ "secret-scanning": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/advisories",
- "title": "List global security advisories",
- "category": "security-advisories",
- "subcategory": "global-advisories",
+ "requestPath": "/enterprises/{enterprise}/secret-scanning/alerts",
+ "title": "List secret scanning alerts for an enterprise",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
"parameters": [
{
- "name": "ghsa_id",
- "in": "query",
- "description": "If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "type",
- "in": "query",
- "description": "If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
",
- "schema": {
- "type": "string",
- "enum": [
- "reviewed",
- "malware",
- "unreviewed"
- ],
- "default": "reviewed"
- }
- },
- {
- "name": "cve_id",
- "description": "If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.
",
- "in": "query",
+ "name": "enterprise",
+ "description": "The slug version of the enterprise name.
",
+ "in": "path",
+ "required": true,
"schema": {
"type": "string"
}
},
{
- "name": "ecosystem",
- "in": "query",
- "description": "If specified, only advisories for these ecosystems will be returned.
",
- "schema": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- }
- },
- {
- "name": "severity",
+ "name": "state",
"in": "query",
- "description": "If specified, only advisories with these severities will be returned.
",
+ "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
+ "required": false,
"schema": {
"type": "string",
"enum": [
- "unknown",
- "low",
- "medium",
- "high",
- "critical"
- ]
- }
- },
- {
- "name": "cwes",
- "in": "query",
- "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
\nExample: cwes=79,284,22 or cwes[]=79&cwes[]=284&cwes[]=22
",
- "schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
+ "open",
+ "resolved"
]
}
},
{
- "name": "is_withdrawn",
- "in": "query",
- "description": "Whether to only return advisories that have been withdrawn.
",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "affects",
+ "name": "secret_type",
"in": "query",
- "description": "If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified.\nIf the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
\nExample: affects=package1,package2@1.0.0,package3@2.0.0 or affects[]=package1&affects[]=package2@1.0.0
",
+ "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
+ "required": false,
"schema": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "maxItems": 1000,
- "items": {
- "type": "string"
- }
- }
- ]
+ "type": "string"
}
},
{
- "name": "published",
+ "name": "resolution",
"in": "query",
- "description": "If specified, only return advisories that were published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
+ "required": false,
"schema": {
"type": "string"
}
},
{
- "name": "updated",
+ "name": "assignee",
"in": "query",
- "description": "If specified, only return advisories that were updated on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
+ "required": false,
"schema": {
"type": "string"
+ },
+ "examples": {
+ "assigned-to-user": {
+ "value": "octocat",
+ "summary": "Filter for alerts assigned to the user \"octocat\""
+ },
+ "all-assigned": {
+ "value": "*",
+ "summary": "Filter for all assigned alerts"
+ },
+ "all-unassigned": {
+ "value": "none",
+ "summary": "Filter for all unassigned alerts"
+ }
}
},
{
- "name": "modified",
- "description": "If specified, only show advisories that were updated or published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "name": "sort",
+ "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
"in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "created",
+ "updated"
+ ],
+ "default": "created"
}
},
{
- "name": "epss_percentage",
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
"in": "query",
- "description": "If specified, only return advisories that have an EPSS percentage score that matches the provided value.\nThe EPSS percentage represents the likelihood of a CVE being exploited.
",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
}
},
{
- "name": "epss_percentile",
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
"in": "query",
- "description": "If specified, only return advisories that have an EPSS percentile score that matches the provided value.\nThe EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
",
"schema": {
- "type": "string"
+ "type": "integer",
+ "default": 30
}
},
{
@@ -748753,812 +797760,47 @@
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
+ "name": "validity",
"in": "query",
+ "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
"required": false,
"schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "type": "string"
}
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "name": "is_publicly_leaked",
"in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
+ "required": false,
"schema": {
- "type": "integer",
- "minimum": 1,
- "maximum": 100,
- "default": 30
+ "type": "boolean",
+ "default": false
}
},
{
- "name": "sort",
- "description": "The property to sort the results by.
",
+ "name": "is_multi_repo",
"in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
"required": false,
"schema": {
- "type": "string",
- "enum": [
- "updated",
- "published",
- "epss_percentage",
- "epss_percentile"
- ],
- "default": "published"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
\nBy default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type parameter in your request, with the value malware. For more information about the different types of security advisories, see \"About the GitHub Advisory database .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
- "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "summary": "Heartbleed security advisory",
- "description": "This bug allows an attacker to read portions of the affected server’s memory, potentially disclosing sensitive information.",
- "type": "reviewed",
- "severity": "high",
- "source_code_location": "https://github.com/project/a-package",
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "references": [
- "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
- ],
- "published_at": "2023-03-23T02:30:56Z",
- "updated_at": "2023-03-24T02:30:56Z",
- "github_reviewed_at": "2023-03-23T02:30:56Z",
- "nvd_published_at": "2023-03-25T02:30:56Z",
- "withdrawn_at": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "npm",
- "name": "a-package"
- },
- "first_patched_version": "1.0.3",
- "vulnerable_version_range": "<=1.0.2",
- "vulnerable_functions": [
- "a_function"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-400",
- "name": "Uncontrolled Resource Consumption"
- }
- ],
- "epss": [
- {
- "percentage": 0.00045,
- "percentile": "0.16001e0"
- }
- ],
- "credits": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst"
- }
- ]
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "description": "A GitHub Security Advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
- "readOnly": true
- },
- "url": {
- "type": "string",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "repository_advisory_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL for the repository advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
- },
- "type": {
- "type": "string",
- "description": "The type of advisory.",
- "readOnly": true,
- "enum": [
- "reviewed",
- "unreviewed",
- "malware"
- ]
- },
- "severity": {
- "type": "string",
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- "unknown"
- ]
- },
- "source_code_location": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL of the advisory's source code."
- },
- "identifiers": {
- "type": [
- "array",
- "null"
- ],
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- }
- },
- "references": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "string",
- "description": "URLs with more information regarding the advisory."
- }
- },
- "published_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "github_reviewed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
- "readOnly": true
- },
- "nvd_published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "description": "The products and respective version ranges affected by the advisory.",
- "items": {
- "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "first_patched_version": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version that resolves the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected by the vulnerability.",
- "readOnly": true,
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "first_patched_version",
- "vulnerable_functions"
- ]
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "epss": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
- "properties": {
- "percentage": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- },
- "percentile": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "description": "The users who contributed to the advisory.",
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- },
- "required": [
- "user",
- "type"
- ]
- }
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "repository_advisory_url",
- "summary",
- "description",
- "type",
- "severity",
- "source_code_location",
- "identifiers",
- "references",
- "published_at",
- "updated_at",
- "github_reviewed_at",
- "nvd_published_at",
- "withdrawn_at",
- "vulnerabilities",
- "cvss",
- "cwes",
- "credits"
- ],
- "additionalProperties": false
- }
- }
+ "type": "boolean",
+ "default": false
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
},
{
- "httpStatusCode": "429",
- "description": "Too many requests
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/advisories/{ghsa_id}",
- "title": "Get a global security advisory",
- "category": "security-advisories",
- "subcategory": "global-advisories",
- "parameters": [
- {
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
- "in": "path",
- "required": true,
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "boolean",
+ "default": false
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
",
+ "descriptionHTML": "Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.\nTo use this endpoint, you must be a member of the enterprise, and you must use an access token with the repo scope or security_events scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager , or for repositories owned by enterprise managed users.
",
"codeExamples": [
{
"key": "default",
@@ -749566,78 +797808,52 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "ghsa_id": "GHSA_ID"
+ "enterprise": "ENTERPRISE"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
- "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "type": "reviewed",
- "severity": "high",
- "source_code_location": "https://github.com/project/a-package",
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "references": [
- "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
- ],
- "published_at": "2023-03-23T02:30:56Z",
- "updated_at": "2023-03-24T02:30:56Z",
- "github_reviewed_at": "2023-03-23T02:30:56Z",
- "nvd_published_at": "2023-03-25T02:30:56Z",
- "withdrawn_at": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "npm",
- "name": "a-package"
- },
- "first_patched_version": "1.0.3",
- "vulnerable_version_range": "<=1.0.2",
- "vulnerable_functions": [
- "a_function"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
- "score": 7.6
+ "example": [
+ {
+ "number": 2,
+ "created_at": "2020-11-06T18:48:51Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
+ "state": "resolved",
+ "resolution": "false_positive",
+ "resolved_at": "2020-11-07T02:47:13Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
},
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-400",
- "name": "Uncontrolled Resource Consumption"
- }
- ],
- "credits": [
- {
- "user": {
+ "secret_type": "adafruit_io_key",
+ "secret_type_display_name": "Adafruit IO Key",
+ "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
+ "repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -749657,399 +797873,1709 @@
"type": "User",
"site_admin": false
},
- "type": "analyst"
- }
- ]
- },
- "schema": {
- "description": "A GitHub Security Advisory.",
- "type": "object",
- "properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
- "readOnly": true
- },
- "url": {
- "type": "string",
- "description": "The API URL for the advisory.",
- "readOnly": true
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
- },
- "repository_advisory_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The API URL for the repository advisory.",
- "readOnly": true
- },
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks"
},
- "type": {
- "type": "string",
- "description": "The type of advisory.",
- "readOnly": true,
- "enum": [
- "reviewed",
- "unreviewed",
- "malware"
- ]
+ "push_protection_bypassed_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
},
- "severity": {
- "type": "string",
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- "unknown"
- ]
+ "push_protection_bypassed": true,
+ "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
+ "push_protection_bypass_request_reviewer": {
+ "login": "octocat",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/3?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": true
},
- "source_code_location": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "description": "The URL of the advisory's source code."
+ "push_protection_bypass_request_reviewer_comment": "Example response",
+ "push_protection_bypass_request_comment": "Example comment",
+ "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
+ "resolution_comment": "Example comment",
+ "validity": "active",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "is_base64_encoded": false,
+ "first_location_detected": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
},
- "identifiers": {
- "type": [
- "array",
- "null"
- ],
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
+ "has_more_locations": true,
+ "assigned_to": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
+ "type": "string",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "value": {
+ {
"type": "string",
- "description": "The identifier value."
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
}
- },
- "required": [
- "type",
- "value"
]
- }
- },
- "references": {
- "type": [
- "array",
- "null"
- ],
- "items": {
+ },
+ "url": {
"type": "string",
- "description": "URLs with more information regarding the advisory."
- }
- },
- "published_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "github_reviewed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
- "readOnly": true
- },
- "nvd_published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "description": "The products and respective version ranges affected by the advisory.",
- "items": {
- "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
+ "description": "The REST API URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The GitHub URL of the alert resource.",
+ "format": "uri",
+ "readOnly": true
+ },
+ "locations_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
+ },
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
+ },
+ "resolved_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "repository": {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
"type": "object",
"properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "ecosystem": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
+ "examples": [
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
"string",
"null"
],
- "description": "The unique package name within its ecosystem."
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "ecosystem",
- "name"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
},
- "first_patched_version": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
],
- "description": "The package version that resolves the vulnerability."
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
},
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected by the vulnerability.",
- "readOnly": true,
- "items": {
- "type": "string"
- }
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
}
},
"required": [
- "package",
- "vulnerable_version_range",
- "first_patched_version",
- "vulnerable_functions"
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
]
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
},
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
+ "push_protection_bypassed": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
+ },
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypassed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "epss": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
- "properties": {
- "percentage": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- },
- "percentile": {
- "type": "number",
- "minimum": 0,
- "maximum": 100
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypass_request_reviewer_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when reviewing a push protection bypass."
+ },
+ "push_protection_bypass_request_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when requesting a push protection bypass."
+ },
+ "push_protection_bypass_request_html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment that was optionally added when this alert was closed"
+ },
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the secret was publicly leaked."
+ },
+ "multi_repo": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
+ },
+ "is_base64_encoded": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
+ "examples": [
+ "/example/Home.md"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "page_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082"
+ ]
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
+ ]
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ ]
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
+ }
+ ]
}
- },
- "required": [
- "cwe_id",
- "name"
]
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "description": "The users who contributed to the advisory.",
- "readOnly": true,
- "items": {
- "type": "object",
- "properties": {
- "user": {
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -750216,55 +799742,11 @@
"type",
"url"
]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
}
- },
- "required": [
- "user",
- "type"
]
}
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "repository_advisory_url",
- "summary",
- "description",
- "type",
- "severity",
- "source_code_location",
- "identifiers",
- "references",
- "published_at",
- "updated_at",
- "github_reviewed_at",
- "nvd_published_at",
- "withdrawn_at",
- "vulnerabilities",
- "cvss",
- "cwes",
- "credits"
- ],
- "additionalProperties": false
+ }
}
}
}
@@ -750277,27 +799759,27 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
"progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true,
- "allowsPublicRead": true
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
}
- }
- ],
- "repository-advisories": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/security-advisories",
- "title": "List repository security advisories for an organization",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "requestPath": "/orgs/{org}/secret-scanning/alerts",
+ "title": "List secret scanning alerts for an organization",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
"parameters": [
{
"name": "org",
@@ -750309,37 +799791,108 @@
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
+ "name": "state",
"in": "query",
+ "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
"required": false,
"schema": {
"type": "string",
"enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "open",
+ "resolved"
+ ]
+ }
+ },
+ {
+ "name": "secret_type",
+ "in": "query",
+ "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "assignee",
+ "in": "query",
+ "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "assigned-to-user": {
+ "value": "octocat",
+ "summary": "Filter for alerts assigned to the user \"octocat\""
+ },
+ "all-assigned": {
+ "value": "*",
+ "summary": "Filter for all assigned alerts"
+ },
+ "all-unassigned": {
+ "value": "none",
+ "summary": "Filter for all unassigned alerts"
+ }
}
},
{
"name": "sort",
- "description": "The property to sort the results by.
",
+ "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
"created",
- "updated",
- "published"
+ "updated"
],
"default": "created"
}
},
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
{
"name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
"in": "query",
"required": false,
"schema": {
@@ -750348,7 +799901,7 @@
},
{
"name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
"in": "query",
"required": false,
"schema": {
@@ -750356,35 +799909,47 @@
}
},
{
- "name": "per_page",
- "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "name": "validity",
"in": "query",
+ "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
"required": false,
"schema": {
- "type": "integer",
- "minimum": 1,
- "maximum": 100,
- "default": 30
+ "type": "string"
}
},
{
- "name": "state",
- "description": "Filter by the state of the repository advisories. Only advisories of this state will be returned.
",
+ "name": "is_publicly_leaked",
"in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
"required": false,
"schema": {
- "type": "string",
- "enum": [
- "triage",
- "draft",
- "published",
- "closed"
- ]
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "is_multi_repo",
+ "in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists repository security advisories for an organization.
\nThe authenticated user must be an owner or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "descriptionHTML": "Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
\nThe authenticated user must be an administrator or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
"codeExamples": [
{
"key": "default",
@@ -750401,18 +799966,131 @@
"description": "Response
",
"example": [
{
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
+ "number": 2,
+ "created_at": "2020-11-06T18:48:51Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
+ "state": "resolved",
+ "resolution": "false_positive",
+ "resolved_at": "2020-11-07T02:47:13Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "secret_type": "adafruit_io_key",
+ "secret_type_display_name": "Adafruit IO Key",
+ "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
+ "repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks"
+ },
+ "push_protection_bypassed_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "push_protection_bypassed": true,
+ "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
+ "push_protection_bypass_request_reviewer": {
"login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/3?",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
@@ -750426,9 +800104,29 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
- "site_admin": false
+ "site_admin": true
},
- "publisher": {
+ "push_protection_bypass_request_reviewer_comment": "Example response",
+ "push_protection_bypass_request_comment": "Example comment",
+ "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
+ "resolution_comment": "Example comment",
+ "validity": "active",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "is_base64_encoded": false,
+ "first_location_detected": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ },
+ "has_more_locations": true,
+ "assigned_to": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -750447,459 +800145,90 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": null
- },
- {
- "ghsa_id": "GHSA-1234-5678-9012",
- "cve_id": "CVE-2051-0000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "low",
- "author": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "monalisa",
- "id": 3,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-1234-5678-9012"
- },
- {
- "type": "CVE",
- "value": "CVE-2051-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-03T00:00:00Z",
- "updated_at": "2020-01-04T00:00:00Z",
- "published_at": "2020-01-04T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": {
- "accepted": true
- },
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 7.1
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-456",
- "name": "A CWE 2.0"
- }
- ],
- "cwe_ids": [
- "CWE-456"
- ],
- "credits": [
- {
- "login": "monauser",
- "type": "reporter"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "reporter",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-1234-5678-9012",
- "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
}
}
],
"schema": {
"type": "array",
"items": {
- "description": "A repository security advisory.",
"type": "object",
"properties": {
- "ghsa_id": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
"type": "string",
- "description": "The GitHub Security Advisory ID.",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
"readOnly": true
},
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ }
+ ]
},
"url": {
"type": "string",
+ "description": "The REST API URL of the alert resource.",
"format": "uri",
- "description": "The API URL for the advisory.",
"readOnly": true
},
"html_url": {
"type": "string",
+ "description": "The GitHub URL of the alert resource.",
"format": "uri",
- "description": "The URL for the advisory.",
"readOnly": true
},
- "summary": {
+ "locations_url": {
"type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
},
- "description": {
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
"type": [
"string",
"null"
],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
},
- "severity": {
+ "resolved_at": {
"type": [
"string",
"null"
],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -751068,16 +800397,55 @@
"url"
]
}
- ],
- "type": [
- "null"
]
},
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "repository": {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -751244,1593 +800612,1289 @@
"type",
"url"
]
- }
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
},
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
+ "private": {
"type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
- }
+ "description": "Whether the repository is private."
},
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
],
- "description": "The CVSS vector."
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
},
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
},
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
},
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
+ "push_protection_bypassed": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
+ },
+ "push_protection_bypassed_by": {
+ "anyOf": [
{
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
"type": "integer",
"format": "int64",
- "description": "A unique identifier of the repository.",
"examples": [
- 1296269
+ 1
]
},
"node_id": {
"type": "string",
- "description": "The GraphQL identifier of the repository.",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "MDQ6VXNlcjE="
]
},
- "name": {
+ "avatar_url": {
"type": "string",
- "description": "The name of the repository.",
+ "format": "uri",
"examples": [
- "Hello-World"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "octocat/Hello-World"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
]
},
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
"html_url": {
"type": "string",
"format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://github.com/octocat"
]
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "This your first repo!"
+ "https://api.github.com/users/octocat/followers"
]
},
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
},
- "url": {
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "archive_url": {
+ "organizations_url": {
"type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "assignees_url": {
+ "repos_url": {
"type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "blobs_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "branches_url": {
+ "received_events_url": {
"type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "collaborators_url": {
+ "type": {
"type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "User"
]
},
- "comments_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "commits_url": {
+ "user_view_type": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypassed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "compare_url": {
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "octocat"
]
},
- "contents_url": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "MDQ6VXNlcjE="
]
},
- "contributors_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "deployments_url": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://api.github.com/users/octocat"
]
},
- "downloads_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://github.com/octocat"
]
},
- "events_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat/followers"
]
},
- "forks_url": {
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "git_commits_url": {
+ "organizations_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "git_refs_url": {
+ "repos_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "git_tags_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "issue_comment_url": {
+ "received_events_url": {
"type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "issue_events_url": {
+ "type": {
"type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "User"
]
},
- "issues_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "keys_url": {
+ "user_view_type": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ },
+ "push_protection_bypass_request_reviewer_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when reviewing a push protection bypass."
+ },
+ "push_protection_bypass_request_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "An optional comment when requesting a push protection bypass."
+ },
+ "push_protection_bypass_request_html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment that was optionally added when this alert was closed"
+ },
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the secret was publicly leaked."
+ },
+ "multi_repo": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
+ },
+ "is_base64_encoded": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
]
},
- "labels_url": {
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
+ "examples": [
+ "/example/Home.md"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "page_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082"
+ ]
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
+ ]
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ ]
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "octocat"
]
},
- "languages_url": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
+ "MDQ6VXNlcjE="
]
},
- "merges_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "milestones_url": {
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "https://api.github.com/users/octocat"
]
},
- "notifications_url": {
+ "html_url": {
"type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://github.com/octocat"
]
},
- "pulls_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "releases_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "stargazers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "statuses_url": {
+ "starred_url": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "subscribers_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "subscription_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "tags_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about tags on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/repos"
]
},
- "teams_url": {
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the teams on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "trees_url": {
+ "type": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "User"
]
},
- "hooks_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
"url"
]
}
- ],
- "type": [
- "null"
]
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
}
}
}
@@ -752841,13 +801905,13 @@
"httpStatusCode": "200",
"description": "OK
"
},
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -752857,7 +801921,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "write"
+ "\"Secret scanning alerts\" repository permissions": "read"
}
]
}
@@ -752865,10 +801929,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/security-advisories",
- "title": "List repository security advisories",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts",
+ "title": "List secret scanning alerts for a repository",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
"parameters": [
{
"name": "owner",
@@ -752889,37 +801953,108 @@
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
+ "name": "state",
"in": "query",
+ "description": "Set to open or resolved to only list secret scanning alerts in a specific state.
",
"required": false,
"schema": {
"type": "string",
"enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "open",
+ "resolved"
+ ]
+ }
+ },
+ {
+ "name": "secret_type",
+ "in": "query",
+ "description": "A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See \"Supported secret scanning patterns \" for a complete list of secret types.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "assignee",
+ "in": "query",
+ "description": "Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
",
+ "required": false,
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "assigned-to-user": {
+ "value": "octocat",
+ "summary": "Filter for alerts assigned to the user \"octocat\""
+ },
+ "all-assigned": {
+ "value": "*",
+ "summary": "Filter for all assigned alerts"
+ },
+ "all-unassigned": {
+ "value": "none",
+ "summary": "Filter for all unassigned alerts"
+ }
}
},
{
"name": "sort",
- "description": "The property to sort the results by.
",
+ "description": "The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
"created",
- "updated",
- "published"
+ "updated"
],
"default": "created"
}
},
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
{
"name": "before",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty \"before\" query string.
",
"in": "query",
"required": false,
"schema": {
@@ -752928,7 +802063,7 @@
},
{
"name": "after",
- "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty \"after\" query string.
",
"in": "query",
"required": false,
"schema": {
@@ -752936,35 +802071,47 @@
}
},
{
- "name": "per_page",
- "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "name": "validity",
"in": "query",
+ "description": "A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
",
"required": false,
"schema": {
- "type": "integer",
- "minimum": 1,
- "maximum": 100,
- "default": 30
+ "type": "string"
}
},
{
- "name": "state",
- "description": "Filter by state of the repository advisories. Only advisories of this state will be returned.
",
+ "name": "is_publicly_leaked",
+ "in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "is_multi_repo",
"in": "query",
+ "description": "A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
",
"required": false,
"schema": {
- "type": "string",
- "enum": [
- "triage",
- "draft",
- "published",
- "closed"
- ]
+ "type": "boolean",
+ "default": false
+ }
+ },
+ {
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Lists security advisories in a repository.
\nThe authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
+ "descriptionHTML": "Lists secret scanning alerts for an eligible repository, from newest to oldest.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
"codeExamples": [
{
"key": "default",
@@ -752982,18 +802129,64 @@
"description": "Response
",
"example": [
{
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
+ "number": 2,
+ "created_at": "2020-11-06T18:48:51Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/2",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/2/locations",
+ "state": "resolved",
+ "resolution": "false_positive",
+ "resolved_at": "2020-11-07T02:47:13Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "secret_type": "adafruit_io_key",
+ "secret_type_display_name": "Adafruit IO Key",
+ "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
+ "push_protection_bypassed_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "push_protection_bypassed": true,
+ "push_protection_bypassed_at": "2020-11-06T21:48:51Z",
+ "push_protection_bypass_request_reviewer": {
"login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/3?",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
@@ -753007,9 +802200,29 @@
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
- "site_admin": false
+ "site_admin": true
},
- "publisher": {
+ "push_protection_bypass_request_reviewer_comment": "Example response",
+ "push_protection_bypass_request_comment": "Example comment",
+ "push_protection_bypass_request_html_url": "https://github.com/owner/repo/secret_scanning_exemptions/1",
+ "resolution_comment": "Example comment",
+ "validity": "inactive",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "is_base64_encoded": false,
+ "first_location_detected": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ },
+ "has_more_locations": true,
+ "assigned_to": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -753028,459 +802241,90 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": null
- },
- {
- "ghsa_id": "GHSA-1234-5678-9012",
- "cve_id": "CVE-2051-0000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "low",
- "author": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "monalisa",
- "id": 3,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monalisa",
- "html_url": "https://github.com/monalisa",
- "followers_url": "https://api.github.com/users/monalisa/followers",
- "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
- "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
- "organizations_url": "https://api.github.com/users/monalisa/orgs",
- "repos_url": "https://api.github.com/users/monalisa/repos",
- "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monalisa/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-1234-5678-9012"
- },
- {
- "type": "CVE",
- "value": "CVE-2051-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-03T00:00:00Z",
- "updated_at": "2020-01-04T00:00:00Z",
- "published_at": "2020-01-04T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": {
- "accepted": true
- },
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
- "score": 1.6
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 7.1
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-456",
- "name": "A CWE 2.0"
- }
- ],
- "cwe_ids": [
- "CWE-456"
- ],
- "credits": [
- {
- "login": "monauser",
- "type": "reporter"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "monauser",
- "id": 2,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/monauser",
- "html_url": "https://github.com/monauser",
- "followers_url": "https://api.github.com/users/monauser/followers",
- "following_url": "https://api.github.com/users/monauser/following{/other_user}",
- "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
- "organizations_url": "https://api.github.com/users/monauser/orgs",
- "repos_url": "https://api.github.com/users/monauser/repos",
- "events_url": "https://api.github.com/users/monauser/events{/privacy}",
- "received_events_url": "https://api.github.com/users/monauser/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "reporter",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-1234-5678-9012",
- "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
}
}
],
"schema": {
"type": "array",
"items": {
- "description": "A repository security advisory.",
"type": "object",
"properties": {
- "ghsa_id": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
"type": "string",
- "description": "The GitHub Security Advisory ID.",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
"readOnly": true
},
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ }
+ ]
},
"url": {
"type": "string",
+ "description": "The REST API URL of the alert resource.",
"format": "uri",
- "description": "The API URL for the advisory.",
"readOnly": true
},
"html_url": {
"type": "string",
+ "description": "The GitHub URL of the alert resource.",
"format": "uri",
- "description": "The URL for the advisory.",
"readOnly": true
},
- "summary": {
+ "locations_url": {
"type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
},
- "severity": {
+ "resolution": {
"type": [
"string",
"null"
],
- "description": "The severity of the advisory.",
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
"enum": [
- "critical",
- "high",
- "medium",
- "low",
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
null
]
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
+ "resolved_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -753649,15 +802493,39 @@
"url"
]
}
+ ]
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
],
+ "description": "An optional comment to resolve an alert."
+ },
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "push_protection_bypassed": {
"type": [
+ "boolean",
"null"
- ]
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
},
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -753826,2155 +802694,953 @@
"url"
]
}
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
+ "push_protection_bypassed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "vector_string": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 3 vector string."
+ ]
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
+ "email": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 4 vector string."
+ ]
},
- "score": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
- "number",
+ "string",
"null"
],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "vector_string",
- "score"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- }
+ ]
},
- "cwes": {
+ "push_protection_bypass_request_reviewer_comment": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
+ "description": "An optional comment when reviewing a push protection bypass."
},
- "cwe_ids": {
+ "push_protection_bypass_request_comment": {
"type": [
- "array",
+ "string",
"null"
],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
+ "description": "An optional comment when requesting a push protection bypass."
},
- "credits": {
+ "push_protection_bypass_request_html_url": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
},
- "credits_detailed": {
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
"type": [
- "array",
+ "boolean",
"null"
],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
+ "description": "Whether the detected secret was publicly leaked."
},
- "collaborating_users": {
+ "multi_repo": {
"type": [
- "array",
+ "boolean",
"null"
],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
},
- "collaborating_teams": {
+ "is_base64_encoded": {
"type": [
- "array",
+ "boolean",
"null"
],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
+ "description": "A boolean value representing whether or not alert is base64 encoded"
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
+ "first_location_detected": {
+ "anyOf": [
{
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "type": "null"
+ },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
]
},
- "email": {
- "type": [
- "string",
- "null"
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "login": {
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "octocat"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
},
- "node_id": {
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "MDQ6VXNlcjE="
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "avatar_url": {
+ "commit_url": {
"type": "string",
- "format": "uri",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "/example/Home.md"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "url": {
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "https://api.github.com/users/octocat"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "html_url": {
+ "page_url": {
"type": "string",
- "format": "uri",
+ "description": "The GitHub URL to get the associated wiki page",
"examples": [
- "https://github.com/octocat"
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "followers_url": {
+ "commit_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "following_url": {
+ "commit_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
- },
- "gists_url": {
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "starred_url": {
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "subscriptions_url": {
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "organizations_url": {
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
"type": "string",
"format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/community/community/discussions/39082"
]
- },
- "repos_url": {
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
"type": "string",
"format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
]
- },
- "events_url": {
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
]
- },
- "received_events_url": {
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "type": {
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "user_view_type": {
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "pull_request_review_url"
]
},
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
]
- },
- "description": {
+ }
+ ]
+ }
+ ]
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
]
},
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "commits_url": {
+ "login": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "octocat"
]
},
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ 1
]
},
- "contents_url": {
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "MDQ6VXNlcjE="
]
},
- "contributors_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "downloads_url": {
+ "url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat"
]
},
- "events_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "https://github.com/octocat"
]
},
- "forks_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "issues_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "keys_url": {
+ "gists_url": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "labels_url": {
+ "starred_url": {
"type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "languages_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "merges_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "stargazers_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "subscribers_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "subscription_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "tags_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "User"
]
},
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "trees_url": {
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "hooks_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "public"
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "read"
- }
- ],
- "allowsPublicRead": true
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories",
- "title": "Create a repository security advisory",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
- "parameters": [
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "summary",
- "in": "body",
- "description": "A short summary of the advisory.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A detailed description of what the advisory impacts.
",
- "isRequired": true
- },
- {
- "type": "string or null",
- "name": "cve_id",
- "in": "body",
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
- },
- {
- "type": "array of objects",
- "name": "vulnerabilities",
- "in": "body",
- "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "object",
- "name": "package",
- "description": "The name of the package affected by the vulnerability.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "ecosystem",
- "description": "The package's language or package management ecosystem.
",
- "isRequired": true,
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- {
- "type": "string or null",
- "name": "name",
- "description": "The unique package name within its ecosystem.
"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
}
- ]
- },
- {
- "type": "string or null",
- "name": "vulnerable_version_range",
- "description": "The range of the package versions affected by the vulnerability.
"
- },
- {
- "type": "string or null",
- "name": "patched_versions",
- "description": "The package version(s) that resolve the vulnerability.
"
- },
- {
- "type": "array of strings or null",
- "name": "vulnerable_functions",
- "description": "The functions in the package that are affected.
"
+ }
}
- ]
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "type": "array of strings or null",
- "name": "cwe_ids",
- "in": "body",
- "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ "httpStatusCode": "404",
+ "description": "Repository is public or secret scanning is disabled for the repository
"
},
{
- "type": "array of objects or null",
- "name": "credits",
- "in": "body",
- "description": "A list of users receiving credit for their participation in the security advisory.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "login",
- "description": "The username of the user credited.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of credit the user is receiving.
",
- "isRequired": true,
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- ]
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
+ "title": "Get a secret scanning alert",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "string or null",
- "name": "severity",
- "in": "body",
- "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "string or null",
- "name": "cvss_vector_string",
- "in": "body",
- "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ "name": "alert_number",
+ "in": "path",
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ }
},
{
- "type": "boolean",
- "name": "start_private_fork",
- "in": "body",
- "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
- "default": false
+ "name": "hide_secret",
+ "in": "query",
+ "description": "A boolean value representing whether or not to hide literal secrets in the results.
",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false
+ }
}
],
- "descriptionHTML": "Creates a new repository security advisory.
\nIn order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a single secret scanning alert detected in an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "summary": "A new important advisory",
- "description": "A more in-depth description of what the problem is.",
- "severity": "high",
- "cve_id": null,
- "vulnerabilities": [
- {
- "package": {
- "name": "a-package",
- "ecosystem": "npm"
- },
- "vulnerable_version_range": "< 1.0.0",
- "patched_versions": "1.0.0",
- "vulnerable_functions": [
- "important_function"
- ]
- }
- ],
- "cwe_ids": [
- "CWE-1101",
- "CWE-20"
- ],
- "credits": [
- {
- "login": "monalisa",
- "type": "reporter"
- },
- {
- "login": "octocat",
- "type": "analyst"
- }
- ]
- },
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "alert_number": "ALERT_NUMBER"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
+ "number": 42,
+ "created_at": "2020-11-06T18:18:30Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
+ "state": "open",
+ "resolution": null,
+ "resolved_at": null,
+ "resolved_by": null,
+ "secret_type": "mailchimp_api_key",
+ "secret_type_display_name": "Mailchimp API Key",
+ "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
+ "push_protection_bypassed_by": null,
+ "push_protection_bypassed": false,
+ "push_protection_bypassed_at": null,
+ "push_protection_bypass_request_reviewer": null,
+ "push_protection_bypass_request_reviewer_comment": null,
+ "push_protection_bypass_request_comment": null,
+ "push_protection_bypass_request_html_url": null,
+ "resolution_comment": null,
+ "validity": "unknown",
+ "publicly_leaked": false,
+ "multi_repo": false
},
"schema": {
- "description": "A repository security advisory.",
"type": "object",
"properties": {
- "ghsa_id": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
"type": "string",
- "description": "The GitHub Security Advisory ID.",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
"readOnly": true
},
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ }
+ ]
},
"url": {
"type": "string",
+ "description": "The REST API URL of the alert resource.",
"format": "uri",
- "description": "The API URL for the advisory.",
"readOnly": true
},
"html_url": {
"type": "string",
+ "description": "The GitHub URL of the alert resource.",
"format": "uri",
- "description": "The URL for the advisory.",
"readOnly": true
},
- "summary": {
+ "locations_url": {
"type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
},
- "description": {
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
"type": [
"string",
"null"
],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
},
- "severity": {
+ "resolved_at": {
"type": [
"string",
"null"
],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -756143,15 +803809,39 @@
"url"
]
}
+ ]
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
],
+ "description": "An optional comment to resolve an alert."
+ },
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "push_protection_bypassed": {
"type": [
+ "boolean",
"null"
- ]
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
},
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -756320,1612 +804010,772 @@
"url"
]
}
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
+ "push_protection_bypassed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "vector_string": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 3 vector string."
+ ]
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
+ "email": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 4 vector string."
+ ]
},
- "score": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
- "number",
+ "string",
"null"
],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "vector_string",
- "score"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- }
+ ]
},
- "cwes": {
+ "push_protection_bypass_request_reviewer_comment": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
+ "description": "An optional comment when reviewing a push protection bypass."
},
- "cwe_ids": {
+ "push_protection_bypass_request_comment": {
"type": [
- "array",
+ "string",
"null"
],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
+ "description": "An optional comment when requesting a push protection bypass."
},
- "credits": {
+ "push_protection_bypass_request_html_url": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
},
- "credits_detailed": {
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
+ },
+ "publicly_leaked": {
"type": [
- "array",
+ "boolean",
"null"
],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
+ "description": "Whether the detected secret was publicly leaked."
},
- "collaborating_users": {
+ "multi_repo": {
"type": [
- "array",
+ "boolean",
"null"
],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
},
- "collaborating_teams": {
+ "is_base64_encoded": {
"type": [
- "array",
+ "boolean",
"null"
],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
+ "description": "A boolean value representing whether or not alert is base64 encoded"
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
+ "first_location_detected": {
+ "anyOf": [
{
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "type": "null"
+ },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
+ "path": {
"type": "string",
+ "description": "The file path in the repository",
"examples": [
- "octocat"
+ "/example/secrets.txt"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
},
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
},
- "url": {
+ "blob_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "https://api.github.com/users/octocat"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "html_url": {
+ "blob_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
+ "description": "The API URL to get the associated blob resource"
},
- "followers_url": {
+ "commit_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "following_url": {
+ "commit_url": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
"type": "string",
+ "description": "The file path of the wiki page",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "/example/Home.md"
]
},
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
},
- "events_url": {
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "received_events_url": {
+ "page_url": {
"type": "string",
- "format": "uri",
+ "description": "The GitHub URL to get the associated wiki page",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "type": {
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "User"
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "commit_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
- },
- "user_view_type": {
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "issue_title_url"
]
},
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
+ },
+ "required": [
+ "issue_body_url"
]
},
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "issue_comment_url"
]
},
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082"
+ ]
+ }
+ },
+ "required": [
+ "discussion_title_url"
]
},
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
+ ]
+ }
+ },
+ "required": [
+ "discussion_body_url"
]
},
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ ]
+ }
+ },
+ "required": [
+ "discussion_comment_url"
]
},
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_title_url"
]
},
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_body_url"
]
},
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
]
},
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
]
},
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ }
+ ]
+ }
+ ]
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
]
},
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "issue_comment_url": {
+ "login": {
"type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "octocat"
]
},
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ 1
]
},
- "issues_url": {
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "MDQ6VXNlcjE="
]
},
- "keys_url": {
+ "avatar_url": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "languages_url": {
+ "url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat"
]
},
- "merges_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
+ "https://github.com/octocat"
]
},
- "milestones_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "notifications_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "pulls_url": {
+ "gists_url": {
"type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "releases_url": {
+ "starred_url": {
"type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "stargazers_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "statuses_url": {
+ "organizations_url": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "subscribers_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/repos"
]
},
- "subscription_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "tags_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to get information about tags on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "teams_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
+ "User"
]
},
- "trees_url": {
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "hooks_url": {
+ "user_view_type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "public"
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
"url"
]
}
- ],
- "type": [
- "null"
]
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "304",
+ "description": "Not modified
"
},
{
"httpStatusCode": "404",
- "description": "Resource not found
"
+ "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
}
],
"previews": [],
@@ -757935,18 +804785,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "write"
+ "\"Secret scanning alerts\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/reports",
- "title": "Privately report a security vulnerability",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
+ "title": "Update a secret scanning alert",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
"parameters": [
{
"name": "owner",
@@ -757965,114 +804815,57 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "alert_number",
+ "in": "path",
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ }
}
],
"bodyParameters": [
{
"type": "string",
- "name": "summary",
- "in": "body",
- "description": "A short summary of the advisory.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A detailed description of what the advisory impacts.
",
- "isRequired": true
- },
- {
- "type": "array of objects or null",
- "name": "vulnerabilities",
+ "name": "state",
"in": "body",
- "description": "An array of products affected by the vulnerability detailed in a repository security advisory.
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "package",
- "description": "The name of the package affected by the vulnerability.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "ecosystem",
- "description": "The package's language or package management ecosystem.
",
- "isRequired": true,
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- {
- "type": "string or null",
- "name": "name",
- "description": "The unique package name within its ecosystem.
"
- }
- ]
- },
- {
- "type": "string or null",
- "name": "vulnerable_version_range",
- "description": "The range of the package versions affected by the vulnerability.
"
- },
- {
- "type": "string or null",
- "name": "patched_versions",
- "description": "The package version(s) that resolve the vulnerability.
"
- },
- {
- "type": "array of strings or null",
- "name": "vulnerable_functions",
- "description": "The functions in the package that are affected.
"
- }
+ "description": "Sets the state of the secret scanning alert. You must provide resolution when you set the state to resolved.
",
+ "enum": [
+ "open",
+ "resolved"
]
},
- {
- "type": "array of strings or null",
- "name": "cwe_ids",
- "in": "body",
- "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
- },
{
"type": "string or null",
- "name": "severity",
+ "name": "resolution",
"in": "body",
- "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "description": "Required when the state is resolved. The reason for resolving the alert.
",
"enum": [
- "critical",
- "high",
- "medium",
- "low",
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
null
]
},
{
"type": "string or null",
- "name": "cvss_vector_string",
+ "name": "resolution_comment",
"in": "body",
- "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.
"
},
{
- "type": "boolean",
- "name": "start_private_fork",
+ "type": "string or null",
+ "name": "assignee",
"in": "body",
- "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
- "default": false
+ "description": "The username of the user to assign to the alert. Set to null to unassign the alert.
"
}
],
- "descriptionHTML": "Report a security vulnerability to the maintainers of the repository.\nSee \"Privately reporting a security vulnerability \" for more information about private vulnerability reporting.
",
+ "descriptionHTML": "Updates the status of a secret scanning alert in an eligible repository.
\nYou can also use this endpoint to assign or unassign an alert to a user who has write access to the repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
"codeExamples": [
{
"key": "default",
@@ -758081,48 +804874,67 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "summary": "A newly discovered vulnerability",
- "description": "A more in-depth description of what the problem is.",
- "severity": "high",
- "vulnerabilities": [
- {
- "package": {
- "name": "a-package",
- "ecosystem": "npm"
- },
- "vulnerable_version_range": "< 1.0.0",
- "patched_versions": "1.0.0",
- "vulnerable_functions": [
- "important_function"
- ]
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ]
+ "state": "resolved",
+ "resolution": "false_positive"
},
"parameters": {
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "alert_number": "ALERT_NUMBER"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A newly discovered vulnerability",
- "description": "A more in-depth description of what the problem is.",
- "severity": "high",
- "author": {
+ "number": 42,
+ "created_at": "2020-11-06T18:18:30Z",
+ "url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42",
+ "html_url": "https://github.com/owner/private-repo/security/secret-scanning/42",
+ "locations_url": "https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42/locations",
+ "state": "resolved",
+ "resolution": "used_in_tests",
+ "resolved_at": "2020-11-16T22:42:07Z",
+ "resolved_by": {
+ "login": "monalisa",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjI=",
+ "avatar_url": "https://alambic.github.com/avatars/u/2?",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": true
+ },
+ "secret_type": "mailchimp_api_key",
+ "secret_type_display_name": "Mailchimp API Key",
+ "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2",
+ "push_protection_bypassed": false,
+ "push_protection_bypassed_by": null,
+ "push_protection_bypassed_at": null,
+ "push_protection_bypass_request_reviewer": null,
+ "push_protection_bypass_request_reviewer_comment": null,
+ "push_protection_bypass_request_comment": null,
+ "push_protection_bypass_request_html_url": null,
+ "resolution_comment": "Example comment",
+ "validity": "unknown",
+ "publicly_leaked": false,
+ "multi_repo": false,
+ "assigned_to": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "avatar_url": "https://alambic.github.com/avatars/u/1?",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
@@ -758137,186 +804949,87 @@
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
- },
- "publisher": null,
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": null
- }
- ],
- "state": "triage",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": null,
- "closed_at": null,
- "withdrawn_at": null,
- "submission": {
- "accepted": false
- },
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "npm",
- "name": "a-package"
- },
- "vulnerable_version_range": "< 1.0.0",
- "patched_versions": "1.0.0",
- "vulnerable_functions": [
- "important_function"
- ]
- }
- ],
- "cvss": null,
- "cvss_severities": {
- "cvss_v3": null,
- "cvss_v4": null
- },
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
- {
- "login": "octocat",
- "type": "finder"
- }
- ],
- "credits_detailed": [
- {
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "type": "finder",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
- }
- ],
- "private_fork": null
+ }
},
"schema": {
- "description": "A repository security advisory.",
"type": "object",
"properties": {
- "ghsa_id": {
+ "number": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ },
+ "created_at": {
"type": "string",
- "description": "The GitHub Security Advisory ID.",
+ "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
"readOnly": true
},
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "format": "date-time",
+ "readOnly": true
+ }
+ ]
},
"url": {
"type": "string",
+ "description": "The REST API URL of the alert resource.",
"format": "uri",
- "description": "The API URL for the advisory.",
"readOnly": true
},
"html_url": {
"type": "string",
+ "description": "The GitHub URL of the alert resource.",
"format": "uri",
- "description": "The URL for the advisory.",
"readOnly": true
},
- "summary": {
+ "locations_url": {
"type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "format": "uri",
+ "description": "The REST API URL of the code locations for this alert."
},
- "description": {
+ "state": {
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
+ "type": "string",
+ "enum": [
+ "open",
+ "resolved"
+ ]
+ },
+ "resolution": {
"type": [
"string",
"null"
],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "description": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
+ "enum": [
+ "false_positive",
+ "wont_fix",
+ "revoked",
+ "used_in_tests",
+ null
+ ]
},
- "severity": {
+ "resolved_at": {
"type": [
"string",
"null"
],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "format": "date-time",
+ "description": "The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
+ "resolved_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -758485,15 +805198,39 @@
"url"
]
}
+ ]
+ },
+ "resolution_comment": {
+ "type": [
+ "string",
+ "null"
],
+ "description": "An optional comment to resolve an alert."
+ },
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "secret_type_display_name": {
+ "type": "string",
+ "description": "User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see \"[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets).\""
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret that was detected."
+ },
+ "push_protection_bypassed": {
"type": [
+ "boolean",
"null"
- ]
+ ],
+ "description": "Whether push protection was bypassed for the detected secret."
},
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
+ "push_protection_bypassed_by": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -758662,1600 +805399,2593 @@
"url"
]
}
- ],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
- },
- "value": {
- "type": "string",
- "description": "The identifier value."
- }
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
+ "push_protection_bypassed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
- "type": "object",
- "properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
- },
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
- },
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
+ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
},
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
+ "push_protection_bypass_request_reviewer": {
+ "anyOf": [
+ {
+ "type": "null"
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
"properties": {
- "vector_string": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 3 vector string."
+ ]
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
+ "email": {
"type": [
"string",
"null"
- ],
- "description": "The CVSS 4 vector string."
+ ]
},
- "score": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
"type": [
- "number",
+ "string",
"null"
],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "vector_string",
- "score"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- }
+ ]
},
- "cwes": {
+ "push_protection_bypass_request_reviewer_comment": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
- }
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
+ "description": "An optional comment when reviewing a push protection bypass."
},
- "cwe_ids": {
+ "push_protection_bypass_request_comment": {
"type": [
- "array",
+ "string",
"null"
],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
+ "description": "An optional comment when requesting a push protection bypass."
},
- "credits": {
+ "push_protection_bypass_request_html_url": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
+ "format": "uri",
+ "description": "The URL to a push protection bypass request."
},
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
+ "validity": {
+ "type": "string",
+ "description": "The token status as of the latest validity check.",
+ "enum": [
+ "active",
+ "inactive",
+ "unknown"
+ ]
},
- "collaborating_users": {
+ "publicly_leaked": {
"type": [
- "array",
+ "boolean",
"null"
],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "description": "Whether the detected secret was publicly leaked."
},
- "collaborating_teams": {
+ "multi_repo": {
"type": [
- "array",
+ "boolean",
"null"
],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
- },
- "full_name": {
- "type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
+ },
+ "is_base64_encoded": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "description": "A boolean value representing whether or not alert is base64 encoded"
+ },
+ "first_location_detected": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "description": "Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.\n",
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
]
},
- "email": {
- "type": [
- "string",
- "null"
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "login": {
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "octocat"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
},
- "node_id": {
+ "commit_sha": {
"type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "MDQ6VXNlcjE="
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "avatar_url": {
+ "commit_url": {
"type": "string",
- "format": "uri",
+ "description": "The API URL to get the associated commit resource"
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "/example/Home.md"
]
},
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
},
- "url": {
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated blob",
"examples": [
- "https://api.github.com/users/octocat"
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
]
},
- "html_url": {
+ "page_url": {
"type": "string",
- "format": "uri",
+ "description": "The GitHub URL to get the associated wiki page",
"examples": [
- "https://github.com/octocat"
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "followers_url": {
+ "commit_sha": {
"type": "string",
- "format": "uri",
+ "description": "SHA-1 hash ID of the associated commit",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
- "following_url": {
+ "commit_url": {
"type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
- },
- "gists_url": {
+ }
+ },
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "starred_url": {
+ }
+ },
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
]
- },
- "subscriptions_url": {
+ }
+ },
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "organizations_url": {
+ }
+ },
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
"type": "string",
"format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/community/community/discussions/39082"
]
- },
- "repos_url": {
+ }
+ },
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
"type": "string",
"format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
]
- },
- "events_url": {
+ }
+ },
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
]
- },
- "received_events_url": {
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "type": {
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
]
- },
- "user_view_type": {
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "pull_request_review_url"
]
},
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
]
- },
- "description": {
+ }
+ ]
+ }
+ ]
+ },
+ "has_more_locations": {
+ "type": "boolean",
+ "description": "A boolean value representing whether or not the token in the alert was detected in more than one location."
+ },
+ "assigned_to": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
]
},
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "archive_url": {
+ "login": {
"type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "octocat"
]
},
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ 1
]
},
- "blobs_url": {
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "MDQ6VXNlcjE="
]
},
- "branches_url": {
+ "avatar_url": {
"type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "comments_url": {
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat"
]
},
- "commits_url": {
+ "html_url": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://github.com/octocat"
]
},
- "compare_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "contents_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "contributors_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "deployments_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "downloads_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "events_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "forks_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
+ "https://api.github.com/users/octocat/repos"
]
},
- "git_commits_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "git_refs_url": {
+ "received_events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "git_tags_url": {
+ "type": {
"type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "User"
]
},
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "issue_events_url": {
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "issues_url": {
+ "user_view_type": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad request, resolution comment is invalid or the resolution was not changed.
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "State does not match the resolution or resolution comment, or assignee does not have write access to the repository
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
+ "title": "List locations for a secret scanning alert",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "alert_number",
+ "in": "path",
+ "description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "description": "The security alert number.",
+ "readOnly": true
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all locations for a given secret scanning alert for an eligible repository.
\nThe authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "alert_number": "ALERT_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "type": "commit",
+ "details": {
+ "path": "/example/secrets.txt",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "blob_url": "https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "commit_sha": "f14d7debf9775f957cf4f1e8176da0786431f72b",
+ "commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
+ }
+ },
+ {
+ "type": "wiki_commit",
+ "details": {
+ "path": "/example/Home.md",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 64,
+ "blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
+ "page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
+ "commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
+ "commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ }
+ },
+ {
+ "type": "issue_title",
+ "details": {
+ "issue_title_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ }
+ },
+ {
+ "type": "issue_body",
+ "details": {
+ "issue_body_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ }
+ },
+ {
+ "type": "issue_comment",
+ "details": {
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ }
+ },
+ {
+ "type": "discussion_title",
+ "details": {
+ "discussion_title_url": "https://github.com/community/community/discussions/39082"
+ }
+ },
+ {
+ "type": "discussion_body",
+ "details": {
+ "discussion_body_url": "https://github.com/community/community/discussions/39082#discussion-4566270"
+ }
+ },
+ {
+ "type": "discussion_comment",
+ "details": {
+ "discussion_comment_url": "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ }
+ },
+ {
+ "type": "pull_request_title",
+ "details": {
+ "pull_request_title_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ }
+ },
+ {
+ "type": "pull_request_body",
+ "details": {
+ "pull_request_body_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ }
+ },
+ {
+ "type": "pull_request_comment",
+ "details": {
+ "pull_request_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1825855898"
+ }
+ },
+ {
+ "type": "pull_request_review",
+ "details": {
+ "pull_request_review_url": "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ }
+ },
+ {
+ "type": "pull_request_review_comment",
+ "details": {
+ "pull_request_review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "description": "List of locations where the secret was detected",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "commit",
+ "wiki_commit",
+ "issue_title",
+ "issue_body",
+ "issue_comment",
+ "discussion_title",
+ "discussion_body",
+ "discussion_comment",
+ "pull_request_title",
+ "pull_request_body",
+ "pull_request_comment",
+ "pull_request_review",
+ "pull_request_review_comment"
+ ],
+ "description": "The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.",
+ "examples": [
+ "commit"
+ ]
+ },
+ "details": {
+ "oneOf": [
+ {
+ "description": "Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path in the repository",
+ "examples": [
+ "/example/secrets.txt"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII"
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII"
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "blob_url": {
+ "type": "string",
+ "description": "The API URL to get the associated blob resource"
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The API URL to get the associated commit resource"
+ }
},
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "blob_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The file path of the wiki page",
+ "examples": [
+ "/example/Home.md"
+ ]
+ },
+ "start_line": {
+ "type": "number",
+ "description": "Line number at which the secret starts in the file"
+ },
+ "end_line": {
+ "type": "number",
+ "description": "Line number at which the secret ends in the file"
+ },
+ "start_column": {
+ "type": "number",
+ "description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
+ },
+ "end_column": {
+ "type": "number",
+ "description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
+ },
+ "blob_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated blob",
+ "examples": [
+ "af5626b4a114abcb82d63db7c8082c3c4756e51b"
+ ]
+ },
+ "page_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki page",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_sha": {
+ "type": "string",
+ "description": "SHA-1 hash ID of the associated commit",
+ "examples": [
+ "302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ },
+ "commit_url": {
+ "type": "string",
+ "description": "The GitHub URL to get the associated wiki commit",
+ "examples": [
+ "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
+ ]
+ }
},
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
+ "required": [
+ "path",
+ "start_line",
+ "end_line",
+ "start_column",
+ "end_column",
+ "blob_sha",
+ "page_url",
+ "commit_sha",
+ "commit_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
},
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
+ "required": [
+ "issue_title_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue.",
+ "type": "object",
+ "properties": {
+ "issue_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/1347"
+ ]
+ }
},
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
+ "required": [
+ "issue_body_url"
+ ]
+ },
+ {
+ "description": "Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.",
+ "type": "object",
+ "properties": {
+ "issue_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the issue comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
},
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
+ "required": [
+ "issue_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082"
+ ]
+ }
},
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
+ "required": [
+ "discussion_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to the discussion where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussion-4566270"
+ ]
+ }
},
- "pulls_url": {
+ "required": [
+ "discussion_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.",
+ "type": "object",
+ "properties": {
+ "discussion_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the discussion comment where the secret was detected.",
+ "examples": [
+ "https://github.com/community/community/discussions/39082#discussioncomment-4158232"
+ ]
+ }
+ },
+ "required": [
+ "discussion_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_title_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_title_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_body_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_body_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_comment_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_url"
+ ]
+ },
+ {
+ "description": "Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request.",
+ "type": "object",
+ "properties": {
+ "pull_request_review_comment_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get the pull request review comment where the secret was detected.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls/comments/12"
+ ]
+ }
+ },
+ "required": [
+ "pull_request_review_comment_url"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses",
+ "title": "Create a push protection bypass",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "reason",
+ "in": "body",
+ "description": "The reason for bypassing push protection.
",
+ "isRequired": true,
+ "enum": [
+ "false_positive",
+ "used_in_tests",
+ "will_fix_later"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "placeholder_id",
+ "in": "body",
+ "description": "The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": "Creates a bypass for a previously push protected secret.
\nThe authenticated user must be the original author of the committed secret.
\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "reason": "will_fix_later",
+ "placeholder_id": "2k4dM4tseyC5lPIsjl5emX9sPNk"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "reason": "will_fix_later",
+ "expire_at": "2020-11-06T18:18:30Z",
+ "token_type": "mailchimp_api_key"
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "reason": {
+ "description": "The reason for bypassing push protection.",
+ "type": "string",
+ "enum": [
+ "false_positive",
+ "used_in_tests",
+ "will_fix_later"
+ ]
+ },
+ "expire_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
+ },
+ "token_type": {
+ "type": "string",
+ "description": "The token type this bypass is for."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "User does not have enough permissions to perform this action.
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Placeholder ID not found, or push protection is disabled on this repository.
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Bad request, input data missing or incorrect.
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": false,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Contents\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/secret-scanning/scan-history",
+ "title": "Get secret scanning scan history for a repository",
+ "category": "secret-scanning",
+ "subcategory": "secret-scanning",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
\n\nOAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "incremental_scans": [
+ {
+ "type": "git",
+ "status": "completed",
+ "completed_at": "2024-10-07T02:47:00Z"
+ }
+ ],
+ "backfill_scans": [
+ {
+ "type": "git",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:50:00Z"
+ },
+ {
+ "type": "issue",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:49:00Z"
+ },
+ {
+ "type": "discussion",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:48:00Z"
+ }
+ ],
+ "pattern_update_scans": [
+ {
+ "type": "discussion",
+ "status": "in_progress",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:51:00Z"
+ }
+ ],
+ "custom_pattern_backfill_scans": [
+ {
+ "type": "git",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:55:00Z",
+ "pattern_slug": "my-custom-pattern",
+ "pattern_scope": "enterprise"
+ },
+ {
+ "type": "git",
+ "status": "completed",
+ "started_at": "2024-10-07T02:47:00Z",
+ "completed_at": "2024-10-07T02:55:00Z",
+ "pattern_slug": "my-custom-pattern",
+ "pattern_scope": "organization"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "incremental_scans": {
+ "type": "array",
+ "items": {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
+ },
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ }
+ },
+ "pattern_update_scans": {
+ "type": "array",
+ "items": {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
+ },
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ }
+ },
+ "backfill_scans": {
+ "type": "array",
+ "items": {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
+ },
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ }
+ },
+ "custom_pattern_backfill_scans": {
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "description": "Information on a single scan performed by secret scanning on the repository",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of scan"
+ },
+ "status": {
+ "type": "string",
+ "description": "The state of the scan. Either \"completed\", \"running\", or \"pending\""
+ },
+ "completed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was completed. Empty if the scan is running"
+ },
+ "started_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The time that the scan was started. Empty if the scan is pending"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "properties": {
+ "pattern_name": {
+ "type": "string",
+ "description": "Name of the custom pattern for custom pattern scans"
+ },
+ "pattern_scope": {
+ "type": "string",
+ "description": "Level at which the custom pattern is defined, one of \"repository\", \"organization\", or \"enterprise\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Repository does not have GitHub Advanced Security or secret scanning enabled
"
+ },
+ {
+ "httpStatusCode": "503",
+ "description": "Service unavailable
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ }
+ ],
+ "alert-dismissal-requests": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/dismissal-requests/secret-scanning",
+ "title": "List alert dismissal requests for secret scanning for an org",
+ "category": "secret-scanning",
+ "subcategory": "alert-dismissal-requests",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repository_name",
+ "description": "The name of the repository to filter on.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "reviewer",
+ "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "requester",
+ "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "request_status",
+ "description": "The status of the dismissal request to filter on. When specified, only requests with this status will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "completed",
+ "cancelled",
+ "approved",
+ "expired",
+ "denied",
+ "open",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists requests to dismiss secret scanning alerts in an org.
\nDelegated alert dismissal must be enabled on repositories in the org and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "A list of the alert dismissal requests.
",
+ "example": [
+ {
+ "id": 21,
+ "number": 42,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning_closure",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "alert_number": 17,
+ "reason": "false_positive"
+ }
+ ],
+ "resource_identifier": 17,
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21",
+ "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
+ },
+ {
+ "id": 22,
+ "number": 43,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning_closure",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "alert_number": 19
+ }
+ ],
+ "resource_identifier": 19,
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 46,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "approved",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/22",
+ "html_url": "https://github.com/octo-org/smile/security/secret-scanning/19"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Secret scanning alert dismissal request",
+ "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the dismissal request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the dismissal request within its repository."
+ },
+ "repository": {
+ "type": "object",
+ "description": "The repository the dismissal request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the repository the dismissal request is for."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository the dismissal request is for."
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full name of the repository the dismissal request is for."
+ }
+ }
+ },
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the dismissal request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the dismissal.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the dismissal."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the dismissal."
+ }
+ }
+ },
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the secret alert that is being requested to be dismissed.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "secret_type": {
"type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
+ "description": "The type of secret that secret scanning detected."
},
- "releases_url": {
+ "alert_number": {
"type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
+ "description": "The number of the secret scanning alert that was detected."
},
- "stargazers_url": {
+ "reason": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "description": "The reason the user provided for requesting the dismissal.",
+ "enum": [
+ "fixed_later",
+ "false_positive",
+ "tests",
+ "revoked"
]
+ }
+ }
+ }
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The number of the secret scanning alert that was detected.",
+ "examples": [
+ 1234
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the dismissal request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "expired"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the dismissal request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the dismissal request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the dismissal request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the dismissal request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
},
- "statuses_url": {
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
+ },
+ "status": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
]
},
- "subscribers_url": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
+ }
+ }
+ }
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the dismissal request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/security/secret-scanning/17"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "A list of the alert dismissal requests.
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alert dismissal requests\" organization permissions": "read",
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/dismissal-requests/secret-scanning",
+ "title": "List alert dismissal requests for secret scanning for a repository",
+ "category": "secret-scanning",
+ "subcategory": "alert-dismissal-requests",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "reviewer",
+ "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "requester",
+ "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "request_status",
+ "description": "The status of the dismissal request to filter on. When specified, only requests with this status will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "completed",
+ "cancelled",
+ "approved",
+ "expired",
+ "denied",
+ "open",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists requests to dismiss secret scanning alerts in a repository.
\nDelegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "A list of the alert dismissal requests.
",
+ "example": [
+ {
+ "id": 21,
+ "number": 42,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning_closure",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "alert_number": 17,
+ "reason": "false_positive"
+ }
+ ],
+ "resource_identifier": 17,
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21",
+ "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
+ },
+ {
+ "id": 22,
+ "number": 43,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning_closure",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "alert_number": 19
+ }
+ ],
+ "resource_identifier": 19,
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 46,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "approved",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/22",
+ "html_url": "https://github.com/octo-org/smile/security/secret-scanning/19"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Secret scanning alert dismissal request",
+ "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the dismissal request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the dismissal request within its repository."
+ },
+ "repository": {
+ "type": "object",
+ "description": "The repository the dismissal request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the repository the dismissal request is for."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository the dismissal request is for."
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full name of the repository the dismissal request is for."
+ }
+ }
+ },
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the dismissal request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the dismissal.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the dismissal."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the dismissal."
+ }
+ }
+ },
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the secret alert that is being requested to be dismissed.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "secret_type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
+ "description": "The type of secret that secret scanning detected."
},
- "subscription_url": {
+ "alert_number": {
"type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
+ "description": "The number of the secret scanning alert that was detected."
},
- "tags_url": {
+ "reason": {
"type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "description": "The reason the user provided for requesting the dismissal.",
+ "enum": [
+ "fixed_later",
+ "false_positive",
+ "tests",
+ "revoked"
]
+ }
+ }
+ }
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The number of the secret scanning alert that was detected.",
+ "examples": [
+ 1234
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the dismissal request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "expired"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the dismissal request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the dismissal request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the dismissal request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the dismissal request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
},
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
},
- "trees_url": {
+ "status": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
]
},
- "hooks_url": {
+ "created_at": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
}
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
+ }
}
- ],
- "type": [
- "null"
- ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the dismissal request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/security/secret-scanning/17"
+ ]
+ }
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "201",
- "description": "Created
"
+ "httpStatusCode": "200",
+ "description": "A list of the alert dismissal requests.
"
},
{
"httpStatusCode": "403",
@@ -760266,8 +807996,8 @@
"description": "Resource not found
"
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -760277,7 +808007,14 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "write"
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Contents\" repository permissions": "read",
+ "\"Secret scanning alert dismissal requests\" repository permissions": "read"
+ },
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Contents\" repository permissions": "read",
+ "\"Secret scanning alert dismissal requests\" organization permissions": "read"
}
]
}
@@ -760285,10 +808022,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
- "title": "Get a repository security advisory",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "requestPath": "/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}",
+ "title": "Get an alert dismissal request for secret scanning",
+ "category": "secret-scanning",
+ "subcategory": "alert-dismissal-requests",
"parameters": [
{
"name": "owner",
@@ -760309,17 +808046,17 @@
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "name": "alert_number",
"in": "path",
"required": true,
+ "description": "The number that identifies the secret scanning alert in a repository.
",
"schema": {
- "type": "string"
+ "type": "integer"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nAnyone can access any published security advisory on a public repository.
\nThe authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a\ncollaborator on the security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
+ "descriptionHTML": "Gets a specific request to dismiss a secret scanning alert in a repository.
\nDelegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
"codeExamples": [
{
"key": "default",
@@ -760329,2254 +808066,1682 @@
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "ghsa_id": "GHSA_ID"
+ "alert_number": "ALERT_NUMBER"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "A single dismissal request.
",
"example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
+ "id": 21,
+ "number": 42,
+ "repository": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "name": "smile",
+ "full_name": "octo-org/smile"
},
- "publisher": {
- "login": "octocat",
+ "organization": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "name": "octo-org"
},
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
},
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
+ "request_type": "secret_scanning_closure",
+ "data": [
{
- "login": "octocat",
- "type": "analyst"
+ "secret_type": "adafruit_io_key",
+ "alert_number": 17,
+ "reason": "false_positive"
}
],
- "credits_detailed": [
+ "resource_identifier": 17,
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
{
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
},
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
}
],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
+ "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21",
+ "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
},
"schema": {
- "description": "A repository security advisory.",
+ "title": "Secret scanning alert dismissal request",
+ "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.",
"type": "object",
"properties": {
- "ghsa_id": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the dismissal request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the dismissal request within its repository."
+ },
+ "repository": {
+ "type": "object",
+ "description": "The repository the dismissal request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the repository the dismissal request is for."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository the dismissal request is for."
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full name of the repository the dismissal request is for."
+ }
+ }
+ },
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the dismissal request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the dismissal.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the dismissal."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the dismissal."
+ }
+ }
+ },
+ "request_type": {
"type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
+ "description": "The type of request."
},
- "cve_id": {
+ "data": {
"type": [
- "string",
+ "array",
"null"
],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
+ "description": "Data describing the secret alert that is being requested to be dismissed.",
+ "items": {
+ "type": "object",
+ "properties": {
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "alert_number": {
+ "type": "string",
+ "description": "The number of the secret scanning alert that was detected."
+ },
+ "reason": {
+ "type": "string",
+ "description": "The reason the user provided for requesting the dismissal.",
+ "enum": [
+ "fixed_later",
+ "false_positive",
+ "tests",
+ "revoked"
+ ]
+ }
+ }
+ }
},
- "html_url": {
+ "resource_identifier": {
"type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
+ "description": "The number of the secret scanning alert that was detected.",
+ "examples": [
+ 1234
+ ]
},
- "summary": {
+ "status": {
"type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "description": "The status of the dismissal request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "expired"
+ ]
},
- "description": {
+ "requester_comment": {
"type": [
"string",
"null"
],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "description": "The comment the requester provided when creating the dismissal request."
},
- "severity": {
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the dismissal request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the dismissal request was created."
+ },
+ "responses": {
"type": [
- "string",
+ "array",
"null"
],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
+ "description": "The responses to the dismissal request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
+ },
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
+ },
+ "status": {
+ "type": "string",
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
+ }
+ }
+ }
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1"
]
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the dismissal request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/security/secret-scanning/17"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "A single dismissal request.
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Contents\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}",
+ "title": "Review an alert dismissal request for secret scanning",
+ "category": "secret-scanning",
+ "subcategory": "alert-dismissal-requests",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "alert_number",
+ "in": "path",
+ "required": true,
+ "description": "The number that identifies the secret scanning alert in a repository.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "status",
+ "in": "body",
+ "description": "The review action to perform on the dismissal request.
",
+ "isRequired": true,
+ "enum": [
+ "approve",
+ "deny"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "message",
+ "in": "body",
+ "description": "A message to include with the review. Has a maximum character length of 2048.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": "Approve or deny a request to dismiss a secret scanning alert in a repository.
\nDelegated alert dismissal must be enabled on the repository and the user must be an org admin, security manager,\nor have the \"Review and manage secret scanning alert dismissal requests\" permission to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "status": "deny",
+ "message": "This secret has not been revoked."
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "alert_number": "ALERT_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "The review of the dismissal request.
",
+ "example": {
+ "dismissal_review_id": 1
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "dismissal_review_id": {
+ "type": "integer",
+ "description": "ID of the dismissal review."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "The review of the dismissal request.
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Contents\" repository permissions": "read",
+ "\"Secret scanning alert dismissal requests\" organization permissions": "write"
+ },
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Contents\" repository permissions": "read",
+ "\"Secret scanning alert dismissal requests\" repository permissions": "write"
+ }
+ ]
+ }
+ }
+ ],
+ "delegated-bypass": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/enterprises/{enterprise}/bypass-requests/secret-scanning",
+ "title": "List bypass requests for secret scanning for an enterprise",
+ "category": "secret-scanning",
+ "subcategory": "delegated-bypass",
+ "parameters": [
+ {
+ "name": "enterprise",
+ "description": "The slug version of the enterprise name.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "organization_name",
+ "description": "The name of the organization to filter on.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "reviewer",
+ "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "requester",
+ "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "request_status",
+ "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "completed",
+ "cancelled",
+ "approved",
+ "expired",
+ "deleted",
+ "denied",
+ "open",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List requests to bypass secret scanning push protection in an enterprise.
\nDelegated bypass must be enabled on repositories in the enterprise and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "enterprise": "ENTERPRISE"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 21,
+ "number": 42,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "used_in_tests",
+ "path": "/tests/README.md:16:0",
+ "branch": "refs/heads/main"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
+ "html_url": "https://github.com/octo-org/smile/exemptions/1"
+ },
+ {
+ "id": 12,
+ "number": 24,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "fix_later",
+ "path": "README.md:17:0",
+ "branch": "refs/heads/my-branch"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
+ "status": "denied",
+ "requester_comment": "Token is already revoked, I'll remove it later",
+ "expires_at": "2024-07-08T07:43:03Z",
+ "created_at": "2024-07-01T07:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2",
+ "html_url": "https://github.com/octo-org/smile/exemptions/2"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Secret scanning bypass request",
+ "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the bypass request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the bypass request within its repository."
+ },
+ "repository": {
+ "type": "object",
+ "description": "The repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the repository the bypass request is for."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository the bypass request is for."
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full name of the repository the bypass request is for."
+ }
+ }
+ },
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the bypass.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the bypass."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the bypass."
+ }
+ }
+ },
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the push rules that are being requested to be bypassed.",
+ "items": {
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
+ "secret_type": {
"type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "description": "The type of secret that secret scanning detected."
},
- "avatar_url": {
+ "bypass_reason": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
+ "enum": [
+ "used_in_tests",
+ "false_positive",
+ "fix_later"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
+ "description": "The reason the bypass was requested."
},
- "starred_at": {
+ "path": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "description": "The path in the repo where the secret was located during the request."
},
- "user_view_type": {
+ "branch": {
"type": "string",
- "examples": [
- "public"
- ]
+ "description": "The branch in the repo where the secret was located during the request."
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
}
- ],
- "type": [
- "null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the bypass request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "completed",
+ "expired",
+ "open"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the bypass request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the bypass request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
+ "description": "The ID of the response to the bypass request."
},
- "site_admin": {
- "type": "boolean"
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
},
- "starred_at": {
+ "status": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
]
},
- "user_view_type": {
+ "created_at": {
"type": "string",
- "examples": [
- "public"
- ]
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
}
- ],
- "type": [
- "null"
- ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the bypass request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/exemptions/1"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/bypass-requests/secret-scanning",
+ "title": "List bypass requests for secret scanning for an org",
+ "category": "secret-scanning",
+ "subcategory": "delegated-bypass",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repository_name",
+ "description": "The name of the repository to filter on.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "reviewer",
+ "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "requester",
+ "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "request_status",
+ "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "completed",
+ "cancelled",
+ "approved",
+ "expired",
+ "deleted",
+ "denied",
+ "open",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List requests to bypass secret scanning push protection in an org.
\nDelegated bypass must be enabled on repositories in the org and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 21,
+ "number": 42,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "used_in_tests",
+ "path": "/tests/README.md:16:0",
+ "branch": "refs/heads/main"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
+ "html_url": "https://github.com/octo-org/smile/exemptions/1"
+ },
+ {
+ "id": 12,
+ "number": 24,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
+ },
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
},
- "identifiers": {
- "type": "array",
- "items": {
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "fix_later",
+ "path": "README.md:17:0",
+ "branch": "refs/heads/my-branch"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
+ "status": "denied",
+ "requester_comment": "Token is already revoked, I'll remove it later",
+ "expires_at": "2024-07-08T07:43:03Z",
+ "created_at": "2024-07-01T07:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2",
+ "html_url": "https://github.com/octo-org/smile/exemptions/2"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Secret scanning bypass request",
+ "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the bypass request."
+ },
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the bypass request within its repository."
+ },
+ "repository": {
"type": "object",
+ "description": "The repository the bypass request is for.",
"properties": {
- "type": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the repository the bypass request is for."
+ },
+ "name": {
"type": "string",
- "description": "The type of identifier.",
- "enum": [
- "CVE",
- "GHSA"
- ]
+ "description": "The name of the repository the bypass request is for."
},
- "value": {
+ "full_name": {
"type": "string",
- "description": "The identifier value."
+ "description": "The full name of the repository the bypass request is for."
}
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
- },
- "published_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
- },
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
- },
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
}
},
- "required": [
- "accepted"
- ]
- },
- "vulnerabilities": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "organization": {
"type": "object",
+ "description": "The organization associated with the repository the bypass request is for.",
"properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
- }
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
+ "id": {
+ "type": "integer",
+ "description": "The ID of the organization."
},
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
+ "name": {
+ "type": "string",
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the bypass.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the bypass."
},
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the bypass."
}
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
- }
- },
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
}
},
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_severities": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the push rules that are being requested to be bypassed.",
+ "items": {
+ "type": "object",
"properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
},
- "score": {
- "type": [
- "number",
- "null"
+ "bypass_reason": {
+ "type": "string",
+ "enum": [
+ "used_in_tests",
+ "false_positive",
+ "fix_later"
],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "description": "The reason the bypass was requested."
+ },
+ "path": {
+ "type": "string",
+ "description": "The path in the repo where the secret was located during the request."
+ },
+ "branch": {
+ "type": "string",
+ "description": "The branch in the repo where the secret was located during the request."
}
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
+ }
+ }
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the bypass request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "completed",
+ "expired",
+ "open"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the bypass request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the bypass request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
"properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
+ }
+ }
+ },
+ "status": {
+ "type": "string",
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
}
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
}
- },
- "required": [
- "cwe_id",
- "name"
+ }
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
]
},
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the bypass request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/exemptions/1"
+ ]
}
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Organization bypass requests for secret scanning\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/bypass-requests/secret-scanning",
+ "title": "List bypass requests for secret scanning for a repository",
+ "category": "secret-scanning",
+ "subcategory": "delegated-bypass",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "reviewer",
+ "description": "Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "requester",
+ "description": "Filter bypass requests by the handle of the GitHub user who requested the bypass.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "time_period",
+ "description": "The time period to filter by.
\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "hour",
+ "day",
+ "week",
+ "month"
+ ],
+ "default": "day"
+ }
+ },
+ {
+ "name": "request_status",
+ "description": "The status of the bypass request to filter on. When specified, only requests with this status will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "completed",
+ "cancelled",
+ "approved",
+ "expired",
+ "deleted",
+ "denied",
+ "open",
+ "all"
+ ],
+ "default": "all"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists requests to bypass secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "A list of the bypass requests.
",
+ "example": [
+ {
+ "id": 21,
+ "number": 42,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
},
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "used_in_tests",
+ "path": "/tests/README.md:16:0",
+ "branch": "refs/heads/main"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
+ },
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
}
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
+ "html_url": "https://github.com/octo-org/smile/exemptions/1"
+ },
+ {
+ "id": 12,
+ "number": 24,
+ "repository": {
+ "id": 1,
+ "name": "smile",
+ "full_name": "octo-org/smile"
},
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
+ "organization": {
+ "id": 1,
+ "name": "octo-org"
+ },
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
+ },
+ "request_type": "secret_scanning",
+ "data": [
+ {
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "fix_later",
+ "path": "README.md:17:0",
+ "branch": "refs/heads/my-branch"
+ }
+ ],
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46255555",
+ "status": "denied",
+ "requester_comment": "Token is already revoked, I'll remove it later",
+ "expires_at": "2024-07-08T07:43:03Z",
+ "created_at": "2024-07-01T07:43:03Z",
+ "responses": [
+ {
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
},
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
+ }
+ ],
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2",
+ "html_url": "https://github.com/octo-org/smile/exemptions/2"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Secret scanning bypass request",
+ "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the bypass request."
},
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the bypass request within its repository."
+ },
+ "repository": {
"type": "object",
+ "description": "The repository the bypass request is for.",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
+ "description": "The ID of the repository the bypass request is for."
},
- "starred_at": {
+ "name": {
"type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "description": "The name of the repository the bypass request is for."
},
- "user_view_type": {
+ "full_name": {
"type": "string",
- "examples": [
- "public"
- ]
+ "description": "The full name of the repository the bypass request is for."
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ }
+ },
+ "organization": {
"type": "object",
+ "description": "The organization associated with the repository the bypass request is for.",
"properties": {
"id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
+ "type": "integer",
+ "description": "The ID of the organization."
},
"name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
+ "description": "The name of the organization."
+ }
+ }
+ },
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the bypass.",
+ "properties": {
+ "actor_id": {
"type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "description": "The ID of the GitHub user who requested the bypass."
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the bypass."
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ }
+ },
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
+ },
+ "data": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "Data describing the push rules that are being requested to be bypassed.",
+ "items": {
"type": "object",
"properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
},
- "node_id": {
+ "bypass_reason": {
"type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "enum": [
+ "used_in_tests",
+ "false_positive",
+ "fix_later"
+ ],
+ "description": "The reason the bypass was requested."
},
- "name": {
+ "path": {
"type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
+ "description": "The path in the repo where the secret was located during the request."
},
- "full_name": {
+ "branch": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
+ "description": "The branch in the repo where the secret was located during the request."
+ }
+ }
+ }
+ },
+ "resource_identifier": {
+ "type": "string",
+ "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the bypass request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "completed",
+ "expired",
+ "open"
+ ]
+ },
+ "requester_comment": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The comment the requester provided when creating the bypass request."
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request will expire."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the bypass request was created."
+ },
+ "responses": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The responses to the bypass request.",
+ "items": {
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
+ "reviewer": {
"type": "object",
+ "description": "The user who reviewed the bypass request.",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
+ "actor_id": {
"type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "description": "The ID of the GitHub user who reviewed the bypass request."
},
- "user_view_type": {
+ "actor_name": {
"type": "string",
- "examples": [
- "public"
- ]
+ "description": "The name of the GitHub user who reviewed the bypass request."
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ }
},
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
+ "status": {
+ "type": "string",
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
+ }
+ }
}
- ],
- "type": [
- "null"
- ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the bypass request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/exemptions/1"
+ ]
+ }
}
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
}
}
}
@@ -762584,7 +809749,7 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "A list of the bypass requests.
"
},
{
"httpStatusCode": "403",
@@ -762593,6 +809758,10 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
}
],
"previews": [],
@@ -762602,18 +809771,23 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "read"
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Organization bypass requests for secret scanning\" organization permissions": "read"
+ },
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Secret scanning push protection bypass requests\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
- "title": "Update a repository security advisory",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}",
+ "title": "Get a bypass request for secret scanning",
+ "category": "secret-scanning",
+ "subcategory": "delegated-bypass",
"parameters": [
{
"name": "owner",
@@ -762634,2455 +809808,2375 @@
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "name": "bypass_request_number",
"in": "path",
"required": true,
+ "description": "The number that identifies the bypass request in a repository.
",
"schema": {
- "type": "string"
+ "type": "integer"
}
}
],
- "bodyParameters": [
- {
- "type": "string",
- "name": "summary",
- "in": "body",
- "description": "A short summary of the advisory.
"
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "A detailed description of what the advisory impacts.
"
- },
- {
- "type": "string or null",
- "name": "cve_id",
- "in": "body",
- "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
- },
- {
- "type": "array of objects",
- "name": "vulnerabilities",
- "in": "body",
- "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
- "childParamsGroups": [
- {
- "type": "object",
- "name": "package",
- "description": "The name of the package affected by the vulnerability.
",
- "isRequired": true,
- "childParamsGroups": [
- {
- "type": "string",
- "name": "ecosystem",
- "description": "The package's language or package management ecosystem.
",
- "isRequired": true,
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
- },
- {
- "type": "string or null",
- "name": "name",
- "description": "The unique package name within its ecosystem.
"
- }
- ]
- },
- {
- "type": "string or null",
- "name": "vulnerable_version_range",
- "description": "The range of the package versions affected by the vulnerability.
"
- },
- {
- "type": "string or null",
- "name": "patched_versions",
- "description": "The package version(s) that resolve the vulnerability.
"
- },
- {
- "type": "array of strings or null",
- "name": "vulnerable_functions",
- "description": "The functions in the package that are affected.
"
- }
- ]
- },
- {
- "type": "array of strings or null",
- "name": "cwe_ids",
- "in": "body",
- "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
- },
- {
- "type": "array of objects or null",
- "name": "credits",
- "in": "body",
- "description": "A list of users receiving credit for their participation in the security advisory.
",
- "childParamsGroups": [
- {
- "type": "string",
- "name": "login",
- "description": "The username of the user credited.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "type",
- "description": "The type of credit the user is receiving.
",
- "isRequired": true,
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- ]
- },
- {
- "type": "string or null",
- "name": "severity",
- "in": "body",
- "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
- },
- {
- "type": "string or null",
- "name": "cvss_vector_string",
- "in": "body",
- "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
- },
- {
- "type": "string",
- "name": "state",
- "in": "body",
- "description": "The state of the advisory.
",
- "enum": [
- "published",
- "closed",
- "draft"
- ]
- },
- {
- "type": "array of strings or null",
- "name": "collaborating_users",
- "in": "body",
- "description": "A list of usernames who have been granted write access to the advisory.
"
- },
- {
- "type": "array of strings or null",
- "name": "collaborating_teams",
- "in": "body",
- "description": "A list of team slugs which have been granted write access to the advisory.
"
- }
- ],
- "descriptionHTML": "Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nIn order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,\nor a collaborator on the repository security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a specific request to bypass secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
- "description": "Updating the severity and state.",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "severity": "critical",
- "state": "published"
- },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
- "ghsa_id": "GHSA_ID"
+ "bypass_request_number": "BYPASS_REQUEST_NUMBER"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "A single bypass request.
",
"example": {
- "ghsa_id": "GHSA-abcd-1234-efgh",
- "cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
- "summary": "A short summary of the advisory.",
- "description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
+ "id": 21,
+ "number": 42,
+ "repository": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "name": "smile",
+ "full_name": "octo-org/smile"
},
- "publisher": {
- "login": "octocat",
+ "organization": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "identifiers": [
- {
- "type": "GHSA",
- "value": "GHSA-abcd-1234-efgh"
- },
- {
- "type": "CVE",
- "value": "CVE-2050-00000"
- }
- ],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
- "withdrawn_at": null,
- "submission": null,
- "vulnerabilities": [
- {
- "package": {
- "ecosystem": "pip",
- "name": "a-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
- "vulnerable_functions": [
- "function2"
- ]
- }
- ],
- "cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "name": "octo-org"
},
- "cvss_severities": {
- "cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
- },
- "cvss_v4": {
- "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
- "score": 9.3
- }
+ "requester": {
+ "actor_id": 12,
+ "actor_name": "monalisa"
},
- "cwes": [
- {
- "cwe_id": "CWE-123",
- "name": "A CWE"
- }
- ],
- "cwe_ids": [
- "CWE-123"
- ],
- "credits": [
+ "request_type": "secret_scanning",
+ "data": [
{
- "login": "octocat",
- "type": "analyst"
+ "secret_type": "adafruit_io_key",
+ "bypass_reason": "used_in_tests",
+ "path": "/tests/README.md:16:0",
+ "branch": "refs/heads/main"
}
],
- "credits_detailed": [
+ "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
+ "status": "denied",
+ "requester_comment": "Test token used in the readme as an example",
+ "expires_at": "2024-07-08T08:43:03Z",
+ "created_at": "2024-07-01T08:43:03Z",
+ "responses": [
{
- "user": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "id": 42,
+ "reviewer": {
+ "actor_id": 4,
+ "actor_name": "octocat"
},
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
+ "status": "denied",
+ "created_at": "2024-07-02T08:43:04Z"
}
],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
+ "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1",
+ "html_url": "https://github.com/octo-org/smile/exemptions/1"
},
"schema": {
- "description": "A repository security advisory.",
+ "title": "Secret scanning bypass request",
+ "description": "A bypass request made by a user asking to be exempted from push protection in this repository.",
"type": "object",
"properties": {
- "ghsa_id": {
- "type": "string",
- "description": "The GitHub Security Advisory ID.",
- "readOnly": true
- },
- "cve_id": {
- "type": [
- "string",
- "null"
- ],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "id": {
+ "type": "integer",
+ "description": "The unique identifier of the bypass request."
},
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL for the advisory.",
- "readOnly": true
+ "number": {
+ "type": "integer",
+ "description": "The number uniquely identifying the bypass request within its repository."
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL for the advisory.",
- "readOnly": true
+ "repository": {
+ "type": "object",
+ "description": "The repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the repository the bypass request is for."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository the bypass request is for."
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full name of the repository the bypass request is for."
+ }
+ }
},
- "summary": {
- "type": "string",
- "description": "A short summary of the advisory.",
- "maxLength": 1024
+ "organization": {
+ "type": "object",
+ "description": "The organization associated with the repository the bypass request is for.",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The ID of the organization."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the organization."
+ }
+ }
},
- "description": {
- "type": [
- "string",
- "null"
- ],
- "description": "A detailed description of what the advisory entails.",
- "maxLength": 65535
+ "requester": {
+ "type": "object",
+ "description": "The user who requested the bypass.",
+ "properties": {
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who requested the bypass."
+ },
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who requested the bypass."
+ }
+ }
},
- "severity": {
- "type": [
- "string",
- "null"
- ],
- "description": "The severity of the advisory.",
- "enum": [
- "critical",
- "high",
- "medium",
- "low",
- null
- ]
+ "request_type": {
+ "type": "string",
+ "description": "The type of request."
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
+ "data": {
"type": [
+ "array",
"null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
],
- "type": [
- "null"
- ]
- },
- "identifiers": {
- "type": "array",
+ "description": "Data describing the push rules that are being requested to be bypassed.",
"items": {
"type": "object",
"properties": {
- "type": {
+ "secret_type": {
+ "type": "string",
+ "description": "The type of secret that secret scanning detected."
+ },
+ "bypass_reason": {
"type": "string",
- "description": "The type of identifier.",
"enum": [
- "CVE",
- "GHSA"
- ]
+ "used_in_tests",
+ "false_positive",
+ "fix_later"
+ ],
+ "description": "The reason the bypass was requested."
},
- "value": {
+ "path": {
"type": "string",
- "description": "The identifier value."
+ "description": "The path in the repo where the secret was located during the request."
+ },
+ "branch": {
+ "type": "string",
+ "description": "The branch in the repo where the secret was located during the request."
}
- },
- "required": [
- "type",
- "value"
- ]
- },
- "readOnly": true
+ }
+ }
},
- "state": {
+ "resource_identifier": {
"type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
+ "description": "The unique identifier for the request type of the bypass request. For example, a commit SHA.",
+ "examples": [
+ "827efc6d56897b048c772eb4087f854f46256132"
]
},
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
- "readOnly": true
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
- "readOnly": true
+ "status": {
+ "type": "string",
+ "description": "The status of the bypass request.",
+ "enum": [
+ "pending",
+ "denied",
+ "approved",
+ "cancelled",
+ "completed",
+ "expired",
+ "open"
+ ]
},
- "published_at": {
+ "requester_comment": {
"type": [
"string",
"null"
],
- "format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
- "readOnly": true
+ "description": "The comment the requester provided when creating the bypass request."
},
- "closed_at": {
- "type": [
- "string",
- "null"
- ],
+ "expires_at": {
+ "type": "string",
"format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
- "readOnly": true
+ "description": "The date and time the bypass request will expire."
},
- "withdrawn_at": {
- "type": [
- "string",
- "null"
- ],
+ "created_at": {
+ "type": "string",
"format": "date-time",
- "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
- "readOnly": true
- },
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
+ "description": "The date and time the bypass request was created."
},
- "vulnerabilities": {
+ "responses": {
"type": [
"array",
"null"
],
+ "description": "The responses to the bypass request.",
"items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "title": "Bypass response",
+ "description": "A response made by a delegated bypasser to a bypass request.",
"type": "object",
"properties": {
- "package": {
- "description": "The name of the package affected by the vulnerability.",
- "type": [
- "object",
- "null"
- ],
+ "id": {
+ "type": "integer",
+ "description": "The ID of the response to the bypass request."
+ },
+ "reviewer": {
+ "type": "object",
+ "description": "The user who reviewed the bypass request.",
"properties": {
- "ecosystem": {
- "type": "string",
- "description": "The package's language or package management ecosystem.",
- "enum": [
- "rubygems",
- "npm",
- "pip",
- "maven",
- "nuget",
- "composer",
- "go",
- "rust",
- "erlang",
- "actions",
- "pub",
- "other",
- "swift"
- ]
+ "actor_id": {
+ "type": "integer",
+ "description": "The ID of the GitHub user who reviewed the bypass request."
},
- "name": {
- "type": [
- "string",
- "null"
- ],
- "description": "The unique package name within its ecosystem."
+ "actor_name": {
+ "type": "string",
+ "description": "The name of the GitHub user who reviewed the bypass request."
}
- },
- "required": [
- "ecosystem",
- "name"
- ]
- },
- "vulnerable_version_range": {
- "type": [
- "string",
- "null"
- ],
- "description": "The range of the package versions affected by the vulnerability."
+ }
},
- "patched_versions": {
- "type": [
- "string",
- "null"
- ],
- "description": "The package version(s) that resolve the vulnerability."
+ "status": {
+ "type": "string",
+ "description": "The response status to the bypass request until dismissed.",
+ "enum": [
+ "approved",
+ "denied",
+ "dismissed"
+ ]
},
- "vulnerable_functions": {
- "type": [
- "array",
- "null"
- ],
- "description": "The functions in the package that are affected.",
- "items": {
- "type": "string"
- }
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time the response to the bypass request was created."
}
- },
- "required": [
- "package",
- "vulnerable_version_range",
- "patched_versions",
- "vulnerable_functions"
- ],
- "additionalProperties": false
+ }
}
},
- "cvss": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS vector."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1"
]
},
- "cvss_severities": {
+ "html_url": {
+ "type": "string",
+ "description": "The URL to view the bypass request in a browser.",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octo-org/smile/exemptions/1"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "A single bypass request.
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Organization bypass requests for secret scanning\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}",
+ "title": "Review a bypass request for secret scanning",
+ "category": "secret-scanning",
+ "subcategory": "delegated-bypass",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "bypass_request_number",
+ "in": "path",
+ "required": true,
+ "description": "The number that identifies the bypass request in a repository.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "status",
+ "in": "body",
+ "description": "The review action to perform on the bypass request.
",
+ "isRequired": true,
+ "enum": [
+ "approve",
+ "reject"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "message",
+ "in": "body",
+ "description": "A message to include with the review. Has a maximum character length of 2048.
",
+ "isRequired": true
+ }
+ ],
+ "descriptionHTML": "Approve or deny a request to bypass secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "status": "reject",
+ "message": "This secret has not been revoked."
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "bypass_request_number": "BYPASS_REQUEST_NUMBER"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "The review of the bypass request.
",
+ "example": {
+ "bypass_review_id": 1
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "bypass_review_id": {
+ "type": "integer",
+ "description": "ID of the bypass review."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "The review of the bypass request.
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Organization bypass requests for secret scanning\" organization permissions": "write"
+ },
+ {
+ "\"Secret scanning alerts\" repository permissions": "read",
+ "\"Secret scanning push protection bypass requests\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}",
+ "title": "Dismiss a response on a bypass request for secret scanning",
+ "category": "secret-scanning",
+ "subcategory": "delegated-bypass",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "bypass_response_id",
+ "in": "path",
+ "required": true,
+ "description": "ID of the bypass response.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Dissmiss a response given to a bypass request for secret scanning push protection in a repository.
\nDelegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "bypass_response_id": "BYPASS_RESPONSE_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Review was successfully dismissed.
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "Review was successfully dismissed.
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "500",
+ "description": "Internal Error
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": false,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Secret scanning alerts\" repository permissions": "read"
+ }
+ ]
+ }
+ }
+ ],
+ "push-protection": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/enterprises/{enterprise}/secret-scanning/pattern-configurations",
+ "title": "List enterprise pattern configurations",
+ "category": "secret-scanning",
+ "subcategory": "push-protection",
+ "parameters": [
+ {
+ "name": "enterprise",
+ "description": "The slug version of the enterprise name.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the secret scanning pattern configurations for an enterprise.
\nPersonal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "enterprise": "ENTERPRISE"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "provider_pattern_overrides": [
+ {
+ "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
+ "slug": "github_personal_access_token_legacy_v2",
+ "display_name": "GitHub Personal Access Token (Legacy v2)",
+ "alert_total": 15,
+ "alert_total_percentage": 36,
+ "false_positives": 2,
+ "false_positive_rate": 13,
+ "bypass_rate": 13,
+ "default_setting": "enabled",
+ "setting": "enabled",
+ "enterprise_setting": "enabled"
+ }
+ ],
+ "custom_pattern_overrides": [
+ {
+ "token_type": "cp_2",
+ "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "slug": "custom-api-key",
+ "display_name": "Custom API Key",
+ "alert_total": 15,
+ "alert_total_percentage": 36,
+ "false_positives": 3,
+ "false_positive_rate": 20,
+ "bypass_rate": 20,
+ "default_setting": "disabled",
+ "setting": "enabled"
+ }
+ ]
+ },
+ "schema": {
+ "title": "Secret scanning pattern configuration",
+ "description": "A collection of secret scanning patterns and their settings related to push protection.",
+ "type": "object",
+ "properties": {
+ "pattern_config_version": {
"type": [
- "object",
+ "string",
"null"
],
- "properties": {
- "cvss_v3": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 3 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 3 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- },
- "cvss_v4": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "vector_string": {
- "type": [
- "string",
- "null"
- ],
- "description": "The CVSS 4 vector string."
- },
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
},
- "cwes": {
- "type": [
- "array",
- "null"
- ],
+ "provider_pattern_overrides": {
+ "type": "array",
+ "description": "Overrides for partner patterns.",
"items": {
"type": "object",
"properties": {
- "cwe_id": {
+ "token_type": {
"type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
+ "description": "The ID of the pattern."
},
- "name": {
+ "custom_pattern_version": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The version of this pattern if it's a custom pattern."
+ },
+ "slug": {
"type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
+ "description": "The slug of the pattern."
+ },
+ "display_name": {
+ "type": "string",
+ "description": "The user-friendly name for the pattern."
+ },
+ "alert_total": {
+ "type": "integer",
+ "description": "The total number of alerts generated by this pattern."
+ },
+ "alert_total_percentage": {
+ "type": "integer",
+ "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
+ },
+ "false_positives": {
+ "type": "integer",
+ "description": "The number of false positive alerts generated by this pattern."
+ },
+ "false_positive_rate": {
+ "type": "integer",
+ "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
+ },
+ "bypass_rate": {
+ "type": "integer",
+ "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
+ },
+ "default_setting": {
+ "type": "string",
+ "description": "The default push protection setting for this pattern.",
+ "enum": [
+ "disabled",
+ "enabled"
+ ]
+ },
+ "enterprise_setting": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled",
+ null
+ ]
+ },
+ "setting": {
+ "type": "string",
+ "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
+ ]
}
- },
- "required": [
- "cwe_id",
- "name"
- ]
- },
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
+ }
}
},
- "credits": {
- "type": [
- "array",
- "null"
- ],
+ "custom_pattern_overrides": {
+ "type": "array",
+ "description": "Overrides for custom patterns defined by the organization.",
"items": {
"type": "object",
"properties": {
- "login": {
+ "token_type": {
"type": "string",
- "description": "The username of the user credited."
+ "description": "The ID of the pattern."
},
- "type": {
+ "custom_pattern_version": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The version of this pattern if it's a custom pattern."
+ },
+ "slug": {
"type": "string",
- "description": "The type of credit the user is receiving.",
+ "description": "The slug of the pattern."
+ },
+ "display_name": {
+ "type": "string",
+ "description": "The user-friendly name for the pattern."
+ },
+ "alert_total": {
+ "type": "integer",
+ "description": "The total number of alerts generated by this pattern."
+ },
+ "alert_total_percentage": {
+ "type": "integer",
+ "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
+ },
+ "false_positives": {
+ "type": "integer",
+ "description": "The number of false positive alerts generated by this pattern."
+ },
+ "false_positive_rate": {
+ "type": "integer",
+ "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
+ },
+ "bypass_rate": {
+ "type": "integer",
+ "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
+ },
+ "default_setting": {
+ "type": "string",
+ "description": "The default push protection setting for this pattern.",
"enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
+ "disabled",
+ "enabled"
+ ]
+ },
+ "enterprise_setting": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled",
+ null
+ ]
+ },
+ "setting": {
+ "type": "string",
+ "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
]
}
}
}
- },
- "credits_detailed": {
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/enterprises/{enterprise}/secret-scanning/pattern-configurations",
+ "title": "Update enterprise pattern configurations",
+ "category": "secret-scanning",
+ "subcategory": "push-protection",
+ "parameters": [
+ {
+ "name": "enterprise",
+ "description": "The slug version of the enterprise name.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string or null",
+ "name": "pattern_config_version",
+ "in": "body",
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "provider_pattern_settings",
+ "in": "body",
+ "description": "Pattern settings for provider patterns.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "token_type",
+ "description": "The ID of the pattern to configure.
"
+ },
+ {
+ "type": "string",
+ "name": "push_protection_setting",
+ "description": "Push protection setting to set for the pattern.
",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "custom_pattern_settings",
+ "in": "body",
+ "description": "Pattern settings for custom patterns.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "token_type",
+ "description": "The ID of the pattern to configure.
"
+ },
+ {
+ "type": "string or null",
+ "name": "custom_pattern_version",
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ },
+ {
+ "type": "string",
+ "name": "push_protection_setting",
+ "description": "Push protection setting to set for the pattern.
",
+ "enum": [
+ "disabled",
+ "enabled"
+ ]
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Updates the secret scanning pattern configurations for an enterprise.
\nPersonal access tokens (classic) need the admin:enterprise scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "provider_pattern_settings": [
+ {
+ "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
+ "push_protection_setting": "enabled"
+ }
+ ],
+ "custom_pattern_settings": [
+ {
+ "token_type": "cp_2",
+ "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "push_protection_setting": "enabled"
+ }
+ ]
+ },
+ "parameters": {
+ "enterprise": "ENTERPRISE"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "pattern_config_version": {
+ "type": "string",
+ "description": "The updated pattern configuration version."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": false,
+ "serverToServer": false,
+ "fineGrainedPat": false,
+ "permissions": []
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
+ "title": "List organization pattern configurations",
+ "category": "secret-scanning",
+ "subcategory": "push-protection",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the read:org scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "provider_pattern_overrides": [
+ {
+ "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
+ "slug": "github_personal_access_token_legacy_v2",
+ "display_name": "GitHub Personal Access Token (Legacy v2)",
+ "alert_total": 15,
+ "alert_total_percentage": 36,
+ "false_positives": 2,
+ "false_positive_rate": 13,
+ "bypass_rate": 13,
+ "default_setting": "enabled",
+ "setting": "enabled",
+ "enterprise_setting": "enabled"
+ }
+ ],
+ "custom_pattern_overrides": [
+ {
+ "token_type": "cp_2",
+ "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "slug": "custom-api-key",
+ "display_name": "Custom API Key",
+ "alert_total": 15,
+ "alert_total_percentage": 36,
+ "false_positives": 3,
+ "false_positive_rate": 20,
+ "bypass_rate": 20,
+ "default_setting": "disabled",
+ "setting": "enabled"
+ }
+ ]
+ },
+ "schema": {
+ "title": "Secret scanning pattern configuration",
+ "description": "A collection of secret scanning patterns and their settings related to push protection.",
+ "type": "object",
+ "properties": {
+ "pattern_config_version": {
"type": [
- "array",
+ "string",
"null"
],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
- }
- },
- "required": [
- "user",
- "type",
- "state"
- ],
- "additionalProperties": false
- },
- "readOnly": true
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."
},
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
+ "provider_pattern_overrides": {
+ "type": "array",
+ "description": "Overrides for partner patterns.",
"items": {
- "title": "Simple User",
- "description": "A GitHub user.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
+ "token_type": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ "description": "The ID of the pattern."
},
- "gravatar_id": {
+ "custom_pattern_version": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
+ "description": "The version of this pattern if it's a custom pattern."
},
- "gists_url": {
+ "slug": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
+ "description": "The slug of the pattern."
},
- "starred_url": {
+ "display_name": {
"type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
+ "description": "The user-friendly name for the pattern."
},
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
+ "alert_total": {
+ "type": "integer",
+ "description": "The total number of alerts generated by this pattern."
},
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
+ "alert_total_percentage": {
+ "type": "integer",
+ "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
},
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
+ "false_positives": {
+ "type": "integer",
+ "description": "The number of false positive alerts generated by this pattern."
},
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
+ "false_positive_rate": {
+ "type": "integer",
+ "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
},
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
+ "bypass_rate": {
+ "type": "integer",
+ "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
},
- "type": {
+ "default_setting": {
"type": "string",
- "examples": [
- "User"
+ "description": "The default push protection setting for this pattern.",
+ "enum": [
+ "disabled",
+ "enabled"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
+ "enterprise_setting": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled",
+ null
]
},
- "user_view_type": {
+ "setting": {
"type": "string",
- "examples": [
- "public"
+ "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
]
}
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
+ }
}
},
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
+ "custom_pattern_overrides": {
+ "type": "array",
+ "description": "Overrides for custom patterns defined by the organization.",
"items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
+ "token_type": {
+ "type": "string",
+ "description": "The ID of the pattern."
},
- "description": {
+ "custom_pattern_version": {
"type": [
"string",
"null"
- ]
- },
- "privacy": {
- "type": "string"
+ ],
+ "description": "The version of this pattern if it's a custom pattern."
},
- "notification_setting": {
- "type": "string"
+ "slug": {
+ "type": "string",
+ "description": "The slug of the pattern."
},
- "permission": {
- "type": "string"
+ "display_name": {
+ "type": "string",
+ "description": "The user-friendly name for the pattern."
},
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- },
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
+ "alert_total": {
+ "type": "integer",
+ "description": "The total number of alerts generated by this pattern."
},
- "url": {
- "type": "string",
- "format": "uri"
+ "alert_total_percentage": {
+ "type": "integer",
+ "description": "The percentage of all alerts that this pattern represents, rounded to the nearest integer."
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
+ "false_positives": {
+ "type": "integer",
+ "description": "The number of false positive alerts generated by this pattern."
},
- "members_url": {
- "type": "string"
+ "false_positive_rate": {
+ "type": "integer",
+ "description": "The percentage of alerts from this pattern that are false positives, rounded to the nearest integer."
},
- "repositories_url": {
- "type": "string",
- "format": "uri"
+ "bypass_rate": {
+ "type": "integer",
+ "description": "The percentage of blocks for this pattern that were bypassed, rounded to the nearest integer."
},
- "type": {
- "description": "The ownership type of the team",
+ "default_setting": {
"type": "string",
+ "description": "The default push protection setting for this pattern.",
"enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
+ "disabled",
+ "enabled"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "enterprise_setting": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled",
+ null
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
+ "setting": {
+ "type": "string",
+ "description": "The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting.",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
]
}
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/orgs/{org}/secret-scanning/pattern-configurations",
+ "title": "Update organization pattern configurations",
+ "category": "secret-scanning",
+ "subcategory": "push-protection",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string or null",
+ "name": "pattern_config_version",
+ "in": "body",
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "provider_pattern_settings",
+ "in": "body",
+ "description": "Pattern settings for provider patterns.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "token_type",
+ "description": "The ID of the pattern to configure.
"
+ },
+ {
+ "type": "string",
+ "name": "push_protection_setting",
+ "description": "Push protection setting to set for the pattern.
",
+ "enum": [
+ "not-set",
+ "disabled",
+ "enabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "array of objects",
+ "name": "custom_pattern_settings",
+ "in": "body",
+ "description": "Pattern settings for custom patterns.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "token_type",
+ "description": "The ID of the pattern to configure.
"
+ },
+ {
+ "type": "string or null",
+ "name": "custom_pattern_version",
+ "description": "The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update.
"
+ },
+ {
+ "type": "string",
+ "name": "push_protection_setting",
+ "description": "Push protection setting to set for the pattern.
",
+ "enum": [
+ "disabled",
+ "enabled"
+ ]
+ }
+ ]
+ }
+ ],
+ "descriptionHTML": "Updates the secret scanning pattern configurations for an organization.
\nPersonal access tokens (classic) need the write:org scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "provider_pattern_settings": [
+ {
+ "token_type": "GITHUB_PERSONAL_ACCESS_TOKEN",
+ "push_protection_setting": "enabled"
+ }
+ ],
+ "custom_pattern_settings": [
+ {
+ "token_type": "cp_2",
+ "custom_pattern_version": "0ujsswThIGTUYm2K8FjOOfXtY1K",
+ "push_protection_setting": "enabled"
+ }
+ ]
+ },
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "pattern_config_version": {
+ "type": "string",
+ "description": "The updated pattern configuration version."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "409",
+ "description": "Conflict
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" organization permissions": "write"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "security-advisories": {
+ "global-advisories": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/advisories",
+ "title": "List global security advisories",
+ "category": "security-advisories",
+ "subcategory": "global-advisories",
+ "parameters": [
+ {
+ "name": "ghsa_id",
+ "in": "query",
+ "description": "If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "reviewed",
+ "malware",
+ "unreviewed"
+ ],
+ "default": "reviewed"
+ }
+ },
+ {
+ "name": "cve_id",
+ "description": "If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ecosystem",
+ "in": "query",
+ "description": "If specified, only advisories for these ecosystems will be returned.
",
+ "schema": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ }
+ },
+ {
+ "name": "severity",
+ "in": "query",
+ "description": "If specified, only advisories with these severities will be returned.
",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "unknown",
+ "low",
+ "medium",
+ "high",
+ "critical"
+ ]
+ }
+ },
+ {
+ "name": "cwes",
+ "in": "query",
+ "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
\nExample: cwes=79,284,22 or cwes[]=79&cwes[]=284&cwes[]=22
",
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "is_withdrawn",
+ "in": "query",
+ "description": "Whether to only return advisories that have been withdrawn.
",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "affects",
+ "in": "query",
+ "description": "If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified.\nIf the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
\nExample: affects=package1,package2@1.0.0,package3@2.0.0 or affects[]=package1&affects[]=package2@1.0.0
",
+ "schema": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "maxItems": 1000,
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "published",
+ "in": "query",
+ "description": "If specified, only return advisories that were published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "updated",
+ "in": "query",
+ "description": "If specified, only return advisories that were updated on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "modified",
+ "description": "If specified, only show advisories that were updated or published on a date or date range.
\nFor more information on the syntax of the date range, see \"Understanding the search syntax .\"
",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "epss_percentage",
+ "in": "query",
+ "description": "If specified, only return advisories that have an EPSS percentage score that matches the provided value.\nThe EPSS percentage represents the likelihood of a CVE being exploited.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "epss_percentile",
+ "in": "query",
+ "description": "If specified, only return advisories that have an EPSS percentile score that matches the provided value.\nThe EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 30
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "updated",
+ "published",
+ "epss_percentage",
+ "epss_percentile"
+ ],
+ "default": "published"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
\nBy default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type parameter in your request, with the value malware. For more information about the different types of security advisories, see \"About the GitHub Advisory database .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
+ "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "summary": "Heartbleed security advisory",
+ "description": "This bug allows an attacker to read portions of the affected server’s memory, potentially disclosing sensitive information.",
+ "type": "reviewed",
+ "severity": "high",
+ "source_code_location": "https://github.com/project/a-package",
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "references": [
+ "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
+ ],
+ "published_at": "2023-03-23T02:30:56Z",
+ "updated_at": "2023-03-24T02:30:56Z",
+ "github_reviewed_at": "2023-03-23T02:30:56Z",
+ "nvd_published_at": "2023-03-25T02:30:56Z",
+ "withdrawn_at": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "npm",
+ "name": "a-package"
},
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
+ "first_patched_version": "1.0.3",
+ "vulnerable_version_range": "<=1.0.2",
+ "vulnerable_functions": [
+ "a_function"
]
}
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
},
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-400",
+ "name": "Uncontrolled Resource Consumption"
+ }
+ ],
+ "epss": [
+ {
+ "percentage": 0.00045,
+ "percentile": "0.16001e0"
+ }
+ ],
+ "credits": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst"
+ }
+ ]
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "description": "A GitHub Security Advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
+ "readOnly": true
+ },
+ "url": {
+ "type": "string",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "repository_advisory_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL for the repository advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of advisory.",
+ "readOnly": true,
+ "enum": [
+ "reviewed",
+ "unreviewed",
+ "malware"
+ ]
+ },
+ "severity": {
+ "type": "string",
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ "unknown"
+ ]
+ },
+ "source_code_location": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The URL of the advisory's source code."
+ },
+ "identifiers": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "readOnly": true,
+ "items": {
"type": "object",
"properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
+ "type": {
"type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
]
},
- "full_name": {
+ "value": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ }
+ },
+ "references": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string",
+ "description": "URLs with more information regarding the advisory."
+ }
+ },
+ "published_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "github_reviewed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "nvd_published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The products and respective version ranges affected by the advisory.",
+ "items": {
+ "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
+ "ecosystem": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
]
},
- "gravatar_id": {
+ "name": {
"type": [
"string",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "description": "The unique package name within its ecosystem."
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
+ "ecosystem",
+ "name"
]
},
- "description": {
+ "vulnerable_version_range": {
"type": [
"string",
"null"
],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the downloads on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the events of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the forks of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
+ "description": "The range of the package versions affected by the vulnerability."
},
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
+ "first_patched_version": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version that resolves the vulnerability."
},
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected by the vulnerability.",
+ "readOnly": true,
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "first_patched_version",
+ "vulnerable_functions"
+ ]
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "tags_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
- ]
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
- ]
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "epss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
+ "properties": {
+ "percentage": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "percentile": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
},
- "trees_url": {
+ "name": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The users who contributed to the advisory.",
+ "readOnly": true,
+ "items": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "hooks_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
+ "user",
+ "type"
]
}
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "repository_advisory_url",
+ "summary",
+ "description",
+ "type",
+ "severity",
+ "source_code_location",
+ "identifiers",
+ "references",
+ "published_at",
+ "updated_at",
+ "github_reviewed_at",
+ "nvd_published_at",
+ "withdrawn_at",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "credits"
+ ],
+ "additionalProperties": false
+ }
}
}
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
},
{
- "key": "add_credit",
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ },
+ {
+ "httpStatusCode": "429",
+ "description": "Too many requests
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/advisories/{ghsa_id}",
+ "title": "Get a global security advisory",
+ "category": "security-advisories",
+ "subcategory": "global-advisories",
+ "parameters": [
+ {
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
",
+ "codeExamples": [
+ {
+ "key": "default",
"request": {
- "contentType": "application/json",
- "description": "To add a credit to an advisory, send the whole array of values.",
+ "description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "credits": [
- {
- "login": "monauser",
- "type": "remediation_developer"
- }
- ]
- },
"parameters": {
- "owner": "OWNER",
- "repo": "REPO",
"ghsa_id": "GHSA_ID"
}
},
@@ -765093,51 +812187,14 @@
"example": {
"ghsa_id": "GHSA-abcd-1234-efgh",
"cve_id": "CVE-2050-00000",
- "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
- "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh",
+ "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh",
"summary": "A short summary of the advisory.",
"description": "A detailed description of what the advisory entails.",
- "severity": "critical",
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "publisher": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
+ "type": "reviewed",
+ "severity": "high",
+ "source_code_location": "https://github.com/project/a-package",
"identifiers": [
{
"type": "GHSA",
@@ -765148,45 +812205,35 @@
"value": "CVE-2050-00000"
}
],
- "state": "published",
- "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "published_at": "2020-01-03T00:00:00Z",
- "closed_at": null,
+ "references": [
+ "https://nvd.nist.gov/vuln/detail/CVE-2050-00000"
+ ],
+ "published_at": "2023-03-23T02:30:56Z",
+ "updated_at": "2023-03-24T02:30:56Z",
+ "github_reviewed_at": "2023-03-23T02:30:56Z",
+ "nvd_published_at": "2023-03-25T02:30:56Z",
"withdrawn_at": null,
- "submission": null,
"vulnerabilities": [
{
"package": {
- "ecosystem": "pip",
+ "ecosystem": "npm",
"name": "a-package"
},
- "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
- "patched_versions": "1.0.1",
- "vulnerable_functions": [
- "function1"
- ]
- },
- {
- "package": {
- "ecosystem": "pip",
- "name": "another-package"
- },
- "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
- "patched_versions": "1.0.2",
+ "first_patched_version": "1.0.3",
+ "vulnerable_version_range": "<=1.0.2",
"vulnerable_functions": [
- "function2"
+ "a_function"
]
}
],
"cvss": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
},
"cvss_severities": {
"cvss_v3": {
- "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
- "score": 9.8
+ "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H",
+ "score": 7.6
},
"cvss_v4": {
"vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
@@ -765195,20 +812242,11 @@
},
"cwes": [
{
- "cwe_id": "CWE-123",
- "name": "A CWE"
+ "cwe_id": "CWE-400",
+ "name": "Uncontrolled Resource Consumption"
}
],
- "cwe_ids": [
- "CWE-123"
- ],
"credits": [
- {
- "login": "octocat",
- "type": "analyst"
- }
- ],
- "credits_detailed": [
{
"user": {
"login": "octocat",
@@ -765230,119 +812268,12 @@
"type": "User",
"site_admin": false
},
- "type": "analyst",
- "state": "accepted"
- }
- ],
- "collaborating_users": [
- {
- "login": "octokitten",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octokitten",
- "html_url": "https://github.com/octokitten",
- "followers_url": "https://api.github.com/users/octokitten/followers",
- "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
- "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
- "organizations_url": "https://api.github.com/users/octokitten/orgs",
- "repos_url": "https://api.github.com/users/octokitten/repos",
- "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octokitten/received_events",
- "type": "User",
- "site_admin": false
- }
- ],
- "collaborating_teams": [
- {
- "name": "Justice League",
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "permission": "admin",
- "parent": null
+ "type": "analyst"
}
- ],
- "private_fork": {
- "id": 217723378,
- "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
- "name": "octo-repo-ghsa-abcd-1234-efgh",
- "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "owner": {
- "login": "octo-org",
- "id": 6811672,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
- "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octo-org",
- "html_url": "https://github.com/octo-org",
- "followers_url": "https://api.github.com/users/octo-org/followers",
- "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
- "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
- "organizations_url": "https://api.github.com/users/octo-org/orgs",
- "repos_url": "https://api.github.com/users/octo-org/repos",
- "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octo-org/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": true,
- "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "description": null,
- "fork": false,
- "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
- "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
- "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
- "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
- "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
- "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
- "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
- "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
- "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
- "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
- "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
- "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
- "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
- "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
- "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
- "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
- "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
- "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
- "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
- "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
- }
+ ]
},
"schema": {
- "description": "A repository security advisory.",
+ "description": "A GitHub Security Advisory.",
"type": "object",
"properties": {
"ghsa_id": {
@@ -765355,11 +812286,11 @@
"string",
"null"
],
- "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.",
+ "readOnly": true
},
"url": {
"type": "string",
- "format": "uri",
"description": "The API URL for the advisory.",
"readOnly": true
},
@@ -765369,6 +812300,15 @@
"description": "The URL for the advisory.",
"readOnly": true
},
+ "repository_advisory_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "description": "The API URL for the repository advisory.",
+ "readOnly": true
+ },
"summary": {
"type": "string",
"description": "A short summary of the advisory.",
@@ -765382,376 +812322,41 @@
"description": "A detailed description of what the advisory entails.",
"maxLength": 65535
},
+ "type": {
+ "type": "string",
+ "description": "The type of advisory.",
+ "readOnly": true,
+ "enum": [
+ "reviewed",
+ "unreviewed",
+ "malware"
+ ]
+ },
"severity": {
- "type": [
- "string",
- "null"
- ],
+ "type": "string",
"description": "The severity of the advisory.",
"enum": [
"critical",
"high",
"medium",
"low",
- null
+ "unknown"
]
},
- "author": {
- "readOnly": true,
- "description": "The author of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ],
+ "source_code_location": {
"type": [
+ "string",
"null"
- ]
- },
- "publisher": {
- "readOnly": true,
- "description": "The publisher of the advisory.",
- "allOf": [
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
],
- "type": [
- "null"
- ]
+ "format": "uri",
+ "description": "The URL of the advisory's source code."
},
"identifiers": {
- "type": "array",
+ "type": [
+ "array",
+ "null"
+ ],
+ "readOnly": true,
"items": {
"type": "object",
"properties": {
@@ -765772,54 +812377,46 @@
"type",
"value"
]
- },
- "readOnly": true
- },
- "state": {
- "type": "string",
- "description": "The state of the advisory.",
- "enum": [
- "published",
- "closed",
- "withdrawn",
- "draft",
- "triage"
- ]
+ }
},
- "created_at": {
+ "references": {
"type": [
- "string",
+ "array",
"null"
],
+ "items": {
+ "type": "string",
+ "description": "URLs with more information regarding the advisory."
+ }
+ },
+ "published_at": {
+ "type": "string",
"format": "date-time",
- "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
"readOnly": true
},
"updated_at": {
- "type": [
- "string",
- "null"
- ],
+ "type": "string",
"format": "date-time",
"description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
"readOnly": true
},
- "published_at": {
+ "github_reviewed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "description": "The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.",
"readOnly": true
},
- "closed_at": {
+ "nvd_published_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "description": "The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.",
"readOnly": true
},
"withdrawn_at": {
@@ -765831,30 +812428,14 @@
"description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
"readOnly": true
},
- "submission": {
- "type": [
- "object",
- "null"
- ],
- "readOnly": true,
- "properties": {
- "accepted": {
- "type": "boolean",
- "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
- "readOnly": true
- }
- },
- "required": [
- "accepted"
- ]
- },
"vulnerabilities": {
"type": [
"array",
"null"
],
+ "description": "The products and respective version ranges affected by the advisory.",
"items": {
- "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
"type": "object",
"properties": {
"package": {
@@ -765903,19 +812484,20 @@
],
"description": "The range of the package versions affected by the vulnerability."
},
- "patched_versions": {
+ "first_patched_version": {
"type": [
"string",
"null"
],
- "description": "The package version(s) that resolve the vulnerability."
+ "description": "The package version that resolves the vulnerability."
},
"vulnerable_functions": {
"type": [
"array",
"null"
],
- "description": "The functions in the package that are affected.",
+ "description": "The functions in the package that are affected by the vulnerability.",
+ "readOnly": true,
"items": {
"type": "string"
}
@@ -765924,10 +812506,9 @@
"required": [
"package",
"vulnerable_version_range",
- "patched_versions",
+ "first_patched_version",
"vulnerable_functions"
- ],
- "additionalProperties": false
+ ]
}
},
"cvss": {
@@ -766007,100 +812588,1107 @@
],
"description": "The CVSS 4 vector string."
},
- "score": {
- "type": [
- "number",
- "null"
- ],
- "description": "The CVSS 4 score.",
- "minimum": 0,
- "maximum": 10,
- "readOnly": true
- }
- },
- "required": [
- "vector_string",
- "score"
- ]
- }
- }
- },
- "cwes": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "cwe_id": {
- "type": "string",
- "description": "The Common Weakness Enumeration (CWE) identifier."
- },
- "name": {
- "type": "string",
- "description": "The name of the CWE.",
- "readOnly": true
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "epss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).",
+ "properties": {
+ "percentage": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ },
+ "percentile": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The users who contributed to the advisory.",
+ "readOnly": true,
+ "items": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type"
+ ]
+ }
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "repository_advisory_url",
+ "summary",
+ "description",
+ "type",
+ "severity",
+ "source_code_location",
+ "identifiers",
+ "references",
+ "published_at",
+ "updated_at",
+ "github_reviewed_at",
+ "nvd_published_at",
+ "withdrawn_at",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "credits"
+ ],
+ "additionalProperties": false
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [],
+ "allowPermissionlessAccess": true,
+ "allowsPublicRead": true
+ }
+ }
+ ],
+ "repository-advisories": [
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/security-advisories",
+ "title": "List repository security advisories for an organization",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
+ {
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
+ }
+ },
+ {
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "published"
+ ],
+ "default": "created"
+ }
+ },
+ {
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 30
+ }
+ },
+ {
+ "name": "state",
+ "description": "Filter by the state of the repository advisories. Only advisories of this state will be returned.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "triage",
+ "draft",
+ "published",
+ "closed"
+ ]
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Lists repository security advisories for an organization.
\nThe authenticated user must be an owner or security manager for the organization to use this endpoint.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "org": "ORG"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": null
+ },
+ {
+ "ghsa_id": "GHSA-1234-5678-9012",
+ "cve_id": "CVE-2051-0000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "low",
+ "author": {
+ "login": "monauser",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "monalisa",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-1234-5678-9012"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2051-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-03T00:00:00Z",
+ "updated_at": "2020-01-04T00:00:00Z",
+ "published_at": "2020-01-04T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": {
+ "accepted": true
+ },
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 7.1
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-456",
+ "name": "A CWE 2.0"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-456"
+ ],
+ "credits": [
+ {
+ "login": "monauser",
+ "type": "reporter"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "monauser",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "reporter",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-1234-5678-9012",
+ "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
}
- },
- "required": [
- "cwe_id",
- "name"
+ ],
+ "type": [
+ "null"
]
},
- "readOnly": true
- },
- "cwe_ids": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of only the CWE IDs.",
- "items": {
- "type": "string"
- }
- },
- "credits": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "description": "The username of the user credited."
- },
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- }
- }
- }
- },
- "credits_detailed": {
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "A credit given to a user for a repository security advisory.",
- "type": "object",
- "properties": {
- "user": {
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -766267,519 +813855,363 @@
"type",
"url"
]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
},
- "type": {
- "type": "string",
- "description": "The type of credit the user is receiving.",
- "enum": [
- "analyst",
- "finder",
- "reporter",
- "coordinator",
- "remediation_developer",
- "remediation_reviewer",
- "remediation_verifier",
- "tool",
- "sponsor",
- "other"
- ]
- },
- "state": {
- "type": "string",
- "description": "The state of the user's acceptance of the credit.",
- "enum": [
- "accepted",
- "declined",
- "pending"
- ]
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
}
},
"required": [
- "user",
- "type",
- "state"
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
],
- "additionalProperties": false
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
},
- "readOnly": true
- },
- "collaborating_users": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of users that collaborate on the advisory.",
- "items": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
+ "vector_string": {
"type": [
"string",
"null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
+ ],
+ "description": "The CVSS vector."
},
- "gravatar_id": {
+ "score": {
"type": [
- "string",
+ "number",
"null"
],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "vector_string",
+ "score"
]
- }
- },
- "collaborating_teams": {
- "type": [
- "array",
- "null"
- ],
- "description": "A list of teams that collaborate on the advisory.",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
+ "cvss_v3": {
"type": [
- "string",
+ "object",
"null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
+ ],
"properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
},
- "admin": {
- "type": "boolean"
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "vector_string",
+ "score"
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
}
+ },
+ "required": [
+ "vector_string",
+ "score"
]
}
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- },
- "private_fork": {
- "readOnly": true,
- "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
- "allOf": [
- {
- "title": "Simple Repository",
- "description": "A GitHub repository.",
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
"type": "object",
"properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "description": "A unique identifier of the repository.",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
+ "cwe_id": {
"type": "string",
- "description": "The GraphQL identifier of the repository.",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "description": "The Common Weakness Enumeration (CWE) identifier."
},
"name": {
"type": "string",
- "description": "The name of the repository.",
- "examples": [
- "Hello-World"
- ]
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ },
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
},
- "full_name": {
+ "type": {
"type": "string",
- "description": "The full, globally unique, name of the repository.",
- "examples": [
- "octocat/Hello-World"
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
- },
- "owner": {
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -766947,390 +814379,1070 @@
"url"
]
},
- "private": {
- "type": "boolean",
- "description": "Whether the repository is private."
- },
- "html_url": {
+ "type": {
"type": "string",
- "format": "uri",
- "description": "The URL to view the repository on GitHub.com.",
- "examples": [
- "https://github.com/octocat/Hello-World"
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
},
- "description": {
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
"type": [
"string",
"null"
- ],
- "description": "The repository description.",
- "examples": [
- "This your first repo!"
]
},
- "fork": {
- "type": "boolean",
- "description": "Whether the repository is a fork."
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to get more information about the repository from the GitHub API.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "archive_url": {
+ "login": {
"type": "string",
- "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ "octocat"
]
},
- "assignees_url": {
- "type": "string",
- "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ 1
]
},
- "blobs_url": {
+ "node_id": {
"type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ "MDQ6VXNlcjE="
]
},
- "branches_url": {
+ "avatar_url": {
"type": "string",
- "description": "A template for the API URL to get information about branches in the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "collaborators_url": {
- "type": "string",
- "description": "A template for the API URL to get information about collaborators of the repository.",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "comments_url": {
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about comments on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ "https://api.github.com/users/octocat"
]
},
- "commits_url": {
+ "html_url": {
"type": "string",
- "description": "A template for the API URL to get information about commits on the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ "https://github.com/octocat"
]
},
- "compare_url": {
+ "followers_url": {
"type": "string",
- "description": "A template for the API URL to compare two commits or refs.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ "https://api.github.com/users/octocat/followers"
]
},
- "contents_url": {
+ "following_url": {
"type": "string",
- "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "contributors_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
- "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/contributors"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "deployments_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/deployments"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "downloads_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the downloads on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/downloads"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "events_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the events of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/events"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "forks_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "description": "A template for the API URL to get information about Git commits of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ "https://api.github.com/users/octocat/repos"
]
},
- "git_refs_url": {
+ "events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "git_tags_url": {
+ "received_events_url": {
"type": "string",
- "description": "A template for the API URL to get information about Git tags of the repository.",
+ "format": "uri",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ "https://api.github.com/users/octocat/received_events"
]
},
- "issue_comment_url": {
+ "type": {
"type": "string",
- "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ "User"
]
},
- "issue_events_url": {
- "type": "string",
- "description": "A template for the API URL to get information about issue events on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
+ "site_admin": {
+ "type": "boolean"
},
- "issues_url": {
+ "starred_at": {
"type": "string",
- "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ "\"2020-07-09T00:17:55Z\""
]
},
- "keys_url": {
+ "user_view_type": {
"type": "string",
- "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
},
- "labels_url": {
- "type": "string",
- "description": "A template for the API URL to get information about labels of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
+ "node_id": {
+ "type": "string"
},
- "languages_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to get information about the languages of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/languages"
- ]
+ "name": {
+ "type": "string"
},
- "merges_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to merge branches in the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/merges"
- ]
+ "slug": {
+ "type": "string"
},
- "milestones_url": {
- "type": "string",
- "description": "A template for the API URL to get information about milestones of the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ "description": {
+ "type": [
+ "string",
+ "null"
]
},
- "notifications_url": {
- "type": "string",
- "description": "A template for the API URL to get information about notifications on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
+ "privacy": {
+ "type": "string"
},
- "pulls_url": {
- "type": "string",
- "description": "A template for the API URL to get information about pull requests on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
+ "notification_setting": {
+ "type": "string"
},
- "releases_url": {
- "type": "string",
- "description": "A template for the API URL to get information about releases on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
+ "permission": {
+ "type": "string"
},
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the stargazers on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
]
},
- "statuses_url": {
+ "url": {
"type": "string",
- "description": "A template for the API URL to get information about statuses of a commit.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
+ "format": "uri"
},
- "subscribers_url": {
+ "html_url": {
"type": "string",
"format": "uri",
- "description": "The API URL to list the subscribers on the repository.",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "subscription_url": {
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
"type": "string",
- "format": "uri",
- "description": "The API URL to subscribe to notifications for this repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/subscription"
- ]
+ "format": "uri"
},
- "tags_url": {
+ "type": {
+ "description": "The ownership type of the team",
"type": "string",
- "format": "uri",
- "description": "The API URL to get information about tags on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/tags"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "teams_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the teams on the repository.",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/teams"
+ 37
]
},
- "trees_url": {
- "type": "string",
- "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ 42
]
},
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "description": "The API URL to list the hooks on the repository.",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World/hooks"
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
+ "url",
+ "members_url",
"name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
]
}
- ],
- "type": [
- "null"
- ]
- }
- },
- "required": [
- "ghsa_id",
- "cve_id",
- "url",
- "html_url",
- "summary",
- "description",
- "severity",
- "author",
- "publisher",
- "identifiers",
- "state",
- "created_at",
- "updated_at",
- "published_at",
- "closed_at",
- "withdrawn_at",
- "submission",
- "vulnerabilities",
- "cvss",
- "cwes",
- "cwe_ids",
- "credits",
- "credits_detailed",
- "collaborating_users",
- "collaborating_teams",
- "private_fork"
- ],
- "additionalProperties": false
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
+ }
}
}
}
@@ -767341,16 +815453,12 @@
"description": "OK
"
},
{
- "httpStatusCode": "403",
- "description": "Forbidden
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -767367,9 +815475,9 @@
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve",
- "title": "Request a CVE for a repository security advisory",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories",
+ "title": "List repository security advisories",
"category": "security-advisories",
"subcategory": "repository-advisories",
"parameters": [
@@ -767392,112 +815500,82 @@
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
- "in": "path",
- "required": true,
+ "name": "direction",
+ "description": "The direction to sort the results by.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see \"Requesting a CVE identification number .\"
\nYou may request a CVE for public repositories, but cannot do so for private repositories.
\nIn order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "owner": "OWNER",
- "repo": "REPO",
- "ghsa_id": "GHSA_ID"
- }
- },
- "response": {
- "statusCode": "202",
- "contentType": "application/json",
- "description": "Accepted
",
- "example": null,
- "schema": {
- "type": "object"
- }
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc"
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
},
{
- "httpStatusCode": "404",
- "description": "Resource not found
"
+ "name": "sort",
+ "description": "The property to sort the results by.
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created",
+ "updated",
+ "published"
+ ],
+ "default": "created"
+ }
},
{
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Repository security advisories\" repository permissions": "write"
+ "name": "before",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results before this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string"
}
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks",
- "title": "Create a temporary private fork",
- "category": "security-advisories",
- "subcategory": "repository-advisories",
- "parameters": [
+ },
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "after",
+ "description": "A cursor, as given in the Link header . If specified, the query only searches for results after this cursor. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
"schema": {
"type": "string"
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
+ "name": "per_page",
+ "description": "The number of advisories to return per page. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 30
}
},
{
- "name": "ghsa_id",
- "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
- "in": "path",
- "required": true,
+ "name": "state",
+ "description": "Filter by state of the repository advisories. Only advisories of this state will be returned.
",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "triage",
+ "draft",
+ "published",
+ "closed"
+ ]
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Create a temporary private fork to collaborate on fixing a security vulnerability in your repository.
\n Note
\n
\nForking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
\n
",
+ "descriptionHTML": "Lists security advisories in a repository.
\nThe authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
"codeExamples": [
{
"key": "default",
@@ -767506,134 +815584,23 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"owner": "OWNER",
- "repo": "REPO",
- "ghsa_id": "GHSA_ID"
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "202",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
- "example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://github.com/licenses/mit"
- },
- "language": null,
- "forks_count": 9,
- "forks": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "open_issues": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "pull": true,
- "push": false,
- "admin": false
- },
- "allow_rebase_merge": true,
- "template_repository": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World-Template",
- "full_name": "octocat/Hello-World-Template",
- "owner": {
+ "example": [
+ {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -767653,138 +815620,7 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World-Template",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World-Template",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World-Template.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World-Template.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
- "homepage": "https://github.com",
- "language": null,
- "forks": 9,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "watchers": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues": 0,
- "open_issues_count": 0,
- "is_template": true,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0
- },
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "allow_forking": true,
- "web_commit_signoff_required": false,
- "subscribers_count": 42,
- "network_count": 0,
- "organization": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "parent": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "publisher": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -767804,1015 +815640,1159 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
},
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": null
},
- "source": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
+ {
+ "ghsa_id": "GHSA-1234-5678-9012",
+ "cve_id": "CVE-2051-0000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "low",
+ "author": {
+ "login": "monauser",
+ "id": 2,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": true,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
- },
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
- },
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
- }
- },
- "schema": {
- "title": "Full Repository",
- "description": "Full Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
- ]
+ "publisher": {
+ "login": "monalisa",
+ "id": 3,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monalisa",
+ "html_url": "https://github.com/monalisa",
+ "followers_url": "https://api.github.com/users/monalisa/followers",
+ "following_url": "https://api.github.com/users/monalisa/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions",
+ "organizations_url": "https://api.github.com/users/monalisa/orgs",
+ "repos_url": "https://api.github.com/users/monalisa/repos",
+ "events_url": "https://api.github.com/users/monalisa/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monalisa/received_events",
+ "type": "User",
+ "site_admin": false
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-1234-5678-9012"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2051-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-03T00:00:00Z",
+ "updated_at": "2020-01-04T00:00:00Z",
+ "published_at": "2020-01-04T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": {
+ "accepted": true
},
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
},
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
},
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
},
- "is_template": {
- "type": "boolean",
- "examples": [
- true
- ]
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N",
+ "score": 1.6
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 7.1
+ }
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
+ "cwes": [
+ {
+ "cwe_id": "CWE-456",
+ "name": "A CWE 2.0"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-456"
+ ],
+ "credits": [
+ {
+ "login": "monauser",
+ "type": "reporter"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "monauser",
+ "id": 2,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/monauser",
+ "html_url": "https://github.com/monauser",
+ "followers_url": "https://api.github.com/users/monauser/followers",
+ "following_url": "https://api.github.com/users/monauser/following{/other_user}",
+ "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/monauser/subscriptions",
+ "organizations_url": "https://api.github.com/users/monauser/orgs",
+ "repos_url": "https://api.github.com/users/monauser/repos",
+ "events_url": "https://api.github.com/users/monauser/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/monauser/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "reporter",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-1234-5678-9012",
+ "full_name": "octo-org/octo-repo-ghsa-1234-5678-9012",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
},
- "examples": [
- "octocat",
- "atom",
- "electron",
- "API"
- ]
- },
- "has_issues": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "type": "string",
- "examples": [
- "public"
- ]
- },
- "pushed_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
},
- "pull": {
- "type": "boolean"
- }
+ "readOnly": true
},
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "allow_rebase_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "template_repository": {
- "anyOf": [
- {
- "type": "null"
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- {
- "title": "Repository",
- "description": "A repository on GitHub.",
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
]
},
- "node_id": {
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
"type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "description": "The Common Weakness Enumeration (CWE) identifier."
},
"name": {
- "description": "The name of the repository.",
"type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ },
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
"type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
+ "description": "The username of the user credited."
},
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
]
- },
- "owner": {
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -768980,846 +816960,1809 @@
"url"
]
},
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
},
"html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/octocat/Hello-World"
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
},
"description": {
"type": [
"string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "read"
+ }
+ ],
+ "allowsPublicRead": true
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories",
+ "title": "Create a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "summary",
+ "in": "body",
+ "description": "A short summary of the advisory.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A detailed description of what the advisory impacts.
",
+ "isRequired": true
+ },
+ {
+ "type": "string or null",
+ "name": "cve_id",
+ "in": "body",
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "vulnerabilities",
+ "in": "body",
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "package",
+ "description": "The name of the package affected by the vulnerability.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "ecosystem",
+ "description": "The package's language or package management ecosystem.
",
+ "isRequired": true,
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "name",
+ "description": "The unique package name within its ecosystem.
"
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "vulnerable_version_range",
+ "description": "The range of the package versions affected by the vulnerability.
"
+ },
+ {
+ "type": "string or null",
+ "name": "patched_versions",
+ "description": "The package version(s) that resolve the vulnerability.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "vulnerable_functions",
+ "description": "The functions in the package that are affected.
"
+ }
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "cwe_ids",
+ "in": "body",
+ "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ },
+ {
+ "type": "array of objects or null",
+ "name": "credits",
+ "in": "body",
+ "description": "A list of users receiving credit for their participation in the security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "login",
+ "description": "The username of the user credited.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of credit the user is receiving.
",
+ "isRequired": true,
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "severity",
+ "in": "body",
+ "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "cvss_vector_string",
+ "in": "body",
+ "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ },
+ {
+ "type": "boolean",
+ "name": "start_private_fork",
+ "in": "body",
+ "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
+ "default": false
+ }
+ ],
+ "descriptionHTML": "Creates a new repository security advisory.
\nIn order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "summary": "A new important advisory",
+ "description": "A more in-depth description of what the problem is.",
+ "severity": "high",
+ "cve_id": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "name": "a-package",
+ "ecosystem": "npm"
+ },
+ "vulnerable_version_range": "< 1.0.0",
+ "patched_versions": "1.0.0",
+ "vulnerable_functions": [
+ "important_function"
+ ]
+ }
+ ],
+ "cwe_ids": [
+ "CWE-1101",
+ "CWE-20"
+ ],
+ "credits": [
+ {
+ "login": "monalisa",
+ "type": "reporter"
+ },
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ]
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "201",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
+ }
+ },
+ "schema": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
]
},
- "deployments_url": {
+ "login": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
+ "octocat"
]
},
- "downloads_url": {
- "type": "string",
- "format": "uri",
+ "id": {
+ "type": "integer",
+ "format": "int64",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
+ 1
]
},
- "events_url": {
+ "node_id": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
+ "MDQ6VXNlcjE="
]
},
- "forks_url": {
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "labels_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "languages_url": {
+ "url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
+ "https://api.github.com/users/octocat"
]
},
- "merges_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
+ "https://github.com/octocat"
]
},
- "stargazers_url": {
+ "followers_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ "https://api.github.com/users/octocat/followers"
]
},
- "statuses_url": {
+ "following_url": {
"type": "string",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "subscribers_url": {
+ "gists_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "subscription_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "tags_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "teams_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "clone_url": {
+ "repos_url": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
"format": "uri",
"examples": [
- "git:git.example.com/octocat/Hello-World"
+ "https://api.github.com/users/octocat/repos"
]
},
- "hooks_url": {
+ "events_url": {
"type": "string",
- "format": "uri",
"examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "svn_url": {
+ "received_events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
+ "https://api.github.com/users/octocat/received_events"
]
},
- "default_branch": {
- "description": "The default branch of the repository.",
+ "type": {
"type": "string",
"examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ "User"
]
},
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
+ "site_admin": {
"type": "boolean"
},
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
+ "starred_at": {
"type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
"examples": [
- true
+ "\"2020-07-09T00:17:55Z\""
]
},
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
+ "user_view_type": {
"type": "string",
"examples": [
- "\"2020-07-09T00:17:42Z\""
+ "public"
]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
+ "avatar_url",
"events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
"html_url",
"id",
"node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
- ]
- },
- "temp_clone_token": {
+ ],
"type": [
- "string",
"null"
]
},
- "allow_squash_merge": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_update_branch": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
- "examples": [
- "PR_TITLE"
- ]
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
- "examples": [
- "PR_BODY"
- ]
- },
- "allow_forking": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "subscribers_count": {
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "network_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "organization": {
- "anyOf": [
- {
- "type": "null"
- },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -769988,2167 +818931,1600 @@
"url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "parent": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
},
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
]
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
},
- "license": {
- "anyOf": [
- {
- "type": "null"
+ "required": [
+ "cwe_id",
+ "name"
+ ]
+ },
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
},
- {
- "title": "License Simple",
- "description": "License Simple",
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "key": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "mit"
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "MIT License"
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "avatar_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "spdx_id": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "MIT"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat"
]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
},
- "avatar_url": {
+ "html_url": {
"type": "string",
"format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "https://github.com/images/error/octocat_happy.gif"
+ "https://github.com/octocat/Hello-World"
]
},
- "gravatar_id": {
+ "description": {
"type": [
"string",
"null"
],
+ "description": "The repository description.",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "This your first repo!"
]
},
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
"url": {
"type": "string",
"format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "html_url": {
+ "archive_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "followers_url": {
+ "assignees_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "following_url": {
+ "blobs_url": {
"type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "gists_url": {
+ "branches_url": {
"type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "starred_url": {
+ "collaborators_url": {
"type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "subscriptions_url": {
+ "comments_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about comments on the repository.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
]
},
- "organizations_url": {
+ "commits_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about commits on the repository.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
]
},
- "repos_url": {
+ "compare_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to compare two commits or refs.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "events_url": {
+ "contents_url": {
"type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
},
- "received_events_url": {
+ "contributors_url": {
"type": "string",
"format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "type": {
+ "deployments_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "downloads_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "user_view_type": {
+ "events_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
- },
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "source": {
- "title": "Repository",
- "description": "A repository on GitHub.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "format": "int64",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
- },
- "name": {
- "description": "The name of the repository.",
- "type": "string",
- "examples": [
- "Team Environment"
- ]
- },
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
- },
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "License Simple",
- "description": "License Simple",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "mit"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "MIT License"
- ]
- },
- "url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://api.github.com/licenses/mit"
- ]
- },
- "spdx_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "MIT"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDc6TGljZW5zZW1pdA=="
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
- ]
- }
- ]
- },
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "owner": {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "login": {
+ "forks_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
"examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "node_id": {
+ "git_commits_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "MDQ6VXNlcjE="
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "avatar_url": {
+ "git_refs_url": {
"type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "url": {
+ "git_tags_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "html_url": {
+ "issue_comment_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "followers_url": {
+ "issue_events_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "following_url": {
+ "issues_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "gists_url": {
+ "keys_url": {
"type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
]
},
- "starred_url": {
+ "labels_url": {
"type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
]
},
- "subscriptions_url": {
+ "languages_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "https://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "organizations_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "repos_url": {
+ "milestones_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "events_url": {
+ "notifications_url": {
"type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "received_events_url": {
+ "pulls_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "type": {
+ "releases_url": {
"type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- "User"
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
+ "stargazers_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
]
},
- "user_view_type": {
+ "statuses_url": {
"type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
"examples": [
- "public"
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "deprecated": true,
- "examples": [
- true
- ]
- },
- "has_discussions": {
- "description": "Whether discussions are enabled.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_update_branch": {
- "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "use_squash_pr_title_as_default": {
- "type": "boolean",
- "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
- "default": false,
- "deprecated": true
- },
- "squash_merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "COMMIT_OR_PR_TITLE"
- ],
- "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
- },
- "squash_merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "COMMIT_MESSAGES",
- "BLANK"
- ],
- "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
- },
- "merge_commit_title": {
- "type": "string",
- "enum": [
- "PR_TITLE",
- "MERGE_MESSAGE"
- ],
- "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
- },
- "merge_commit_message": {
- "type": "string",
- "enum": [
- "PR_BODY",
- "PR_TITLE",
- "BLANK"
- ],
- "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:42Z\""
- ]
- },
- "anonymous_access_enabled": {
- "type": "boolean",
- "description": "Whether anonymous git access is enabled for this repository"
- },
- "code_search_index_status": {
- "type": "object",
- "description": "The status of the code search index for this repository",
- "properties": {
- "lexical_search_ok": {
- "type": "boolean"
},
- "lexical_commit_sha": {
- "type": "string"
- }
- }
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- },
- "forks": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "anonymous_access_enabled": {
- "description": "Whether anonymous git access is allowed.",
- "default": true,
- "type": "boolean"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct Simple",
- "description": "Code of Conduct Simple",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/github/docs/community/code_of_conduct"
- ]
- },
- "key": {
- "type": "string",
- "examples": [
- "citizen_code_of_conduct"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "Citizen Code of Conduct"
- ]
- },
- "html_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
- ]
- }
- },
- "required": [
- "url",
- "key",
- "name",
- "html_url"
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
- },
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
+ "subscribers_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
]
- }
- }
- },
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "subscription_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
]
- }
- }
- },
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "tags_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
]
- }
- }
- },
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "teams_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
]
- }
- }
- },
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
+ },
+ "trees_url": {
"type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
]
}
- }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ ],
+ "type": [
+ "null"
+ ]
}
},
"required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
+ "ghsa_id",
+ "cve_id",
"url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "has_discussions",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
"created_at",
"updated_at",
- "network_count",
- "subscribers_count"
- ]
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "202",
- "description": "Accepted
"
- },
- {
- "httpStatusCode": "400",
- "description": "Bad Request
"
+ "httpStatusCode": "201",
+ "description": "Created
"
},
{
"httpStatusCode": "403",
@@ -772170,27 +820546,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Repository security advisories\" repository permissions": "read",
- "\"Administration\" repository permissions": "write"
+ "\"Repository security advisories\" repository permissions": "write"
}
]
}
- }
- ]
- },
- "teams": {
- "teams": [
+ },
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams",
- "title": "List teams",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/reports",
+ "title": "Privately report a security vulnerability",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -772198,171 +820569,1091 @@
}
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "default": 30
+ "type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "summary",
+ "in": "body",
+ "description": "A short summary of the advisory.
",
+ "isRequired": true
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A detailed description of what the advisory impacts.
",
+ "isRequired": true
+ },
+ {
+ "type": "array of objects or null",
+ "name": "vulnerabilities",
+ "in": "body",
+ "description": "An array of products affected by the vulnerability detailed in a repository security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "package",
+ "description": "The name of the package affected by the vulnerability.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "ecosystem",
+ "description": "The package's language or package management ecosystem.
",
+ "isRequired": true,
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "name",
+ "description": "The unique package name within its ecosystem.
"
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "vulnerable_version_range",
+ "description": "The range of the package versions affected by the vulnerability.
"
+ },
+ {
+ "type": "string or null",
+ "name": "patched_versions",
+ "description": "The package version(s) that resolve the vulnerability.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "vulnerable_functions",
+ "description": "The functions in the package that are affected.
"
+ }
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "cwe_ids",
+ "in": "body",
+ "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ },
+ {
+ "type": "string or null",
+ "name": "severity",
+ "in": "body",
+ "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "cvss_vector_string",
+ "in": "body",
+ "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ },
+ {
+ "type": "boolean",
+ "name": "start_private_fork",
+ "in": "body",
+ "description": "Whether to create a temporary private fork of the repository to collaborate on a fix.
",
+ "default": false
}
],
- "bodyParameters": [],
- "descriptionHTML": "Lists all teams in an organization that are visible to the authenticated user.
",
+ "descriptionHTML": "Report a security vulnerability to the maintainers of the repository.\nSee \"Privately reporting a security vulnerability \" for more information about private vulnerability reporting.
",
"codeExamples": [
{
"key": "default",
"request": {
+ "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "summary": "A newly discovered vulnerability",
+ "description": "A more in-depth description of what the problem is.",
+ "severity": "high",
+ "vulnerabilities": [
+ {
+ "package": {
+ "name": "a-package",
+ "ecosystem": "npm"
+ },
+ "vulnerable_version_range": "< 1.0.0",
+ "patched_versions": "1.0.0",
+ "vulnerable_functions": [
+ "important_function"
+ ]
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ]
+ },
"parameters": {
- "org": "ORG"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
- "example": [
- {
+ "example": {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A newly discovered vulnerability",
+ "description": "A more in-depth description of what the problem is.",
+ "severity": "high",
+ "author": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": null,
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": null
+ }
+ ],
+ "state": "triage",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": null,
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": {
+ "accepted": false
+ },
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "npm",
+ "name": "a-package"
},
- "slug": {
- "type": "string"
+ "vulnerable_version_range": "< 1.0.0",
+ "patched_versions": "1.0.0",
+ "vulnerable_functions": [
+ "important_function"
+ ]
+ }
+ ],
+ "cvss": null,
+ "cvss_severities": {
+ "cvss_v3": null,
+ "cvss_v4": null
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "finder"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
},
- "description": {
- "type": [
- "string",
- "null"
+ "type": "finder",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": null
+ },
+ "schema": {
+ "description": "A repository security advisory.",
+ "type": "object",
+ "properties": {
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
+ },
+ "summary": {
+ "type": "string",
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ },
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
]
},
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- "permissions": {
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
},
- "push": {
- "type": "boolean"
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
},
- "maintain": {
- "type": "boolean"
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
},
- "admin": {
- "type": "boolean"
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "members_url": {
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
"type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -772370,1840 +821661,1224 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
]
}
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/orgs/{org}/teams",
- "title": "Create a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the team.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "The description of the team.
"
- },
- {
- "type": "array of strings",
- "name": "maintainers",
- "in": "body",
- "description": "List GitHub usernames for organization members who will become team maintainers.
"
- },
- {
- "type": "array of strings",
- "name": "repo_names",
- "in": "body",
- "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
"
- },
- {
- "type": "string",
- "name": "privacy",
- "in": "body",
- "description": "The level of privacy this team should have. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nDefault: secret \nFor a parent or child team: \nclosed - visible to all members of this organization. \nDefault for child team: closed \n ",
- "enum": [
- "secret",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "notification_setting",
- "in": "body",
- "description": "The notification setting the team has chosen. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \nDefault: notifications_enabled \n ",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ]
- },
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
- "enum": [
- "pull",
- "push"
- ],
- "default": "pull"
- },
- {
- "type": "integer",
- "name": "parent_team_id",
- "in": "body",
- "description": "The ID of a team to set as the parent team.
"
- }
- ],
- "descriptionHTML": "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 .\"
\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of maintainers. For more information, see \"About teams \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "Justice League",
- "description": "A great team",
- "permission": "push",
- "notification_setting": "notifications_enabled",
- "privacy": "closed"
- },
- "parameters": {
- "org": "ORG"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
},
- "description": {
+ "collaborating_users": {
"type": [
- "string",
+ "array",
"null"
],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
},
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
"examples": [
- 1
+ 1296269
]
},
"node_id": {
"type": "string",
+ "description": "The GraphQL identifier of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "url": {
- "description": "URL for the team",
+ "name": {
"type": "string",
- "format": "uri",
+ "description": "The name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "Hello-World"
]
},
- "members_url": {
+ "full_name": {
"type": "string",
+ "description": "The full, globally unique, name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "octocat/Hello-World"
]
},
- "name": {
- "description": "Name of the team",
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "Justice League"
+ "https://github.com/octocat/Hello-World"
]
},
"description": {
- "description": "Description of the team",
"type": [
"string",
"null"
],
+ "description": "The repository description.",
"examples": [
- "A great team."
+ "This your first repo!"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "archive_url": {
"type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "assignees_url": {
"type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "html_url": {
+ "blobs_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
]
},
- "repositories_url": {
+ "branches_url": {
"type": "string",
- "format": "uri",
+ "description": "A template for the API URL to get information about branches in the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
]
},
- "slug": {
+ "collaborators_url": {
"type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "comments_url": {
"type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "commits_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
},
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}",
- "title": "Get a team by name",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Gets a team using the team's slug. To create the slug, GitHub Enterprise Cloud replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator. For example, \"My TEam Näme\" would become my-team-name.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- 1
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "node_id": {
+ "events_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "url": {
- "description": "URL for the team",
+ "forks_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the forks of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "members_url": {
+ "git_commits_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "name": {
- "description": "Name of the team",
+ "git_refs_url": {
"type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- "Justice League"
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
"examples": [
- "A great team."
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "issue_comment_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "issue_events_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "issues_url": {
"type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
]
},
- "html_url": {
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "repositories_url": {
+ "merges_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to merge branches in the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/merges"
]
},
- "slug": {
+ "milestones_url": {
"type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "notifications_url": {
"type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "pulls_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
},
- "space": {
- "type": "integer"
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
},
- "seats": {
- "type": "integer"
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
}
},
"required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
}
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ ],
+ "type": [
+ "null"
]
}
},
"required": [
- "id",
- "node_id",
+ "ghsa_id",
+ "cve_id",
"url",
- "members_url",
- "name",
- "description",
- "permission",
"html_url",
- "repositories_url",
- "slug",
- "type",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
"created_at",
"updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -774213,22 +822888,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Repository security advisories\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/teams/{team_slug}",
- "title": "Update a team",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
+ "title": "Get a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -774236,249 +822911,378 @@
}
},
{
- "name": "team_slug",
- "description": "The slug of the team name.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the team.
"
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "The description of the team.
"
- },
- {
- "type": "string",
- "name": "privacy",
- "in": "body",
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. When a team is nested, the privacy for parent teams cannot be secret. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
- "enum": [
- "secret",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "notification_setting",
- "in": "body",
- "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ]
- },
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
},
{
- "type": "integer or null",
- "name": "parent_team_id",
- "in": "body",
- "description": "The ID of a team to set as the parent team.
"
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
- "descriptionHTML": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}.
\n
",
+ "bodyParameters": [],
+ "descriptionHTML": "Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nAnyone can access any published security advisory on a public repository.
\nThe authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a\ncollaborator on the security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
",
"codeExamples": [
{
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 1: Status Code 200",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
- },
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response when the updated information already exists
",
+ "description": "Response
",
"example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
}
},
"schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "description": "A repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
+ "ghsa_id": {
"type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
+ "description": "The API URL for the advisory.",
+ "readOnly": true
},
"html_url": {
"type": "string",
"format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
+ "description": "The URL for the advisory.",
+ "readOnly": true
},
- "slug": {
+ "summary": {
"type": "string",
- "examples": [
- "justice-league"
- ]
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
},
"description": {
"type": [
"string",
"null"
],
- "examples": [
- "A great team."
- ]
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
},
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
+ "severity": {
+ "type": [
+ "string",
+ "null"
],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
+ "description": "The severity of the advisory.",
"enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -774486,763 +823290,176 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
"name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
+ "type": [
+ "string",
+ "null"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -775250,897 +823467,706 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "description": "URL for the team",
+ "avatar_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "members_url": {
- "type": "string",
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "name": {
- "description": "Name of the team",
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "html_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- "A great team."
+ "https://github.com/octocat"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/followers"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "following_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "gists_url": {
"type": "string",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "html_url": {
+ "starred_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "repositories_url": {
+ "subscriptions_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "slug": {
+ "organizations_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "repos_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/repos"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "events_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
"examples": [
- 37
+ "https://api.github.com/users/octocat/received_events"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "type": {
+ "type": "string",
"examples": [
- 42
+ "User"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
},
- "private_repos": {
- "type": "integer"
+ "site_admin": {
+ "type": "boolean"
},
- "filled_seats": {
- "type": "integer"
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response when the updated information already exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}",
- "title": "Delete a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "To delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos",
- "title": "List team repositories",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists a team's repositories visible to the authenticated user.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
},
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
},
- "secret_scanning_push_protection": {
- "status": "disabled"
+ "readOnly": true
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- "secret_scanning_validity_checks": {
- "status": "disabled"
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
}
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
},
- "owner": {
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -776307,675 +824333,861 @@
"type",
"url"
]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "id": {
+ "type": "integer"
},
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
+ "node_id": {
+ "type": "string"
},
"name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
+ "type": "string"
},
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
+ "slug": {
+ "type": "string"
},
- "html_url": {
+ "description": {
"type": [
"string",
"null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
+ ]
},
- "name": {
+ "privacy": {
"type": "string"
},
- "spdx_id": {
+ "notification_setting": {
"type": "string"
},
- "url": {
+ "permission": {
"type": "string"
},
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "permissions": {
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
}
- }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
},
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
},
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "members_url": {
+ "type": "string"
},
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
},
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
},
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
},
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
- }
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
}
@@ -776984,6 +825196,14 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -776993,22 +825213,22 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Repository security advisories\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "title": "Check team permissions for a repository",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "patch",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}",
+ "title": "Update a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -777016,8 +825236,8 @@
}
},
{
- "name": "team_slug",
- "description": "The slug of the team name.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -777025,49 +825245,203 @@
}
},
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "summary",
+ "in": "body",
+ "description": "A short summary of the advisory.
"
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "A detailed description of what the advisory impacts.
"
+ },
+ {
+ "type": "string or null",
+ "name": "cve_id",
+ "in": "body",
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID.
"
+ },
+ {
+ "type": "array of objects",
+ "name": "vulnerabilities",
+ "in": "body",
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "package",
+ "description": "The name of the package affected by the vulnerability.
",
+ "isRequired": true,
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "ecosystem",
+ "description": "The package's language or package management ecosystem.
",
+ "isRequired": true,
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "name",
+ "description": "The unique package name within its ecosystem.
"
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "vulnerable_version_range",
+ "description": "The range of the package versions affected by the vulnerability.
"
+ },
+ {
+ "type": "string or null",
+ "name": "patched_versions",
+ "description": "The package version(s) that resolve the vulnerability.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "vulnerable_functions",
+ "description": "The functions in the package that are affected.
"
+ }
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "cwe_ids",
+ "in": "body",
+ "description": "A list of Common Weakness Enumeration (CWE) IDs.
"
+ },
+ {
+ "type": "array of objects or null",
+ "name": "credits",
+ "in": "body",
+ "description": "A list of users receiving credit for their participation in the security advisory.
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "login",
+ "description": "The username of the user credited.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "type",
+ "description": "The type of credit the user is receiving.
",
+ "isRequired": true,
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "severity",
+ "in": "body",
+ "description": "The severity of the advisory. You must choose between setting this field or cvss_vector_string.
",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
+ ]
+ },
+ {
+ "type": "string or null",
+ "name": "cvss_vector_string",
+ "in": "body",
+ "description": "The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
"
+ },
+ {
+ "type": "string",
+ "name": "state",
+ "in": "body",
+ "description": "The state of the advisory.
",
+ "enum": [
+ "published",
+ "closed",
+ "draft"
+ ]
+ },
+ {
+ "type": "array of strings or null",
+ "name": "collaborating_users",
+ "in": "body",
+ "description": "A list of usernames who have been granted write access to the advisory.
"
+ },
+ {
+ "type": "array of strings or null",
+ "name": "collaborating_teams",
+ "in": "body",
+ "description": "A list of team slugs which have been granted write access to the advisory.
"
}
],
- "bodyParameters": [],
- "descriptionHTML": "Checks whether a team has admin, push, maintain, triage, or pull permission for a repository. Repositories inherited through a parent team will also be checked.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the application/vnd.github.v3.repository+json accept header.
\nIf a team doesn't have permission for the repository, you will receive a 404 Not Found response status.
\nIf the repository is private, you must have at least read permission for that repository, and your token must have the repo or admin:org scope. Otherwise, you will receive a 404 Not Found response status.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
+ "descriptionHTML": "Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
\nIn order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,\nor a collaborator on the repository security advisory.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
"codeExamples": [
{
- "key": "alternative-response-with-repository-permissions",
+ "key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Updating the severity and state.",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "severity": "critical",
+ "state": "published"
+ },
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Alternative response with repository permissions
",
+ "description": "Response
",
"example": {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -777087,238 +825461,465 @@
"type": "User",
"site_admin": false
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
+ "publisher": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "maintain": false,
- "push": false,
- "triage": false,
- "pull": true
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
},
- "role_name": "read",
- "allow_rebase_merge": true,
- "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
- "allow_squash_merge": true,
- "allow_auto_merge": false,
- "delete_branch_on_merge": true,
- "allow_merge_commit": true,
- "subscribers_count": 42,
- "network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
+ }
},
"schema": {
- "title": "Team Repository",
- "description": "A team's access to a repository.",
+ "description": "A repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the repository",
- "type": "integer",
- "examples": [
- 42
- ]
+ "ghsa_id": {
+ "type": "string",
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
},
- "node_id": {
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
+ },
+ "url": {
"type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ "format": "uri",
+ "description": "The API URL for the advisory.",
+ "readOnly": true
},
- "name": {
- "description": "The name of the repository.",
+ "html_url": {
"type": "string",
- "examples": [
- "Team Environment"
- ]
+ "format": "uri",
+ "description": "The URL for the advisory.",
+ "readOnly": true
},
- "full_name": {
+ "summary": {
"type": "string",
- "examples": [
- "octocat/Hello-World"
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
+ },
+ "severity": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The severity of the advisory.",
+ "enum": [
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
]
},
- "license": {
- "anyOf": [
- {
- "type": "null"
- },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
{
- "title": "License Simple",
- "description": "License Simple",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
- "key": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
"type": "string",
"examples": [
- "mit"
+ "octocat"
]
},
- "name": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
"type": "string",
"examples": [
- "MIT License"
+ "MDQ6VXNlcjE="
]
},
- "url": {
- "type": [
- "string",
- "null"
- ],
+ "avatar_url": {
+ "type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/licenses/mit"
+ "https://github.com/images/error/octocat_happy.gif"
]
},
- "spdx_id": {
+ "gravatar_id": {
"type": [
"string",
"null"
],
"examples": [
- "MIT"
+ "41d064eb2195891e12d0413f63227ea7"
]
},
- "node_id": {
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDc6TGljZW5zZW1pdA=="
+ "https://api.github.com/users/octocat"
]
},
"html_url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
}
},
"required": [
- "key",
- "name",
- "url",
- "spdx_id",
- "node_id"
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "forks": {
- "type": "integer"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- }
- },
- "required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "owner": {
- "anyOf": [
- {
- "type": "null"
- },
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
{
"title": "Simple User",
"description": "A GitHub user.",
@@ -777487,1019 +826088,387 @@
"url"
]
}
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
+ ],
"type": [
- "string",
"null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
]
},
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
+ },
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "readOnly": true
},
- "clone_url": {
+ "state": {
"type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
+ "description": "The state of the advisory.",
+ "enum": [
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
]
},
- "mirror_url": {
+ "created_at": {
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
},
- "homepage": {
+ "updated_at": {
"type": [
"string",
"null"
],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
},
- "language": {
+ "published_at": {
"type": [
"string",
"null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "description": "Whether downloads are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
},
- "pushed_at": {
+ "closed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
},
- "created_at": {
+ "withdrawn_at": {
"type": [
"string",
"null"
],
"format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
},
- "updated_at": {
+ "submission": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean",
- "examples": [
- false
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "accepted"
]
},
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Alternative response with repository permissions
"
- },
- {
- "httpStatusCode": "204",
- "description": "Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header.
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if team does not have permission for the repository
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "title": "Add or update team repository permissions",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "The permission to grant the team on this repository. We accept the following permissions to be set: pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
"
- }
- ],
- "descriptionHTML": "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. 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 method .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
\nFor more information about the permission levels, see \"Repository permission levels for an organization \".
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Adding a team to an organization repository with the write role",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "permission": "push"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "title": "Remove a repository from a team",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "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. This does not delete the repository, it just removes it from the team.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/teams",
- "title": "List child teams",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Lists the child teams of the team specified by {team_slug}.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/teams.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "if child teams exist
",
- "example": [
- {
- "id": 2,
- "node_id": "MDQ6VGVhbTI=",
- "url": "https://api.github.com/teams/2",
- "name": "Original Roster",
- "slug": "original-roster",
- "description": "Started it all.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/2/members{/member}",
- "repositories_url": "https://api.github.com/teams/2/repos",
- "parent": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- },
- "html_url": "https://github.com/orgs/rails/teams/core"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
"properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
},
- "push": {
- "type": "boolean"
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
},
- "maintain": {
- "type": "boolean"
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
},
- "admin": {
- "type": "boolean"
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
},
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -778507,1217 +826476,1567 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
]
}
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "if child teams exist
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}",
- "title": "Get a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the Get a team by name endpoint.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
+ },
+ "readOnly": true
},
- "description": {
+ "collaborating_users": {
"type": [
- "string",
+ "array",
"null"
],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
},
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
},
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ },
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
"examples": [
- 1
+ 1296269
]
},
"node_id": {
"type": "string",
+ "description": "The GraphQL identifier of the repository.",
"examples": [
- "MDQ6VGVhbTE="
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
]
},
- "url": {
- "description": "URL for the team",
+ "name": {
"type": "string",
- "format": "uri",
+ "description": "The name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "Hello-World"
]
},
- "members_url": {
+ "full_name": {
"type": "string",
+ "description": "The full, globally unique, name of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "octocat/Hello-World"
]
},
- "name": {
- "description": "Name of the team",
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
"examples": [
- "Justice League"
+ "https://github.com/octocat/Hello-World"
]
},
"description": {
- "description": "Description of the team",
"type": [
"string",
"null"
],
+ "description": "The repository description.",
"examples": [
- "A great team."
+ "This your first repo!"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
"type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
"examples": [
- "admin"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "archive_url": {
"type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
"examples": [
- "closed"
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "assignees_url": {
"type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "html_url": {
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "repositories_url": {
+ "deployments_url": {
"type": "string",
"format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "slug": {
+ "downloads_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
"examples": [
- "justice-league"
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "events_url": {
"type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/repos/octocat/Hello-World/events"
]
},
- "type": {
- "description": "The ownership type of the team",
+ "forks_url": {
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
"examples": [
- 37
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
"examples": [
- 42
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
},
- "space": {
- "type": "integer"
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
},
- "seats": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
}
},
"required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
"name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
}
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
+ ],
+ "type": [
+ "null"
]
}
},
"required": [
- "id",
- "node_id",
+ "ghsa_id",
+ "cve_id",
"url",
- "members_url",
- "name",
- "description",
- "permission",
"html_url",
- "repositories_url",
- "slug",
- "type",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
"created_at",
"updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/teams/{team_id}",
- "title": "Update a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "name",
- "in": "body",
- "description": "The name of the team.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "description",
- "in": "body",
- "description": "The description of the team.
"
- },
- {
- "type": "string",
- "name": "privacy",
- "in": "body",
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
- "enum": [
- "secret",
- "closed"
- ]
- },
- {
- "type": "string",
- "name": "notification_setting",
- "in": "body",
- "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ]
- },
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
},
{
- "type": "integer or null",
- "name": "parent_team_id",
- "in": "body",
- "description": "The ID of a team to set as the parent team.
"
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a team endpoint.
\n
\nTo edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nWith nested teams, the privacy for parent teams cannot be secret.
\n
",
- "codeExamples": [
- {
- "key": "default",
+ "key": "add_credit",
"request": {
"contentType": "application/json",
- "description": "Example 1: Status Code 200",
+ "description": "To add a credit to an advisory, send the whole array of values.",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
+ "credits": [
+ {
+ "login": "monauser",
+ "type": "remediation_developer"
+ }
+ ]
},
"parameters": {
- "team_id": "TEAM_ID"
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response when the updated information already exists
",
+ "description": "Response
",
"example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
+ "ghsa_id": "GHSA-abcd-1234-efgh",
+ "cve_id": "CVE-2050-00000",
+ "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh",
+ "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh",
+ "summary": "A short summary of the advisory.",
+ "description": "A detailed description of what the advisory entails.",
+ "severity": "critical",
+ "author": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "publisher": {
+ "login": "octocat",
"id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "identifiers": [
+ {
+ "type": "GHSA",
+ "value": "GHSA-abcd-1234-efgh"
+ },
+ {
+ "type": "CVE",
+ "value": "CVE-2050-00000"
+ }
+ ],
+ "state": "published",
+ "created_at": "2020-01-01T00:00:00Z",
+ "updated_at": "2020-01-02T00:00:00Z",
+ "published_at": "2020-01-03T00:00:00Z",
+ "closed_at": null,
+ "withdrawn_at": null,
+ "submission": null,
+ "vulnerabilities": [
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "a-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.1",
+ "patched_versions": "1.0.1",
+ "vulnerable_functions": [
+ "function1"
+ ]
+ },
+ {
+ "package": {
+ "ecosystem": "pip",
+ "name": "another-package"
+ },
+ "vulnerable_version_range": ">= 1.0.0, < 1.0.2",
+ "patched_versions": "1.0.2",
+ "vulnerable_functions": [
+ "function2"
+ ]
+ }
+ ],
+ "cvss": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_severities": {
+ "cvss_v3": {
+ "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
+ "score": 9.8
+ },
+ "cvss_v4": {
+ "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
+ "score": 9.3
+ }
+ },
+ "cwes": [
+ {
+ "cwe_id": "CWE-123",
+ "name": "A CWE"
+ }
+ ],
+ "cwe_ids": [
+ "CWE-123"
+ ],
+ "credits": [
+ {
+ "login": "octocat",
+ "type": "analyst"
+ }
+ ],
+ "credits_detailed": [
+ {
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "type": "analyst",
+ "state": "accepted"
+ }
+ ],
+ "collaborating_users": [
+ {
+ "login": "octokitten",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octokitten_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octokitten",
+ "html_url": "https://github.com/octokitten",
+ "followers_url": "https://api.github.com/users/octokitten/followers",
+ "following_url": "https://api.github.com/users/octokitten/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions",
+ "organizations_url": "https://api.github.com/users/octokitten/orgs",
+ "repos_url": "https://api.github.com/users/octokitten/repos",
+ "events_url": "https://api.github.com/users/octokitten/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octokitten/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "collaborating_teams": [
+ {
+ "name": "Justice League",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "permission": "admin",
+ "parent": null
+ }
+ ],
+ "private_fork": {
+ "id": 217723378,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
+ "name": "octo-repo-ghsa-abcd-1234-efgh",
+ "full_name": "octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "owner": {
+ "login": "octo-org",
+ "id": 6811672,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octo-org",
+ "html_url": "https://github.com/octo-org",
+ "followers_url": "https://api.github.com/users/octo-org/followers",
+ "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
+ "organizations_url": "https://api.github.com/users/octo-org/orgs",
+ "repos_url": "https://api.github.com/users/octo-org/repos",
+ "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octo-org/received_events",
+ "type": "Organization",
+ "site_admin": false
+ },
+ "private": true,
+ "html_url": "https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh",
+ "archive_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors",
+ "deployments_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments",
+ "downloads_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads",
+ "events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events",
+ "forks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks",
+ "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}",
+ "hooks_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks",
+ "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages",
+ "merges_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges",
+ "milestones_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}",
+ "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers",
+ "statuses_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers",
+ "subscription_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription",
+ "tags_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags",
+ "teams_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams",
+ "trees_url": "https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}"
}
},
"schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "description": "A repository security advisory.",
"type": "object",
"properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
+ "ghsa_id": {
"type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
+ "description": "The GitHub Security Advisory ID.",
+ "readOnly": true
+ },
+ "cve_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The Common Vulnerabilities and Exposures (CVE) ID."
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
+ "description": "The API URL for the advisory.",
+ "readOnly": true
},
"html_url": {
"type": "string",
"format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
+ "description": "The URL for the advisory.",
+ "readOnly": true
},
- "slug": {
+ "summary": {
"type": "string",
- "examples": [
- "justice-league"
- ]
+ "description": "A short summary of the advisory.",
+ "maxLength": 1024
},
"description": {
"type": [
"string",
"null"
],
- "examples": [
- "A great team."
- ]
+ "description": "A detailed description of what the advisory entails.",
+ "maxLength": 65535
},
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
+ "severity": {
+ "type": [
+ "string",
+ "null"
],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
+ "description": "The severity of the advisory.",
"enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "critical",
+ "high",
+ "medium",
+ "low",
+ null
]
},
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
+ "author": {
+ "readOnly": true,
+ "description": "The author of the advisory.",
+ "allOf": [
{
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -779725,762 +828044,176 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
+ "publisher": {
+ "readOnly": true,
+ "description": "The publisher of the advisory.",
+ "allOf": [
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
"type": "object",
"properties": {
"name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
+ "type": [
+ "string",
+ "null"
+ ]
},
- "private_repos": {
- "type": "integer"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "filled_seats": {
- "type": "integer"
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
},
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
- },
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- },
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example 2: Status Code 201",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "name": "new team name",
- "description": "new team description",
- "privacy": "closed",
- "notification_setting": "notifications_enabled"
- },
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "201",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- },
- "schema": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
"id": {
- "description": "Unique identifier of the team",
"type": "integer",
+ "format": "int64",
"examples": [
1
]
@@ -780488,885 +828221,706 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VGVhbTE="
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
]
},
"url": {
- "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1"
+ "https://api.github.com/users/octocat"
]
},
- "members_url": {
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
+ "https://github.com/octocat"
]
},
- "name": {
- "description": "Name of the team",
+ "followers_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Justice League"
+ "https://api.github.com/users/octocat/followers"
]
},
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
+ "following_url": {
+ "type": "string",
"examples": [
- "A great team."
+ "https://api.github.com/users/octocat/following{/other_user}"
]
},
- "permission": {
- "description": "Permission that the team will have for its repositories",
+ "gists_url": {
"type": "string",
"examples": [
- "admin"
+ "https://api.github.com/users/octocat/gists{/gist_id}"
]
},
- "privacy": {
- "description": "The level of privacy this team should have",
+ "starred_url": {
"type": "string",
"examples": [
- "closed"
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
]
},
- "notification_setting": {
- "description": "The notification setting the team has set",
+ "subscriptions_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "notifications_enabled"
+ "https://api.github.com/users/octocat/subscriptions"
]
},
- "html_url": {
+ "organizations_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/rails/teams/core"
+ "https://api.github.com/users/octocat/orgs"
]
},
- "repositories_url": {
+ "repos_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/1/repos"
+ "https://api.github.com/users/octocat/repos"
]
},
- "slug": {
+ "events_url": {
"type": "string",
"examples": [
- "justice-league"
+ "https://api.github.com/users/octocat/events{/privacy}"
]
},
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "received_events_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "uid=example,ou=users,dc=github,dc=com"
+ "https://api.github.com/users/octocat/received_events"
]
},
"type": {
- "description": "The ownership type of the team",
"type": "string",
- "enum": [
- "enterprise",
- "organization"
+ "examples": [
+ "User"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
"examples": [
- 37
+ "\"2020-07-09T00:17:55Z\""
]
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
+ "user_view_type": {
+ "type": "string",
"examples": [
- 42
+ "public"
]
}
},
"required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
"id",
"node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
}
+ ],
+ "type": [
+ "null"
]
},
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
- },
- "seats": {
- "type": "integer"
- }
+ "identifiers": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of identifier.",
+ "enum": [
+ "CVE",
+ "GHSA"
+ ]
},
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
+ "value": {
+ "type": "string",
+ "description": "The identifier value."
+ }
},
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- }
+ "required": [
+ "type",
+ "value"
+ ]
},
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
+ "readOnly": true
},
- "type": {
- "description": "The ownership type of the team",
+ "state": {
"type": "string",
+ "description": "The state of the advisory.",
"enum": [
- "enterprise",
- "organization"
+ "published",
+ "closed",
+ "withdrawn",
+ "draft",
+ "triage"
]
},
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was created, in ISO 8601 format.",
+ "readOnly": true
},
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Response when the updated information already exists
"
- },
- {
- "httpStatusCode": "201",
- "description": "Created
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/teams/{team_id}",
- "title": "Delete a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a team endpoint.
\n
\nTo delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/repos",
- "title": "List team repositories (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List team repositories endpoint.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1296269,
- "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
- "name": "Hello-World",
- "full_name": "octocat/Hello-World",
- "owner": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was last updated, in ISO 8601 format.",
+ "readOnly": true
},
- "private": false,
- "html_url": "https://github.com/octocat/Hello-World",
- "description": "This your first repo!",
- "fork": false,
- "url": "https://api.github.com/repos/octocat/Hello-World",
- "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
- "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
- "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
- "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
- "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
- "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
- "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
- "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
- "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
- "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
- "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
- "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
- "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
- "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
- "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
- "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
- "git_url": "git:github.com/octocat/Hello-World.git",
- "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
- "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
- "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
- "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
- "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
- "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
- "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
- "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
- "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
- "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
- "ssh_url": "git@github.com:octocat/Hello-World.git",
- "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
- "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
- "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
- "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
- "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
- "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
- "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
- "clone_url": "https://github.com/octocat/Hello-World.git",
- "mirror_url": "git:git.example.com/octocat/Hello-World",
- "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
- "svn_url": "https://svn.github.com/octocat/Hello-World",
- "homepage": "https://github.com",
- "language": null,
- "forks_count": 9,
- "stargazers_count": 80,
- "watchers_count": 80,
- "size": 108,
- "default_branch": "master",
- "open_issues_count": 0,
- "is_template": false,
- "topics": [
- "octocat",
- "atom",
- "electron",
- "api"
- ],
- "has_issues": true,
- "has_projects": true,
- "has_wiki": true,
- "has_pages": false,
- "has_downloads": true,
- "has_discussions": false,
- "archived": false,
- "disabled": false,
- "visibility": "public",
- "pushed_at": "2011-01-26T19:06:43Z",
- "created_at": "2011-01-26T19:01:12Z",
- "updated_at": "2011-01-26T19:14:43Z",
- "permissions": {
- "admin": false,
- "push": false,
- "pull": true
+ "published_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was published, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "closed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was closed, in ISO 8601 format.",
+ "readOnly": true
},
- "security_and_analysis": {
- "advanced_security": {
- "status": "enabled"
- },
- "secret_scanning": {
- "status": "enabled"
- },
- "secret_scanning_push_protection": {
- "status": "disabled"
+ "withdrawn_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.",
+ "readOnly": true
+ },
+ "submission": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "readOnly": true,
+ "properties": {
+ "accepted": {
+ "type": "boolean",
+ "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
+ "readOnly": true
+ }
},
- "secret_scanning_validity_checks": {
- "status": "disabled"
+ "required": [
+ "accepted"
+ ]
+ },
+ "vulnerabilities": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A product affected by the vulnerability detailed in a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "package": {
+ "description": "The name of the package affected by the vulnerability.",
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "ecosystem": {
+ "type": "string",
+ "description": "The package's language or package management ecosystem.",
+ "enum": [
+ "rubygems",
+ "npm",
+ "pip",
+ "maven",
+ "nuget",
+ "composer",
+ "go",
+ "rust",
+ "erlang",
+ "actions",
+ "pub",
+ "other",
+ "swift"
+ ]
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The unique package name within its ecosystem."
+ }
+ },
+ "required": [
+ "ecosystem",
+ "name"
+ ]
+ },
+ "vulnerable_version_range": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The range of the package versions affected by the vulnerability."
+ },
+ "patched_versions": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The package version(s) that resolve the vulnerability."
+ },
+ "vulnerable_functions": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "The functions in the package that are affected.",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "package",
+ "vulnerable_version_range",
+ "patched_versions",
+ "vulnerable_functions"
+ ],
+ "additionalProperties": false
}
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Minimal Repository",
- "description": "Minimal Repository",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1296269
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
- ]
+ },
+ "cvss": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS vector."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
},
- "name": {
- "type": "string",
- "examples": [
- "Hello-World"
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_severities": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "cvss_v3": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 3 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 3 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ },
+ "cvss_v4": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "vector_string": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The CVSS 4 vector string."
+ },
+ "score": {
+ "type": [
+ "number",
+ "null"
+ ],
+ "description": "The CVSS 4 score.",
+ "minimum": 0,
+ "maximum": 10,
+ "readOnly": true
+ }
+ },
+ "required": [
+ "vector_string",
+ "score"
+ ]
+ }
+ }
+ },
+ "cwes": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "cwe_id": {
+ "type": "string",
+ "description": "The Common Weakness Enumeration (CWE) identifier."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the CWE.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "cwe_id",
+ "name"
]
},
- "full_name": {
- "type": "string",
- "examples": [
- "octocat/Hello-World"
- ]
+ "readOnly": true
+ },
+ "cwe_ids": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of only the CWE IDs.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "credits": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "description": "The username of the user credited."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ }
+ }
+ }
+ },
+ "credits_detailed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "description": "A credit given to a user for a repository security advisory.",
+ "type": "object",
+ "properties": {
+ "user": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of credit the user is receiving.",
+ "enum": [
+ "analyst",
+ "finder",
+ "reporter",
+ "coordinator",
+ "remediation_developer",
+ "remediation_reviewer",
+ "remediation_verifier",
+ "tool",
+ "sponsor",
+ "other"
+ ]
+ },
+ "state": {
+ "type": "string",
+ "description": "The state of the user's acceptance of the credit.",
+ "enum": [
+ "accepted",
+ "declined",
+ "pending"
+ ]
+ }
+ },
+ "required": [
+ "user",
+ "type",
+ "state"
+ ],
+ "additionalProperties": false
},
- "owner": {
+ "readOnly": true
+ },
+ "collaborating_users": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of users that collaborate on the advisory.",
+ "items": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -781533,687 +829087,976 @@
"type",
"url"
]
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer"
- },
- "stargazers_count": {
- "type": "integer"
- },
- "watchers_count": {
- "type": "integer"
- },
- "size": {
- "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
- "type": "integer"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "integer"
- },
- "is_template": {
- "type": "boolean"
- },
- "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"
- },
- "has_discussions": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "visibility": {
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
- ]
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "permissions": {
+ }
+ },
+ "collaborating_teams": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "description": "A list of teams that collaborate on the advisory.",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "admin": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
+ "id": {
+ "type": "integer"
},
- "pull": {
- "type": "boolean"
- }
- }
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "delete_branch_on_merge": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "code_of_conduct": {
- "title": "Code Of Conduct",
- "description": "Code Of Conduct",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "examples": [
- "contributor_covenant"
- ]
+ "node_id": {
+ "type": "string"
},
"name": {
- "type": "string",
- "examples": [
- "Contributor Covenant"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/codes_of_conduct/contributor_covenant"
- ]
+ "type": "string"
},
- "body": {
- "type": "string",
- "examples": [
- "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
- ]
+ "slug": {
+ "type": "string"
},
- "html_url": {
+ "description": {
"type": [
"string",
"null"
- ],
- "format": "uri"
- }
- },
- "required": [
- "url",
- "html_url",
- "key",
- "name"
- ]
- },
- "license": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "key": {
- "type": "string"
+ ]
},
- "name": {
+ "privacy": {
"type": "string"
},
- "spdx_id": {
+ "notification_setting": {
"type": "string"
},
- "url": {
+ "permission": {
"type": "string"
},
- "node_id": {
- "type": "string"
- }
- }
- },
- "forks": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "open_issues": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "watchers": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "allow_forking": {
- "type": "boolean"
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "security_and_analysis": {
- "type": [
- "object",
- "null"
- ],
- "properties": {
- "advanced_security": {
- "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "permissions": {
"type": "object",
"properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
}
- }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
},
- "code_security": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "url": {
+ "type": "string",
+ "format": "uri"
},
- "dependabot_security_updates": {
- "description": "Enable or disable Dependabot security updates for the repository.",
- "type": "object",
- "properties": {
- "status": {
- "description": "The enablement status of Dependabot security updates for the repository.",
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
},
- "secret_scanning": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "members_url": {
+ "type": "string"
},
- "secret_scanning_push_protection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
},
- "secret_scanning_non_provider_patterns": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
},
- "secret_scanning_ai_detection": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
- ]
- }
- }
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
},
- "secret_scanning_validity_checks": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enabled",
- "disabled"
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
- }
+ ]
}
- }
- },
- "custom_properties": {
- "type": "object",
- "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
- "additionalProperties": true
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
}
},
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url"
- ]
- }
+ "private_fork": {
+ "readOnly": true,
+ "description": "A temporary private fork of the advisory's repository for collaborating on a fix.",
+ "allOf": [
+ {
+ "title": "Simple Repository",
+ "description": "A GitHub repository.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "description": "A unique identifier of the repository.",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "description": "The GraphQL identifier of the repository.",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the repository.",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "description": "The full, globally unique, name of the repository.",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean",
+ "description": "Whether the repository is private."
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to view the repository on GitHub.com.",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "The repository description.",
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean",
+ "description": "Whether the repository is a fork."
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to get more information about the repository from the GitHub API.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "description": "A template for the API URL to download the repository as an archive.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "description": "A template for the API URL to list the available assignees for issues in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about collaborators of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about commits on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "description": "A template for the API URL to compare two commits or refs.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "description": "A template for the API URL to get the contents of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "A template for the API URL to list the contributors to the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the deployments of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the downloads on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the events of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the forks of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git commits of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git refs of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about Git tags of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue comments on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issue events on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about issues on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about deploy keys on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about labels of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about the languages of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to merge branches in the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about milestones of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about notifications on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about pull requests on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about releases on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the stargazers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "description": "A template for the API URL to get information about statuses of a commit.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the subscribers on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to subscribe to notifications for this repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to get information about tags on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the teams on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The API URL to list the hooks on the repository.",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ ],
+ "type": [
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ghsa_id",
+ "cve_id",
+ "url",
+ "html_url",
+ "summary",
+ "description",
+ "severity",
+ "author",
+ "publisher",
+ "identifiers",
+ "state",
+ "created_at",
+ "updated_at",
+ "published_at",
+ "closed_at",
+ "withdrawn_at",
+ "submission",
+ "vulnerabilities",
+ "cvss",
+ "cwes",
+ "cwe_ids",
+ "credits",
+ "credits_detailed",
+ "collaborating_users",
+ "collaborating_teams",
+ "private_fork"
+ ],
+ "additionalProperties": false
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve",
+ "title": "Request a CVE for a repository security advisory",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
+ "parameters": [
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see \"Requesting a CVE identification number .\"
\nYou may request a CVE for public repositories, but cannot do so for private repositories.
\nIn order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
\nOAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
+ }
+ },
+ "response": {
+ "statusCode": "202",
+ "contentType": "application/json",
+ "description": "Accepted
",
+ "example": null,
+ "schema": {
+ "type": "object"
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "202",
+ "description": "Accepted
"
+ },
+ {
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
},
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -782223,31 +830066,31 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Members\" organization permissions": "read"
+ "\"Repository security advisories\" repository permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "title": "Check team permissions for a repository (Legacy)",
- "category": "teams",
- "subcategory": "teams",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks",
+ "title": "Create a temporary private fork",
+ "category": "security-advisories",
+ "subcategory": "repository-advisories",
"parameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
@@ -782255,8 +830098,8 @@
}
},
{
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "name": "ghsa_id",
+ "description": "The GHSA (GitHub Security Advisory) identifier of the advisory.
",
"in": "path",
"required": true,
"schema": {
@@ -782265,23 +830108,23 @@
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\n
\n Note
\n
\nRepositories inherited through a parent team will also 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 via the Accept header:
",
+ "descriptionHTML": "Create a temporary private fork to collaborate on fixing a security vulnerability in your repository.
\n Note
\n
\nForking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
\n
",
"codeExamples": [
{
- "key": "alternative-response-with-extra-repository-information",
+ "key": "default",
"request": {
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "team_id": "TEAM_ID",
"owner": "OWNER",
- "repo": "REPO"
+ "repo": "REPO",
+ "ghsa_id": "GHSA_ID"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "202",
"contentType": "application/json",
- "description": "Alternative response with extra repository information
",
+ "description": "Response
",
"example": {
"id": 1296269,
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
@@ -782354,13 +830197,24 @@
"hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
"svn_url": "https://svn.github.com/octocat/Hello-World",
"homepage": "https://github.com",
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://github.com/licenses/mit"
+ },
"language": null,
"forks_count": 9,
+ "forks": 9,
"stargazers_count": 80,
"watchers_count": 80,
+ "watchers": 80,
"size": 108,
"default_branch": "master",
"open_issues_count": 0,
+ "open_issues": 0,
"is_template": false,
"topics": [
"octocat",
@@ -782380,62 +830234,2134 @@
"created_at": "2011-01-26T19:01:12Z",
"updated_at": "2011-01-26T19:14:43Z",
"permissions": {
- "admin": false,
- "maintain": false,
+ "pull": true,
"push": false,
- "triage": false,
- "pull": true
+ "admin": false
},
- "role_name": "read",
"allow_rebase_merge": true,
+ "template_repository": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World-Template",
+ "full_name": "octocat/Hello-World-Template",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World-Template",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World-Template",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World-Template/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World-Template/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World-Template/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World-Template/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World-Template/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World-Template.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World-Template/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World-Template/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World-Template.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World-Template/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World-Template/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World-Template/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World-Template/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World-Template.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World-Template",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World-Template/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World-Template",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks": 9,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "watchers": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues": 0,
+ "open_issues_count": 0,
+ "is_template": true,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0
+ },
"temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
"allow_squash_merge": true,
"allow_auto_merge": false,
"delete_branch_on_merge": true,
"allow_merge_commit": true,
+ "allow_forking": true,
+ "web_commit_signoff_required": false,
"subscribers_count": 42,
"network_count": 0,
- "license": {
- "key": "mit",
- "name": "MIT License",
- "url": "https://api.github.com/licenses/mit",
- "spdx_id": "MIT",
- "node_id": "MDc6TGljZW5zZW1pdA==",
- "html_url": "https://api.github.com/licenses/mit"
+ "organization": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "Organization",
+ "site_admin": false
},
- "forks": 1,
- "open_issues": 1,
- "watchers": 1
+ "parent": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ },
+ "source": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": true,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
+ }
},
"schema": {
- "title": "Team Repository",
- "description": "A team's access to a repository.",
+ "title": "Full Repository",
+ "description": "Full Repository",
"type": "object",
"properties": {
"id": {
- "description": "Unique identifier of the repository",
"type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "examples": [
+ "octocat",
+ "atom",
+ "electron",
+ "API"
+ ]
+ },
+ "has_issues": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ },
+ "pushed_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "allow_rebase_merge": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "template_repository": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ ]
+ },
+ "temp_clone_token": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "allow_squash_merge": {
+ "type": "boolean",
"examples": [
- 42
+ true
]
},
- "node_id": {
+ "allow_auto_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_update_branch": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "squash_merge_commit_title": {
"type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).",
"examples": [
- "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ "PR_TITLE"
]
},
- "name": {
- "description": "The name of the repository.",
+ "squash_merge_commit_message": {
"type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.",
"examples": [
- "Team Environment"
+ "PR_BODY"
]
},
- "full_name": {
+ "merge_commit_title": {
"type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).",
"examples": [
- "octocat/Hello-World"
+ "PR_TITLE"
+ ]
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.",
+ "examples": [
+ "PR_BODY"
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "subscribers_count": {
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "network_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
},
"license": {
@@ -782500,46 +832426,1253 @@
}
]
},
- "forks": {
- "type": "integer"
+ "organization": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ }
+ ]
},
- "permissions": {
+ "parent": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
"type": "object",
"properties": {
- "admin": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
"type": "boolean"
},
- "pull": {
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
"type": "boolean"
},
- "triage": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
"type": "boolean"
},
- "push": {
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
"type": "boolean"
},
- "maintain": {
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
"type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
}
},
"required": [
- "admin",
- "pull",
- "push"
- ]
- },
- "role_name": {
- "type": "string",
- "examples": [
- "admin"
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "owner": {
- "anyOf": [
- {
- "type": "null"
+ "source": {
+ "title": "Repository",
+ "description": "A repository on GitHub.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 42
+ ]
},
- {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "owner": {
"title": "Simple User",
"description": "A GitHub user.",
"type": "object",
@@ -782706,1978 +833839,927 @@
"type",
"url"
]
- }
- ]
- },
- "private": {
- "description": "Whether the repository is private or public.",
- "default": false,
- "type": "boolean"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat/Hello-World"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "This your first repo!"
- ]
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/repos/octocat/Hello-World"
- ]
- },
- "archive_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
- ]
- },
- "assignees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
- ]
- },
- "blobs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
- ]
- },
- "branches_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
- ]
- },
- "collaborators_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
- ]
- },
- "comments_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
- ]
- },
- "commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
- ]
- },
- "compare_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
- ]
- },
- "contents_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
- ]
- },
- "contributors_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/contributors"
- ]
- },
- "deployments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/deployments"
- ]
- },
- "downloads_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/downloads"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/events"
- ]
- },
- "forks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/forks"
- ]
- },
- "git_commits_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
- ]
- },
- "git_refs_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
- ]
- },
- "git_tags_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
- ]
- },
- "git_url": {
- "type": "string",
- "examples": [
- "git:github.com/octocat/Hello-World.git"
- ]
- },
- "issue_comment_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
- ]
- },
- "issue_events_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
- ]
- },
- "keys_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
- ]
- },
- "labels_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
- ]
- },
- "languages_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/languages"
- ]
- },
- "merges_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/merges"
- ]
- },
- "milestones_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
- ]
- },
- "notifications_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
- ]
- },
- "pulls_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
- ]
- },
- "releases_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
- ]
- },
- "ssh_url": {
- "type": "string",
- "examples": [
- "git@github.com:octocat/Hello-World.git"
- ]
- },
- "stargazers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/stargazers"
- ]
- },
- "statuses_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
- ]
- },
- "subscribers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscribers"
- ]
- },
- "subscription_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/subscription"
- ]
- },
- "tags_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/tags"
- ]
- },
- "teams_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/teams"
- ]
- },
- "trees_url": {
- "type": "string",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
- ]
- },
- "clone_url": {
- "type": "string",
- "examples": [
- "https://github.com/octocat/Hello-World.git"
- ]
- },
- "mirror_url": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "git:git.example.com/octocat/Hello-World"
- ]
- },
- "hooks_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "http://api.github.com/repos/octocat/Hello-World/hooks"
- ]
- },
- "svn_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://svn.github.com/octocat/Hello-World"
- ]
- },
- "homepage": {
- "type": [
- "string",
- "null"
- ],
- "format": "uri",
- "examples": [
- "https://github.com"
- ]
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "forks_count": {
- "type": "integer",
- "examples": [
- 9
- ]
- },
- "stargazers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "watchers_count": {
- "type": "integer",
- "examples": [
- 80
- ]
- },
- "size": {
- "type": "integer",
- "examples": [
- 108
- ]
- },
- "default_branch": {
- "description": "The default branch of the repository.",
- "type": "string",
- "examples": [
- "master"
- ]
- },
- "open_issues_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "is_template": {
- "description": "Whether this repository acts as a template that can be used to generate new repositories.",
- "default": false,
- "type": "boolean",
- "examples": [
- true
+ },
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/octocat/Hello-World.git"
+ ]
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://svn.github.com/octocat/Hello-World"
+ ]
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer",
+ "examples": [
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "deprecated": true,
+ "examples": [
+ true
+ ]
+ },
+ "has_discussions": {
+ "description": "Whether discussions are enabled.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_update_branch": {
+ "description": "Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "use_squash_pr_title_as_default": {
+ "type": "boolean",
+ "description": "Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.",
+ "default": false,
+ "deprecated": true
+ },
+ "squash_merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "COMMIT_OR_PR_TITLE"
+ ],
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
+ },
+ "squash_merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "COMMIT_MESSAGES",
+ "BLANK"
+ ],
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
+ },
+ "merge_commit_title": {
+ "type": "string",
+ "enum": [
+ "PR_TITLE",
+ "MERGE_MESSAGE"
+ ],
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
+ },
+ "merge_commit_message": {
+ "type": "string",
+ "enum": [
+ "PR_BODY",
+ "PR_TITLE",
+ "BLANK"
+ ],
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:42Z\""
+ ]
+ },
+ "anonymous_access_enabled": {
+ "type": "boolean",
+ "description": "Whether anonymous git access is enabled for this repository"
+ },
+ "code_search_index_status": {
+ "type": "object",
+ "description": "The status of the code search index for this repository",
+ "properties": {
+ "lexical_search_ok": {
+ "type": "boolean"
+ },
+ "lexical_commit_sha": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
},
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "description": "Whether issues are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "forks": {
+ "type": "integer"
},
- "has_projects": {
- "description": "Whether projects are enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "master_branch": {
+ "type": "string"
},
- "has_wiki": {
- "description": "Whether the wiki is enabled.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
+ "open_issues": {
+ "type": "integer"
},
- "has_pages": {
- "type": "boolean"
+ "watchers": {
+ "type": "integer"
},
- "has_downloads": {
- "description": "Whether downloads are enabled.",
+ "anonymous_access_enabled": {
+ "description": "Whether anonymous git access is allowed.",
"default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "archived": {
- "description": "Whether the repository is archived.",
- "default": false,
"type": "boolean"
},
- "disabled": {
- "type": "boolean",
- "description": "Returns whether or not this repository disabled."
- },
- "visibility": {
- "description": "The repository visibility: public, private, or internal.",
- "default": "public",
- "type": "string"
- },
- "pushed_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:06:43Z"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:01:12Z"
+ "code_of_conduct": {
+ "title": "Code Of Conduct Simple",
+ "description": "Code of Conduct Simple",
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/github/docs/community/code_of_conduct"
+ ]
+ },
+ "key": {
+ "type": "string",
+ "examples": [
+ "citizen_code_of_conduct"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Citizen Code of Conduct"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md"
+ ]
+ }
+ },
+ "required": [
+ "url",
+ "key",
+ "name",
+ "html_url"
]
},
- "updated_at": {
+ "security_and_analysis": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time",
- "examples": [
- "2011-01-26T19:14:43Z"
- ]
- },
- "allow_rebase_merge": {
- "description": "Whether to allow rebase merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "temp_clone_token": {
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Whether to allow squash merges for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_auto_merge": {
- "description": "Whether to allow Auto-merge to be used on pull requests.",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "delete_branch_on_merge": {
- "description": "Whether to delete head branches when pull requests are merged",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "allow_merge_commit": {
- "description": "Whether to allow merge commits for pull requests.",
- "default": true,
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "allow_forking": {
- "description": "Whether to allow forking this repo",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "description": "Whether to require contributors to sign off on web-based commits",
- "default": false,
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "subscribers_count": {
- "type": "integer"
- },
- "network_count": {
- "type": "integer"
- },
- "open_issues": {
- "type": "integer"
- },
- "watchers": {
- "type": "integer"
- },
- "master_branch": {
- "type": "string"
- }
- },
- "required": [
- "archive_url",
- "assignees_url",
- "blobs_url",
- "branches_url",
- "collaborators_url",
- "comments_url",
- "commits_url",
- "compare_url",
- "contents_url",
- "contributors_url",
- "deployments_url",
- "description",
- "downloads_url",
- "events_url",
- "fork",
- "forks_url",
- "full_name",
- "git_commits_url",
- "git_refs_url",
- "git_tags_url",
- "hooks_url",
- "html_url",
- "id",
- "node_id",
- "issue_comment_url",
- "issue_events_url",
- "issues_url",
- "keys_url",
- "labels_url",
- "languages_url",
- "merges_url",
- "milestones_url",
- "name",
- "notifications_url",
- "owner",
- "private",
- "pulls_url",
- "releases_url",
- "stargazers_url",
- "statuses_url",
- "subscribers_url",
- "subscription_url",
- "tags_url",
- "teams_url",
- "trees_url",
- "url",
- "clone_url",
- "default_branch",
- "forks",
- "forks_count",
- "git_url",
- "has_downloads",
- "has_issues",
- "has_projects",
- "has_wiki",
- "has_pages",
- "homepage",
- "language",
- "archived",
- "disabled",
- "mirror_url",
- "open_issues",
- "open_issues_count",
- "license",
- "pushed_at",
- "size",
- "ssh_url",
- "stargazers_count",
- "svn_url",
- "watchers",
- "watchers_count",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "Alternative response with extra repository information
"
- },
- {
- "httpStatusCode": "204",
- "description": "Response if repository is managed by this team
"
- },
- {
- "httpStatusCode": "404",
- "description": "Not Found if repository is not managed by this team
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "put",
- "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "title": "Add or update team repository permissions (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "permission",
- "in": "body",
- "description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin"
- ]
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions \" endpoint.
\n
\nTo 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.
\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 method .\"
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example of setting permission to pull",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "permission": "push"
- },
- "parameters": {
- "team_id": "TEAM_ID",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "title": "Remove a repository from a team (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "owner",
- "description": "The account owner of the repository. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\n
\nIf 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.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID",
- "owner": "OWNER",
- "repo": "REPO"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Administration\" repository permissions": "write",
- "\"Members\" organization permissions": "read",
- "\"Metadata\" repository permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/teams",
- "title": "List child teams (Legacy)",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List child teams endpoint.
\n
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "if child teams exist
",
- "example": [
- {
- "id": 2,
- "node_id": "MDQ6VGVhbTI=",
- "url": "https://api.github.com/teams/2",
- "name": "Original Roster",
- "slug": "original-roster",
- "description": "Started it all.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/2/members{/member}",
- "repositories_url": "https://api.github.com/teams/2/repos",
- "parent": {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos"
- },
- "html_url": "https://github.com/orgs/rails/teams/core"
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "privacy": {
- "type": "string"
- },
- "notification_setting": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "pull": {
- "type": "boolean"
- },
- "triage": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "maintain": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
},
- "required": [
- "pull",
- "triage",
- "push",
- "maintain",
- "admin"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "parent",
- "type"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "if child teams exist
"
- },
- {
- "httpStatusCode": "403",
- "description": "Forbidden
"
- },
- {
- "httpStatusCode": "404",
- "description": "Resource not found
"
- },
- {
- "httpStatusCode": "422",
- "description": "Validation failed, or the endpoint has been spammed.
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Members\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/user/teams",
- "title": "List teams for the authenticated user",
- "category": "teams",
- "subcategory": "teams",
- "parameters": [
- {
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
- },
- {
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "List all of the teams across all of the organizations to which the authenticated\nuser belongs.
\nOAuth app tokens and personal access tokens (classic) need the user, repo, or read:org scope to use this endpoint.
\nWhen using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json"
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "id": 1,
- "node_id": "MDQ6VGVhbTE=",
- "url": "https://api.github.com/teams/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league",
- "name": "Justice League",
- "slug": "justice-league",
- "description": "A great team.",
- "privacy": "closed",
- "notification_setting": "notifications_enabled",
- "permission": "admin",
- "members_url": "https://api.github.com/teams/1/members{/member}",
- "repositories_url": "https://api.github.com/teams/1/repos",
- "parent": null,
- "members_count": 3,
- "repos_count": 10,
- "created_at": "2017-07-14T16:53:42Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "organization": {
- "login": "github",
- "id": 1,
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
- "url": "https://api.github.com/orgs/github",
- "repos_url": "https://api.github.com/orgs/github/repos",
- "events_url": "https://api.github.com/orgs/github/events",
- "hooks_url": "https://api.github.com/orgs/github/hooks",
- "issues_url": "https://api.github.com/orgs/github/issues",
- "members_url": "https://api.github.com/orgs/github/members{/member}",
- "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "description": "A great organization",
- "name": "github",
- "company": "GitHub",
- "blog": "https://github.com/blog",
- "location": "San Francisco",
- "email": "octocat@github.com",
- "is_verified": true,
- "has_organization_projects": true,
- "has_repository_projects": true,
- "public_repos": 2,
- "public_gists": 1,
- "followers": 20,
- "following": 0,
- "html_url": "https://github.com/octocat",
- "created_at": "2008-01-14T04:33:35Z",
- "updated_at": "2017-08-17T12:37:15Z",
- "type": "Organization"
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Full Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Developers"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "enum": [
- "closed",
- "secret"
- ],
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "enum": [
- "notifications_enabled",
- "notifications_disabled"
- ],
- "examples": [
- "notifications_enabled"
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "push"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "parent": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VGVhbTE="
- ]
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/organizations/1/team/1/members{/member}"
- ]
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "examples": [
- "Justice League"
- ]
- },
- "description": {
- "description": "Description of the team",
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great team."
- ]
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "examples": [
- "admin"
- ]
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "examples": [
- "closed"
- ]
- },
- "notification_setting": {
- "description": "The notification setting the team has set",
- "type": "string",
- "examples": [
- "notifications_enabled"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/rails/teams/core"
- ]
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/1/repos"
- ]
- },
- "slug": {
- "type": "string",
- "examples": [
- "justice-league"
- ]
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "type": "string",
- "examples": [
- "uid=example,ou=users,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type"
- ]
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
- ]
- },
- "members_count": {
- "type": "integer",
- "examples": [
- 3
- ]
- },
- "repos_count": {
- "type": "integer",
- "examples": [
- 10
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-07-14T16:53:42Z"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2017-08-17T12:37:15Z"
- ]
- },
- "organization": {
- "title": "Team Organization",
- "description": "Team Organization",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "id": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDEyOk9yZ2FuaXphdGlvbjE="
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/orgs/github/events"
- ]
- },
- "hooks_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/hooks"
- ]
- },
- "issues_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/issues"
- ]
- },
- "members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/members{/member}"
- ]
- },
- "public_members_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/orgs/github/public_members{/member}"
- ]
- },
- "avatar_url": {
- "type": "string",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "A great organization"
- ]
- },
- "name": {
- "type": "string",
- "examples": [
- "github"
- ]
- },
- "company": {
- "type": "string",
- "examples": [
- "GitHub"
- ]
- },
- "blog": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/blog"
- ]
- },
- "location": {
- "type": "string",
- "examples": [
- "San Francisco"
- ]
- },
- "email": {
- "type": "string",
- "format": "email",
- "examples": [
- "octocat@github.com"
- ]
- },
- "twitter_username": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "github"
- ]
- },
- "is_verified": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_organization_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "has_repository_projects": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "public_repos": {
- "type": "integer",
- "examples": [
- 2
- ]
- },
- "public_gists": {
- "type": "integer",
- "examples": [
- 1
- ]
- },
- "followers": {
- "type": "integer",
- "examples": [
- 20
- ]
- },
- "following": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2008-01-14T04:33:35Z"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "Organization"
- ]
- },
- "total_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "owned_private_repos": {
- "type": "integer",
- "examples": [
- 100
- ]
- },
- "private_gists": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 81
- ]
- },
- "disk_usage": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 10000
- ]
- },
- "collaborators": {
- "type": [
- "integer",
- "null"
- ],
- "examples": [
- 8
- ]
- },
- "billing_email": {
- "type": [
- "string",
- "null"
- ],
- "format": "email",
- "examples": [
- "org@example.com"
- ]
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "integer"
- },
- "private_repos": {
- "type": "integer"
- },
- "filled_seats": {
- "type": "integer"
- },
- "seats": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "space",
- "private_repos"
- ]
- },
- "default_repository_permission": {
- "type": [
- "string",
- "null"
- ]
- },
- "members_can_create_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "two_factor_requirement_enabled": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- true
- ]
- },
- "members_allowed_repository_creation_type": {
- "type": "string",
- "examples": [
- "all"
- ]
- },
- "members_can_create_public_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_internal_repositories": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_public_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_create_private_pages": {
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "members_can_fork_private_repositories": {
- "type": [
- "boolean",
- "null"
- ],
- "examples": [
- false
- ]
- },
- "web_commit_signoff_required": {
- "type": "boolean",
- "examples": [
- false
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time"
- },
- "archived_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
}
},
- "required": [
- "login",
- "url",
- "id",
- "node_id",
- "repos_url",
- "events_url",
- "hooks_url",
- "issues_url",
- "members_url",
- "public_members_url",
- "avatar_url",
- "description",
- "html_url",
- "has_organization_projects",
- "has_repository_projects",
- "public_repos",
- "public_gists",
- "followers",
- "following",
- "type",
- "created_at",
- "updated_at",
- "archived_at"
- ]
- },
- "ldap_dn": {
- "type": "string",
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "examples": [
- "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
- ]
- },
- "type": {
- "description": "The ownership type of the team",
- "type": "string",
- "enum": [
- "enterprise",
- "organization"
- ]
- },
- "organization_id": {
- "type": "integer",
- "description": "Unique identifier of the organization to which this team belongs",
- "examples": [
- 37
- ]
- },
- "enterprise_id": {
- "type": "integer",
- "description": "Unique identifier of the enterprise to which this team belongs",
- "examples": [
- 42
- ]
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
}
},
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug",
- "type",
- "created_at",
- "updated_at",
- "members_count",
- "repos_count",
- "organization"
- ]
- }
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "has_discussions",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at",
+ "network_count",
+ "subscribers_count"
+ ]
}
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "202",
+ "description": "Accepted
"
},
{
- "httpStatusCode": "304",
- "description": "Not modified
"
+ "httpStatusCode": "400",
+ "description": "Bad Request
"
},
{
"httpStatusCode": "403",
@@ -784686,26 +834768,36 @@
{
"httpStatusCode": "404",
"description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
"progAccess": {
"userToServerRest": true,
- "serverToServer": false,
+ "serverToServer": true,
"fineGrainedPat": true,
- "permissions": [],
- "allowPermissionlessAccess": true
+ "permissions": [
+ {
+ "\"Repository security advisories\" repository permissions": "read",
+ "\"Administration\" repository permissions": "write"
+ }
+ ]
}
}
- ],
- "discussion-comments": [
+ ]
+ },
+ "teams": {
+ "teams": [
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
- "title": "List discussion comments",
+ "requestPath": "/orgs/{org}/teams",
+ "title": "List teams",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -784716,38 +834808,6 @@
"type": "string"
}
},
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
{
"name": "per_page",
"description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
@@ -784768,7 +834828,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": "List all comments on a team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Lists all teams in an organization that are visible to the authenticated user.
",
"codeExamples": [
{
"key": "default",
@@ -784776,9 +834836,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "org": "ORG"
}
},
"response": {
@@ -784787,89 +834845,135 @@
"description": "Response
",
"example": [
{
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -784877,281 +834981,141 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
- },
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Do you like apples?
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
- "updated_at",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
]
}
}
@@ -785162,6 +835126,10 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
}
],
"previews": [],
@@ -785171,7 +835139,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
@@ -785179,10 +835147,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "post",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
- "title": "Create a discussion comment",
+ "requestPath": "/orgs/{org}/teams",
+ "title": "Create a team",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -785192,36 +835160,73 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [
{
"type": "string",
- "name": "body",
+ "name": "name",
"in": "body",
- "description": "The discussion comment's body text.
",
+ "description": "The name of the team.
",
"isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "The description of the team.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "maintainers",
+ "in": "body",
+ "description": "List GitHub usernames for organization members who will become team maintainers.
"
+ },
+ {
+ "type": "array of strings",
+ "name": "repo_names",
+ "in": "body",
+ "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
"
+ },
+ {
+ "type": "string",
+ "name": "privacy",
+ "in": "body",
+ "description": "The level of privacy this team should have. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nDefault: secret \nFor a parent or child team: \nclosed - visible to all members of this organization. \nDefault for child team: closed \n ",
+ "enum": [
+ "secret",
+ "closed"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "notification_setting",
+ "in": "body",
+ "description": "The notification setting the team has chosen. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \nDefault: notifications_enabled \n ",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
+ "enum": [
+ "pull",
+ "push"
+ ],
+ "default": "pull"
+ },
+ {
+ "type": "integer",
+ "name": "parent_team_id",
+ "in": "body",
+ "description": "The ID of a team to set as the parent team.
"
}
],
- "descriptionHTML": "Creates a new comment on a team discussion.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "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 .\"
\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of maintainers. For more information, see \"About teams \".
",
"codeExamples": [
{
"key": "default",
@@ -785230,12 +835235,14 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "body": "Do you like apples?"
+ "name": "Justice League",
+ "description": "A great team",
+ "permission": "push",
+ "notification_setting": "notifications_enabled",
+ "privacy": "closed"
},
"parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "org": "ORG"
}
},
"response": {
@@ -785243,86 +835250,164 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -785330,281 +835415,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -785614,6 +835997,14 @@
{
"httpStatusCode": "201",
"description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -785623,7 +836014,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "write"
}
]
}
@@ -785631,10 +836022,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Get a discussion comment",
+ "requestPath": "/orgs/{org}/teams/{team_slug}",
+ "title": "Get a team by name",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -785653,28 +836044,10 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
}
],
"bodyParameters": [],
- "descriptionHTML": "Get a specific comment on a team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Gets a team using the team's slug. To create the slug, GitHub Enterprise Cloud replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator. For example, \"My TEam Näme\" would become my-team-name.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}.
\n
",
"codeExamples": [
{
"key": "default",
@@ -785683,9 +836056,7 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
@@ -785693,548 +836064,164 @@
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "body": {
- "description": "The main text of the comment.",
+ "node_id": {
"type": "string",
"examples": [
- "I agree with this suggestion."
+ "MDQ6VGVhbTE="
]
},
- "body_html": {
+ "url": {
+ "description": "URL for the team",
"type": "string",
+ "format": "uri",
"examples": [
- "Do you like apples?
"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "created_at": {
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "justice-league"
]
},
- "last_edited_at": {
+ "description": {
"type": [
"string",
"null"
],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
+ "A great team."
]
},
- "html_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
- "format": "uri",
+ "enum": [
+ "closed",
+ "secret"
+ ],
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
+ "closed"
]
},
- "node_id": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
"examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
+ "notifications_enabled"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
"examples": [
- 42
+ "push"
]
},
- "updated_at": {
+ "members_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "https://api.github.com/organizations/1/team/1/repos"
]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
- "node_id",
- "number",
- "updated_at",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Update a discussion comment",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion comment's body text.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": "Edits the body text of a discussion comment.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Do you like pineapples?"
- },
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like pineapples?",
- "body_html": "Do you like pineapples?
",
- "body_version": "e6907b24d9c93cc0c5024a7af5888116",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -786242,281 +836229,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -786526,6 +836811,10 @@
{
"httpStatusCode": "200",
"description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
}
],
"previews": [],
@@ -786535,18 +836824,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Delete a discussion comment",
+ "verb": "patch",
+ "requestPath": "/orgs/{org}/teams/{team_slug}",
+ "title": "Update a team",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -786565,669 +836854,242 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Deletes a comment on a team discussion.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "204",
- "description": "Response
"
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "204",
- "description": "No Content
"
}
],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments",
- "title": "List discussion comments (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
+ "bodyParameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the team.
"
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "The description of the team.
"
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
+ "type": "string",
+ "name": "privacy",
+ "in": "body",
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. When a team is nested, the privacy for parent teams cannot be secret. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
+ "enum": [
+ "secret",
+ "closed"
+ ]
},
{
- "name": "per_page",
- "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- }
+ "type": "string",
+ "name": "notification_setting",
+ "in": "body",
+ "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ]
},
{
- "name": "page",
- "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List discussion comments endpoint.
\n
\nList all comments on a team discussion.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": [
- {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- }
- ],
- "schema": {
- "type": "array",
- "items": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Do you like apples?
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
- "node_id",
- "number",
- "updated_at",
- "url"
- ]
- }
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments",
- "title": "Create a discussion comment (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
+ "enum": [
+ "pull",
+ "push",
+ "admin"
+ ],
+ "default": "pull"
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
+ "type": "integer or null",
+ "name": "parent_team_id",
"in": "body",
- "description": "The discussion comment's body text.
",
- "isRequired": true
+ "description": "The ID of a team to set as the parent team.
"
}
],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Create a discussion comment endpoint.
\n
\nCreates a new comment on a team discussion.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Example 1: Status Code 200",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "body": "Do you like apples?"
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
},
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Response when the updated information already exists
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -787235,891 +837097,763 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Get a discussion comment (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
},
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Get a discussion comment endpoint.
\n
\nGet a specific comment on a team discussion.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
{
"key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
+ },
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like apples?",
- "body_html": "Do you like apples?
",
- "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": null,
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-15T23:53:58Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "body": {
- "description": "The main text of the comment.",
+ "node_id": {
"type": "string",
"examples": [
- "I agree with this suggestion."
+ "MDQ6VGVhbTE="
]
},
- "body_html": {
+ "url": {
+ "description": "URL for the team",
"type": "string",
+ "format": "uri",
"examples": [
- "Do you like apples?
"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "created_at": {
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "justice-league"
]
},
- "last_edited_at": {
+ "description": {
"type": [
"string",
"null"
],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
+ "A great team."
]
},
- "html_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
- "format": "uri",
+ "enum": [
+ "closed",
+ "secret"
+ ],
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
+ "closed"
]
},
- "node_id": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
"examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
+ "notifications_enabled"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
"examples": [
- 42
+ "push"
]
},
- "updated_at": {
+ "members_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
- "node_id",
- "number",
- "updated_at",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "200",
- "description": "OK
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "read"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Update a discussion comment (Legacy)",
- "category": "teams",
- "subcategory": "discussion-comments",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion comment's body text.
",
- "isRequired": true
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a discussion comment endpoint.
\n
\nEdits the body text of a discussion comment.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "contentType": "application/json",
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "body": "Do you like pineapples?"
- },
- "parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Do you like pineapples?",
- "body_html": "Do you like pineapples?
",
- "body_version": "e6907b24d9c93cc0c5024a7af5888116",
- "created_at": "2018-01-15T23:53:58Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "discussion_url": "https://api.github.com/teams/2403582/discussions/1",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1",
- "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=",
- "number": 1,
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2403582/discussions/1/comments/1",
- "reactions": {
- "url": "https://api.github.com/teams/2403582/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion Comment",
- "description": "A reply to a discussion within a team.",
- "type": "object",
- "properties": {
- "author": {
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -788127,281 +837861,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the comment.",
- "type": "string",
- "examples": [
- "I agree with this suggestion."
- ]
- },
- "body_html": {
- "type": "string",
+ "members_count": {
+ "type": "integer",
"examples": [
- "Do you like apples?
"
+ 3
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "discussion_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion comment.",
- "type": "integer",
- "examples": [
- 42
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-15T23:53:58Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "created_at",
- "last_edited_at",
- "discussion_url",
- "html_url",
+ "id",
"node_id",
- "number",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -788410,7 +838442,23 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Response when the updated information already exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -788420,7 +838468,7 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "write"
}
]
}
@@ -788428,41 +838476,32 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "title": "Delete a discussion comment (Legacy)",
+ "requestPath": "/orgs/{org}/teams/{team_slug}",
+ "title": "Delete a team",
"category": "teams",
- "subcategory": "discussion-comments",
+ "subcategory": "teams",
"parameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "comment_number",
- "description": "The number that identifies the comment.
",
+ "name": "team_slug",
+ "description": "The slug of the team name.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a discussion comment endpoint.
\n
\nDeletes a comment on a team discussion.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "To delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}.
\n
",
"codeExamples": [
{
"key": "default",
@@ -788470,9 +838509,8 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER",
- "comment_number": "COMMENT_NUMBER"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
@@ -788494,20 +838532,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "write"
}
]
}
- }
- ],
- "discussions": [
+ },
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions",
- "title": "List discussions",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos",
+ "title": "List team repositories",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -788527,20 +838563,6 @@
"type": "string"
}
},
- {
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- }
- },
{
"name": "per_page",
"description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
@@ -788558,19 +838580,10 @@
"type": "integer",
"default": 1
}
- },
- {
- "name": "pinned",
- "in": "query",
- "required": false,
- "description": "Pinned discussions only filter
",
- "schema": {
- "type": "string"
- }
}
],
"bodyParameters": [],
- "descriptionHTML": "List all discussions on a team's page.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Lists a team's repositories visible to the authenticated user.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos.
\n
",
"codeExamples": [
{
"key": "default",
@@ -788588,7 +838601,11 @@
"description": "Response
",
"example": [
{
- "author": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -788608,394 +838625,968 @@
"type": "User",
"site_admin": false
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
"private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
+ },
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_validity_checks": {
+ "status": "disabled"
+ }
}
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
"type": "object",
"properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
]
}
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "https://github.com/octocat/Hello-World"
]
},
- "body_html": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "archive_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "comments_count": {
- "type": "integer",
+ "assignees_url": {
+ "type": "string",
"examples": [
- 0
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "created_at": {
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
"type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
]
},
- "last_edited_at": {
+ "license": {
"type": [
- "string",
+ "object",
"null"
],
- "format": "date-time"
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
},
- "html_url": {
- "type": "string",
- "format": "uri",
+ "forks": {
+ "type": "integer",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ 0
]
},
- "node_id": {
- "type": "string",
+ "open_issues": {
+ "type": "integer",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ 0
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
+ "watchers": {
"type": "integer",
"examples": [
- 42
+ 0
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
+ "allow_forking": {
+ "type": "boolean"
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
+ "web_commit_signoff_required": {
"type": "boolean",
"examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ false
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "-1": {
- "type": "integer"
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "laugh": {
- "type": "integer"
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "confused": {
- "type": "integer"
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "heart": {
- "type": "integer"
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "hooray": {
- "type": "integer"
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "eyes": {
- "type": "integer"
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
},
- "rocket": {
- "type": "integer"
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
}
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
"comments_url",
- "created_at",
- "last_edited_at",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
"url"
]
}
@@ -789016,18 +839607,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions",
- "title": "Create a discussion",
+ "verb": "get",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
+ "title": "Check team permissions for a repository",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -789046,54 +839637,51 @@
"schema": {
"type": "string"
}
- }
- ],
- "bodyParameters": [
- {
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
",
- "isRequired": true
},
{
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion post's body text.
",
- "isRequired": true
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
{
- "type": "boolean",
- "name": "private",
- "in": "body",
- "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.
",
- "default": false
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
- "descriptionHTML": "Creates a new discussion post on a team's page.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route POST /organizations/{org_id}/team/{team_id}/discussions.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": "Checks whether a team has admin, push, maintain, triage, or pull permission for a repository. Repositories inherited through a parent team will also be checked.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the application/vnd.github.v3.repository+json accept header.
\nIf a team doesn't have permission for the repository, you will receive a 404 Not Found response status.
\nIf the repository is private, you must have at least read permission for that repository, and your token must have the repo or admin:org scope. Otherwise, you will receive a 404 Not Found response status.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
"codeExamples": [
{
- "key": "default",
+ "key": "alternative-response-with-repository-permissions",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Our first team post",
- "body": "Hi! This is an area for us to collaborate as a team."
- },
"parameters": {
"org": "ORG",
- "team_slug": "TEAM_SLUG"
+ "team_slug": "TEAM_SLUG",
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Alternative response with repository permissions
",
"example": {
- "author": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -789113,41 +839701,234 @@
"type": "User",
"site_admin": false
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
"private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "maintain": false,
+ "push": false,
+ "triage": false,
+ "pull": true
+ },
+ "role_name": "read",
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Team Repository",
+ "description": "A team's access to a repository.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "owner": {
"anyOf": [
{
"type": "null"
@@ -789322,667 +840103,596 @@
}
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "https://github.com/octocat/Hello-World"
]
},
- "body_html": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "https://api.github.com/repos/octocat/Hello-World"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "archive_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "comments_count": {
- "type": "integer",
+ "assignees_url": {
+ "type": "string",
"examples": [
- 0
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
]
},
- "created_at": {
+ "deployments_url": {
"type": "string",
- "format": "date-time",
+ "format": "uri",
"examples": [
- "2018-01-25T18:56:31Z"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
},
- "html_url": {
+ "events_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/events"
]
},
- "node_id": {
+ "forks_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "http://api.github.com/repos/octocat/Hello-World/forks"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
+ "git_commits_url": {
+ "type": "string",
"examples": [
- 42
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
+ "git_refs_url": {
+ "type": "string",
"examples": [
- true
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
+ "git_tags_url": {
+ "type": "string",
"examples": [
- true
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
]
},
- "team_url": {
+ "git_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ "git:github.com/octocat/Hello-World.git"
]
},
- "title": {
- "description": "The title of the discussion.",
+ "issue_comment_url": {
"type": "string",
"examples": [
- "How can we improve our workflow?"
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
]
},
- "updated_at": {
+ "issue_events_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
]
},
- "url": {
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/languages"
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
- "node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
- ]
- }
- }
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "title": "Get a discussion",
- "category": "teams",
- "subcategory": "discussions",
- "parameters": [
- {
- "name": "org",
- "description": "The organization name. The name is not case sensitive.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_slug",
- "description": "The slug of the team name.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": "Get a specific discussion on a team's page.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
- {
- "key": "default",
- "request": {
- "description": "Example",
- "acceptHeader": "application/vnd.github.v3+json",
- "parameters": {
- "org": "ORG",
- "team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
- }
- },
- "response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "notifications_url": {
"type": "string",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
]
},
- "body_html": {
+ "pulls_url": {
"type": "string",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "releases_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
]
},
- "comments_count": {
- "type": "integer",
+ "ssh_url": {
+ "type": "string",
"examples": [
- 0
+ "git@github.com:octocat/Hello-World.git"
]
},
- "comments_url": {
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
]
},
- "created_at": {
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "https://github.com/octocat/Hello-World.git"
]
},
- "last_edited_at": {
+ "mirror_url": {
"type": [
"string",
"null"
],
- "format": "date-time"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "html_url": {
+ "hooks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "node_id": {
+ "svn_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer",
"examples": [
- 42
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
"type": "boolean",
"examples": [
true
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
"type": "boolean",
"examples": [
true
]
},
- "team_url": {
- "type": "string",
- "format": "uri",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ true
]
},
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "How can we improve our workflow?"
+ "2011-01-26T19:01:12Z"
]
},
"updated_at": {
- "type": "string",
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2011-01-26T19:14:43Z"
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ true
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
]
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
"comments_url",
- "created_at",
- "last_edited_at",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
}
}
@@ -789991,7 +840701,15 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Alternative response with repository permissions
"
+ },
+ {
+ "httpStatusCode": "204",
+ "description": "Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header.
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if team does not have permission for the repository
"
}
],
"previews": [],
@@ -790001,18 +840719,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "title": "Update a discussion",
+ "verb": "put",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
+ "title": "Add or update team repository permissions",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -790033,466 +840752,60 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
}
}
],
"bodyParameters": [
{
"type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
"
- },
- {
- "type": "string",
- "name": "body",
+ "name": "permission",
"in": "body",
- "description": "The discussion post's body text.
"
+ "description": "The permission to grant the team on this repository. We accept the following permissions to be set: pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
"
}
],
- "descriptionHTML": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "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. 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 method .\"
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
\nFor more information about the permission levels, see \"Repository permission levels for an organization \".
",
"codeExamples": [
{
"key": "default",
"request": {
"contentType": "application/json",
- "description": "Example",
+ "description": "Adding a team to an organization repository with the write role",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "title": "Welcome to our first team post"
+ "permission": "push"
},
"parameters": {
"org": "ORG",
"team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
- "statusCode": "200",
- "contentType": "application/json",
- "description": "Response
",
- "example": {
- "author": {
- "login": "octocat",
- "id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 1,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Welcome to our first team post",
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
- },
- "schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
- "type": "object",
- "properties": {
- "author": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "title": "Simple User",
- "description": "A GitHub user.",
- "type": "object",
- "properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "examples": [
- 1
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat"
- ]
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/octocat"
- ]
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/followers"
- ]
- },
- "following_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
- ]
- },
- "gists_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
- ]
- },
- "starred_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- ]
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/subscriptions"
- ]
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/orgs"
- ]
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/repos"
- ]
- },
- "events_url": {
- "type": "string",
- "examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
- ]
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/users/octocat/received_events"
- ]
- },
- "type": {
- "type": "string",
- "examples": [
- "User"
- ]
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "examples": [
- "\"2020-07-09T00:17:55Z\""
- ]
- },
- "user_view_type": {
- "type": "string",
- "examples": [
- "public"
- ]
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ]
- }
- ]
- },
- "body": {
- "description": "The main text of the discussion.",
- "type": "string",
- "examples": [
- "Please suggest improvements to our workflow in comments."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Hi! This is an area for us to collaborate as a team
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "comments_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
- }
- },
- "required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
- "node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
- ]
- }
+ "statusCode": "204",
+ "description": "Response
"
}
}
],
"statusCodes": [
{
- "httpStatusCode": "200",
- "description": "OK
"
+ "httpStatusCode": "204",
+ "description": "No Content
"
}
],
"previews": [],
@@ -790502,7 +840815,9 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
@@ -790510,10 +840825,10 @@
{
"serverUrl": "https://api.github.com",
"verb": "delete",
- "requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "title": "Delete a discussion",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
+ "title": "Remove a repository from a team",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "org",
@@ -790534,17 +840849,26 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
}
}
],
"bodyParameters": [],
- "descriptionHTML": "Delete a discussion from a team's page.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.
\n
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": "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. This does not delete the repository, it just removes it from the team.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}.
\n
",
"codeExamples": [
{
"key": "default",
@@ -790554,7 +840878,8 @@
"parameters": {
"org": "ORG",
"team_slug": "TEAM_SLUG",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
@@ -790576,7 +840901,9 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
@@ -790584,32 +840911,27 @@
{
"serverUrl": "https://api.github.com",
"verb": "get",
- "requestPath": "/teams/{team_id}/discussions",
- "title": "List discussions (Legacy)",
+ "requestPath": "/orgs/{org}/teams/{team_slug}/teams",
+ "title": "List child teams",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
- "name": "team_id",
- "description": "The unique identifier of the team.
",
+ "name": "org",
+ "description": "The organization name. The name is not case sensitive.
",
"in": "path",
"required": true,
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "direction",
- "description": "The direction to sort the results by.
",
- "in": "query",
- "required": false,
+ "name": "team_slug",
+ "description": "The slug of the team name.
",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
+ "type": "string"
}
},
{
@@ -790632,7 +840954,7 @@
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List discussions endpoint.
\n
\nList all discussions on a team's page.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
+ "descriptionHTML": "Lists the child teams of the team specified by {team_slug}.
\n Note
\n
\nYou can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/teams.
\n
",
"codeExamples": [
{
"key": "default",
@@ -790640,103 +840962,158 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
- "team_id": "TEAM_ID"
+ "org": "ORG",
+ "team_slug": "TEAM_SLUG"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "if child teams exist
",
"example": [
{
- "author": {
- "login": "octocat",
+ "id": 2,
+ "node_id": "MDQ6VGVhbTI=",
+ "url": "https://api.github.com/teams/2",
+ "name": "Original Roster",
+ "slug": "original-roster",
+ "description": "Started it all.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/2/members{/member}",
+ "repositories_url": "https://api.github.com/teams/2/repos",
+ "parent": {
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos"
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "html_url": "https://github.com/orgs/rails/teams/core"
}
],
"schema": {
"type": "array",
"items": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -790744,320 +841121,141 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
- },
- "body": {
- "description": "The main text of the discussion.",
- "type": "string",
- "examples": [
- "Please suggest improvements to our workflow in comments."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Hi! This is an area for us to collaborate as a team
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "comments_count": {
- "type": "integer",
- "examples": [
- 0
- ]
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
- ]
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
- ]
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
- ]
- },
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
- ]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
]
}
}
@@ -791067,7 +841265,7 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "if child teams exist
"
}
],
"previews": [],
@@ -791077,18 +841275,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "post",
- "requestPath": "/teams/{team_id}/discussions",
- "title": "Create a discussion (Legacy)",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}",
+ "title": "Get a team (Legacy)",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "team_id",
@@ -791100,135 +841298,181 @@
}
}
],
- "bodyParameters": [
- {
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
",
- "isRequired": true
- },
- {
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion post's body text.
",
- "isRequired": true
- },
- {
- "type": "boolean",
- "name": "private",
- "in": "body",
- "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.
",
- "default": false
- }
- ],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Create a discussion endpoint.
\n
\nCreates a new discussion post on a team's page.
\nThis endpoint triggers notifications . Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"Rate limits for the API \" and \"Best practices for using the REST API .\"
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the Get a team by name endpoint.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
- "contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Our first team post",
- "body": "Hi! This is an area for us to collaborate as a team."
- },
"parameters": {
"team_id": "TEAM_ID"
}
},
"response": {
- "statusCode": "201",
+ "statusCode": "200",
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
"html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -791236,473 +841480,1621 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "members_count": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "repos_count": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "created_at": {
"type": "string",
+ "format": "date-time",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "2017-07-14T16:53:42Z"
]
},
- "body_html": {
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-08-17T12:37:15Z"
+ ]
+ },
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
+ },
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "login",
+ "url",
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
"type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "type": {
+ "description": "The ownership type of the team",
"type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ 37
]
},
- "comments_count": {
+ "enterprise_id": {
"type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- 0
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
+ "updated_at",
+ "members_count",
+ "repos_count",
+ "organization"
+ ]
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "patch",
+ "requestPath": "/teams/{team_id}",
+ "title": "Update a team (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "name",
+ "in": "body",
+ "description": "The name of the team.
",
+ "isRequired": true
+ },
+ {
+ "type": "string",
+ "name": "description",
+ "in": "body",
+ "description": "The description of the team.
"
+ },
+ {
+ "type": "string",
+ "name": "privacy",
+ "in": "body",
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. The options are: \nFor a non-nested team:
\n\nsecret - only visible to organization owners and members of this team. \nclosed - visible to all members of this organization. \nFor a parent or child team: \nclosed - visible to all members of this organization. \n ",
+ "enum": [
+ "secret",
+ "closed"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "notification_setting",
+ "in": "body",
+ "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting intact. The options are:
\n\nnotifications_enabled - team members receive notifications when the team is @mentioned. \nnotifications_disabled - no one receives notifications. \n ",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ]
+ },
+ {
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "Closing down notice . The permission that new repositories will be added to the team with when none is specified.
",
+ "enum": [
+ "pull",
+ "push",
+ "admin"
+ ],
+ "default": "pull"
+ },
+ {
+ "type": "integer or null",
+ "name": "parent_team_id",
+ "in": "body",
+ "description": "The ID of a team to set as the parent team.
"
+ }
+ ],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a team endpoint.
\n
\nTo edit a team, the authenticated user must either be an organization owner or a team maintainer.
\n Note
\n
\nWith nested teams, the privacy for parent teams cannot be secret.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example 1: Status Code 200",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
+ },
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response when the updated information already exists
",
+ "example": {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
+ "id": 1,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
+ "html_url": "https://github.com/octocat",
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
+ }
+ },
+ "schema": {
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
]
},
- "comments_url": {
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "created_at": {
+ "html_url": {
"type": "string",
- "format": "date-time",
+ "format": "uri",
"examples": [
- "2018-01-25T18:56:31Z"
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
]
},
- "last_edited_at": {
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
"type": [
"string",
"null"
],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "A great team."
]
},
- "node_id": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "closed"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
"examples": [
- 42
+ "notifications_enabled"
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
"examples": [
- true
+ "push"
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
+ "members_url": {
+ "type": "string",
"examples": [
- true
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "team_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ },
+ "members_count": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "repos_count": {
+ "type": "integer",
"examples": [
- "How can we improve our workflow?"
+ 10
]
},
- "updated_at": {
+ "created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2017-07-14T16:53:42Z"
]
},
- "url": {
+ "updated_at": {
"type": "string",
- "format": "uri",
+ "format": "date-time",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
- }
- ],
- "statusCodes": [
- {
- "httpStatusCode": "201",
- "description": "Created
"
- }
- ],
- "previews": [],
- "progAccess": {
- "userToServerRest": true,
- "serverToServer": true,
- "fineGrainedPat": true,
- "permissions": [
- {
- "\"Team discussions\" organization permissions": "write"
- }
- ]
- }
- },
- {
- "serverUrl": "https://api.github.com",
- "verb": "get",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "title": "Get a discussion (Legacy)",
- "category": "teams",
- "subcategory": "discussions",
- "parameters": [
- {
- "name": "team_id",
- "description": "The unique identifier of the team.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
},
- {
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
- "in": "path",
- "required": true,
- "schema": {
- "type": "integer"
- }
- }
- ],
- "bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Get a discussion endpoint.
\n
\nGet a specific discussion on a team's page.
\nOAuth app tokens and personal access tokens (classic) need the read:discussion scope to use this endpoint.
",
- "codeExamples": [
{
"key": "default",
"request": {
- "description": "Example",
+ "contentType": "application/json",
+ "description": "Example 2: Status Code 201",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "new team name",
+ "description": "new team description",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled"
+ },
"parameters": {
- "team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "team_id": "TEAM_ID"
}
},
"response": {
- "statusCode": "200",
+ "statusCode": "201",
"contentType": "application/json",
"description": "Response
",
"example": {
- "author": {
- "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
"id": 1,
- "node_id": "MDQ6VXNlcjE=",
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
- "gravatar_id": "",
- "url": "https://api.github.com/users/octocat",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 0,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": null,
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Our first team post",
- "updated_at": "2018-01-25T18:56:31Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
+ "html_url": "https://github.com/octocat",
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
}
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
"anyOf": [
{
"type": "null"
},
{
- "title": "Simple User",
- "description": "A GitHub user.",
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"properties": {
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "email": {
- "type": [
- "string",
- "null"
- ]
- },
- "login": {
- "type": "string",
- "examples": [
- "octocat"
- ]
- },
"id": {
+ "description": "Unique identifier of the team",
"type": "integer",
- "format": "int64",
"examples": [
1
]
@@ -791710,320 +843102,579 @@
"node_id": {
"type": "string",
"examples": [
- "MDQ6VXNlcjE="
- ]
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/images/error/octocat_happy.gif"
- ]
- },
- "gravatar_id": {
- "type": [
- "string",
- "null"
- ],
- "examples": [
- "41d064eb2195891e12d0413f63227ea7"
+ "MDQ6VGVhbTE="
]
},
"url": {
+ "description": "URL for the team",
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat"
+ "https://api.github.com/organizations/1/team/1"
]
},
- "html_url": {
+ "members_url": {
"type": "string",
- "format": "uri",
"examples": [
- "https://github.com/octocat"
+ "https://api.github.com/organizations/1/team/1/members{/member}"
]
},
- "followers_url": {
+ "name": {
+ "description": "Name of the team",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/followers"
+ "Justice League"
]
},
- "following_url": {
- "type": "string",
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
"examples": [
- "https://api.github.com/users/octocat/following{/other_user}"
+ "A great team."
]
},
- "gists_url": {
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/gists{/gist_id}"
+ "admin"
]
},
- "starred_url": {
+ "privacy": {
+ "description": "The level of privacy this team should have",
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ "closed"
]
},
- "subscriptions_url": {
+ "notification_setting": {
+ "description": "The notification setting the team has set",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/subscriptions"
+ "notifications_enabled"
]
},
- "organizations_url": {
+ "html_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/orgs"
+ "https://github.com/orgs/rails/teams/core"
]
},
- "repos_url": {
+ "repositories_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/users/octocat/repos"
+ "https://api.github.com/organizations/1/team/1/repos"
]
},
- "events_url": {
+ "slug": {
"type": "string",
"examples": [
- "https://api.github.com/users/octocat/events{/privacy}"
+ "justice-league"
]
},
- "received_events_url": {
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
"type": "string",
- "format": "uri",
"examples": [
- "https://api.github.com/users/octocat/received_events"
+ "uid=example,ou=users,dc=github,dc=com"
]
},
"type": {
+ "description": "The ownership type of the team",
"type": "string",
- "examples": [
- "User"
+ "enum": [
+ "enterprise",
+ "organization"
]
},
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
"examples": [
- "\"2020-07-09T00:17:55Z\""
+ 37
]
},
- "user_view_type": {
- "type": "string",
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
"examples": [
- "public"
+ 42
]
}
},
"required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
"id",
"node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
]
}
]
},
- "body": {
- "description": "The main text of the discussion.",
- "type": "string",
- "examples": [
- "Please suggest improvements to our workflow in comments."
- ]
- },
- "body_html": {
- "type": "string",
- "examples": [
- "Hi! This is an area for us to collaborate as a team
"
- ]
- },
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
- "type": "string",
- "examples": [
- "0307116bbf7ced493b8d8a346c650b71"
- ]
- },
- "comments_count": {
+ "members_count": {
"type": "integer",
"examples": [
- 0
+ 3
]
},
- "comments_url": {
- "type": "string",
- "format": "uri",
+ "repos_count": {
+ "type": "integer",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ 10
]
},
"created_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "last_edited_at": {
- "type": [
- "string",
- "null"
- ],
- "format": "date-time"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
- ]
- },
- "node_id": {
- "type": "string",
- "examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
- ]
- },
- "number": {
- "description": "The unique sequence number of a team discussion.",
- "type": "integer",
- "examples": [
- 42
- ]
- },
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
- "type": "boolean",
- "examples": [
- true
- ]
- },
- "team_url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027"
- ]
- },
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
- "examples": [
- "How can we improve our workflow?"
+ "2017-07-14T16:53:42Z"
]
},
"updated_at": {
"type": "string",
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
- ]
- },
- "url": {
- "type": "string",
- "format": "uri",
- "examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ "2017-08-17T12:37:15Z"
]
},
- "reactions": {
- "title": "Reaction Rollup",
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
"type": "object",
"properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
"url": {
"type": "string",
- "format": "uri"
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
},
- "total_count": {
- "type": "integer"
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
},
- "+1": {
- "type": "integer"
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
},
- "-1": {
- "type": "integer"
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
},
- "laugh": {
- "type": "integer"
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
},
- "confused": {
- "type": "integer"
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
},
- "heart": {
- "type": "integer"
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
},
- "hooray": {
- "type": "integer"
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
},
- "eyes": {
- "type": "integer"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
},
- "rocket": {
- "type": "integer"
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
}
},
"required": [
+ "login",
"url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
]
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
- "comments_url",
- "created_at",
- "last_edited_at",
- "html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type",
+ "created_at",
"updated_at",
- "url"
+ "members_count",
+ "repos_count",
+ "organization"
]
}
}
@@ -792032,7 +843683,23 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Response when the updated information already exists
"
+ },
+ {
+ "httpStatusCode": "201",
+ "description": "Created
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
}
],
"previews": [],
@@ -792042,18 +843709,18 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "read"
+ "\"Members\" organization permissions": "write"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "patch",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "title": "Update a discussion (Legacy)",
+ "verb": "delete",
+ "requestPath": "/teams/{team_id}",
+ "title": "Delete a team (Legacy)",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "team_id",
@@ -792063,53 +843730,1181 @@
"schema": {
"type": "integer"
}
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a team endpoint.
\n
\nTo delete a team, the authenticated user must be an organization owner or team maintainer.
\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "write"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}/repos",
+ "title": "List team repositories (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
- }
- ],
- "bodyParameters": [
+ },
{
- "type": "string",
- "name": "title",
- "in": "body",
- "description": "The discussion post's title.
"
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
},
{
- "type": "string",
- "name": "body",
- "in": "body",
- "description": "The discussion post's body text.
"
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
}
],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Update a discussion endpoint.
\n
\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List team repositories endpoint.
\n
",
"codeExamples": [
{
"key": "default",
"request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
"contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "has_discussions": false,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "push": false,
+ "pull": true
+ },
+ "security_and_analysis": {
+ "advanced_security": {
+ "status": "enabled"
+ },
+ "secret_scanning": {
+ "status": "enabled"
+ },
+ "secret_scanning_push_protection": {
+ "status": "disabled"
+ },
+ "secret_scanning_validity_checks": {
+ "status": "disabled"
+ }
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Minimal Repository",
+ "description": "Minimal Repository",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1296269
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Hello-World"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "owner": {
+ "title": "Simple User",
+ "description": "A GitHub user.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "email": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "login": {
+ "type": "string",
+ "examples": [
+ "octocat"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VXNlcjE="
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "gravatar_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "41d064eb2195891e12d0413f63227ea7"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "followers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/followers"
+ ]
+ },
+ "following_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/following{/other_user}"
+ ]
+ },
+ "gists_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/gists{/gist_id}"
+ ]
+ },
+ "starred_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/starred{/owner}{/repo}"
+ ]
+ },
+ "subscriptions_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/subscriptions"
+ ]
+ },
+ "organizations_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/orgs"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/users/octocat/events{/privacy}"
+ ]
+ },
+ "received_events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/users/octocat/received_events"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "User"
+ ]
+ },
+ "site_admin": {
+ "type": "boolean"
+ },
+ "starred_at": {
+ "type": "string",
+ "examples": [
+ "\"2020-07-09T00:17:55Z\""
+ ]
+ },
+ "user_view_type": {
+ "type": "string",
+ "examples": [
+ "public"
+ ]
+ }
+ },
+ "required": [
+ "avatar_url",
+ "events_url",
+ "followers_url",
+ "following_url",
+ "gists_url",
+ "gravatar_id",
+ "html_url",
+ "id",
+ "node_id",
+ "login",
+ "organizations_url",
+ "received_events_url",
+ "repos_url",
+ "site_admin",
+ "starred_url",
+ "subscriptions_url",
+ "type",
+ "url"
+ ]
+ },
+ "private": {
+ "type": "boolean"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat/Hello-World"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
+ ]
+ },
+ "assignees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
+ ]
+ },
+ "blobs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
+ ]
+ },
+ "comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
+ ]
+ },
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string"
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string"
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
+ "type": "string"
+ },
+ "mirror_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
+ ]
+ },
+ "svn_url": {
+ "type": "string"
+ },
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
+ "type": "integer"
+ },
+ "stargazers_count": {
+ "type": "integer"
+ },
+ "watchers_count": {
+ "type": "integer"
+ },
+ "size": {
+ "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
+ "type": "integer"
+ },
+ "default_branch": {
+ "type": "string"
+ },
+ "open_issues_count": {
+ "type": "integer"
+ },
+ "is_template": {
+ "type": "boolean"
+ },
+ "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"
+ },
+ "has_discussions": {
+ "type": "boolean"
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean"
+ },
+ "visibility": {
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:01:12Z"
+ ]
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:14:43Z"
+ ]
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ }
+ }
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "delete_branch_on_merge": {
+ "type": "boolean"
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "code_of_conduct": {
+ "title": "Code Of Conduct",
+ "description": "Code Of Conduct",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "contributor_covenant"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "Contributor Covenant"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/codes_of_conduct/contributor_covenant"
+ ]
+ },
+ "body": {
+ "type": "string",
+ "examples": [
+ "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
+ ]
+ },
+ "html_url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url",
+ "html_url",
+ "key",
+ "name"
+ ]
+ },
+ "license": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "spdx_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "node_id": {
+ "type": "string"
+ }
+ }
+ },
+ "forks": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "open_issues": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "watchers": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "allow_forking": {
+ "type": "boolean"
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n",
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "code_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "dependabot_security_updates": {
+ "description": "Enable or disable Dependabot security updates for the repository.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The enablement status of Dependabot security updates for the repository.",
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_non_provider_patterns": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_ai_detection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_validity_checks": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "custom_properties": {
+ "type": "object",
+ "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
+ "comments_url",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
+ "html_url",
+ "id",
+ "node_id",
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
+ "title": "Check team permissions for a repository (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\n
\n Note
\n
\nRepositories inherited through a parent team will also 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 via the Accept header:
",
+ "codeExamples": [
+ {
+ "key": "alternative-response-with-extra-repository-information",
+ "request": {
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
- "bodyParameters": {
- "title": "Welcome to our first team post"
- },
"parameters": {
"team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
"statusCode": "200",
"contentType": "application/json",
- "description": "Response
",
+ "description": "Alternative response with extra repository information
",
"example": {
- "author": {
+ "id": 1296269,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
+ "name": "Hello-World",
+ "full_name": "octocat/Hello-World",
+ "owner": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
@@ -792129,41 +844924,234 @@
"type": "User",
"site_admin": false
},
- "body": "Hi! This is an area for us to collaborate as a team.",
- "body_html": "Hi! This is an area for us to collaborate as a team
",
- "body_version": "0d495416a700fb06133c612575d92bfb",
- "comments_count": 1,
- "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments",
- "created_at": "2018-01-25T18:56:31Z",
- "last_edited_at": "2018-01-26T18:22:20Z",
- "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1",
- "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==",
- "number": 1,
- "pinned": false,
- "private": false,
- "team_url": "https://api.github.com/teams/2343027",
- "title": "Welcome to our first team post",
- "updated_at": "2018-01-26T18:22:20Z",
- "url": "https://api.github.com/teams/2343027/discussions/1",
- "reactions": {
- "url": "https://api.github.com/teams/2343027/discussions/1/reactions",
- "total_count": 5,
- "+1": 3,
- "-1": 1,
- "laugh": 0,
- "confused": 0,
- "heart": 1,
- "hooray": 0,
- "eyes": 1,
- "rocket": 1
- }
+ "private": false,
+ "html_url": "https://github.com/octocat/Hello-World",
+ "description": "This your first repo!",
+ "fork": false,
+ "url": "https://api.github.com/repos/octocat/Hello-World",
+ "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
+ "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
+ "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
+ "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
+ "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
+ "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
+ "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
+ "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
+ "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
+ "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
+ "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
+ "events_url": "https://api.github.com/repos/octocat/Hello-World/events",
+ "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
+ "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
+ "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
+ "git_url": "git:github.com/octocat/Hello-World.git",
+ "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
+ "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
+ "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
+ "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
+ "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
+ "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
+ "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
+ "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
+ "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
+ "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
+ "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
+ "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
+ "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
+ "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
+ "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
+ "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
+ "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
+ "clone_url": "https://github.com/octocat/Hello-World.git",
+ "mirror_url": "git:git.example.com/octocat/Hello-World",
+ "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks",
+ "svn_url": "https://svn.github.com/octocat/Hello-World",
+ "homepage": "https://github.com",
+ "language": null,
+ "forks_count": 9,
+ "stargazers_count": 80,
+ "watchers_count": 80,
+ "size": 108,
+ "default_branch": "master",
+ "open_issues_count": 0,
+ "is_template": false,
+ "topics": [
+ "octocat",
+ "atom",
+ "electron",
+ "api"
+ ],
+ "has_issues": true,
+ "has_projects": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_downloads": true,
+ "archived": false,
+ "disabled": false,
+ "visibility": "public",
+ "pushed_at": "2011-01-26T19:06:43Z",
+ "created_at": "2011-01-26T19:01:12Z",
+ "updated_at": "2011-01-26T19:14:43Z",
+ "permissions": {
+ "admin": false,
+ "maintain": false,
+ "push": false,
+ "triage": false,
+ "pull": true
+ },
+ "role_name": "read",
+ "allow_rebase_merge": true,
+ "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
+ "allow_squash_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": true,
+ "allow_merge_commit": true,
+ "subscribers_count": 42,
+ "network_count": 0,
+ "license": {
+ "key": "mit",
+ "name": "MIT License",
+ "url": "https://api.github.com/licenses/mit",
+ "spdx_id": "MIT",
+ "node_id": "MDc6TGljZW5zZW1pdA==",
+ "html_url": "https://api.github.com/licenses/mit"
+ },
+ "forks": 1,
+ "open_issues": 1,
+ "watchers": 1
},
"schema": {
- "title": "Team Discussion",
- "description": "A team discussion is a persistent record of a free-form conversation within a team.",
+ "title": "Team Repository",
+ "description": "A team's access to a repository.",
"type": "object",
"properties": {
- "author": {
+ "id": {
+ "description": "Unique identifier of the repository",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
+ ]
+ },
+ "name": {
+ "description": "The name of the repository.",
+ "type": "string",
+ "examples": [
+ "Team Environment"
+ ]
+ },
+ "full_name": {
+ "type": "string",
+ "examples": [
+ "octocat/Hello-World"
+ ]
+ },
+ "license": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "License Simple",
+ "description": "License Simple",
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "examples": [
+ "mit"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "MIT License"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/licenses/mit"
+ ]
+ },
+ "spdx_id": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "MIT"
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDc6TGljZW5zZW1pdA=="
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "url",
+ "spdx_id",
+ "node_id"
+ ]
+ }
+ ]
+ },
+ "forks": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "admin",
+ "pull",
+ "push"
+ ]
+ },
+ "role_name": {
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "owner": {
"anyOf": [
{
"type": "null"
@@ -792338,183 +845326,596 @@
}
]
},
- "body": {
- "description": "The main text of the discussion.",
+ "private": {
+ "description": "Whether the repository is private or public.",
+ "default": false,
+ "type": "boolean"
+ },
+ "html_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "Please suggest improvements to our workflow in comments."
+ "https://github.com/octocat/Hello-World"
]
},
- "body_html": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "This your first repo!"
+ ]
+ },
+ "fork": {
+ "type": "boolean"
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/repos/octocat/Hello-World"
+ ]
+ },
+ "archive_url": {
"type": "string",
"examples": [
- "Hi! This is an area for us to collaborate as a team
"
+ "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}"
]
},
- "body_version": {
- "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.",
+ "assignees_url": {
"type": "string",
"examples": [
- "0307116bbf7ced493b8d8a346c650b71"
+ "http://api.github.com/repos/octocat/Hello-World/assignees{/user}"
]
},
- "comments_count": {
- "type": "integer",
+ "blobs_url": {
+ "type": "string",
"examples": [
- 0
+ "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}"
+ ]
+ },
+ "branches_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/branches{/branch}"
+ ]
+ },
+ "collaborators_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}"
]
},
"comments_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/comments{/number}"
+ ]
+ },
+ "commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/commits{/sha}"
+ ]
+ },
+ "compare_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}"
+ ]
+ },
+ "contents_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contents/{+path}"
+ ]
+ },
+ "contributors_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/contributors"
+ ]
+ },
+ "deployments_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1/comments"
+ "http://api.github.com/repos/octocat/Hello-World/deployments"
]
},
- "created_at": {
+ "downloads_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/downloads"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/events"
+ ]
+ },
+ "forks_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/forks"
+ ]
+ },
+ "git_commits_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}"
+ ]
+ },
+ "git_refs_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}"
+ ]
+ },
+ "git_tags_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}"
+ ]
+ },
+ "git_url": {
+ "type": "string",
+ "examples": [
+ "git:github.com/octocat/Hello-World.git"
+ ]
+ },
+ "issue_comment_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}"
+ ]
+ },
+ "issue_events_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/issues{/number}"
+ ]
+ },
+ "keys_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}"
+ ]
+ },
+ "labels_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/labels{/name}"
+ ]
+ },
+ "languages_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/languages"
+ ]
+ },
+ "merges_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/merges"
+ ]
+ },
+ "milestones_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/milestones{/number}"
+ ]
+ },
+ "notifications_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}"
+ ]
+ },
+ "pulls_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/pulls{/number}"
+ ]
+ },
+ "releases_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/releases{/id}"
+ ]
+ },
+ "ssh_url": {
+ "type": "string",
+ "examples": [
+ "git@github.com:octocat/Hello-World.git"
+ ]
+ },
+ "stargazers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/stargazers"
+ ]
+ },
+ "statuses_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}"
+ ]
+ },
+ "subscribers_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscribers"
+ ]
+ },
+ "subscription_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/subscription"
+ ]
+ },
+ "tags_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/tags"
+ ]
+ },
+ "teams_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/teams"
+ ]
+ },
+ "trees_url": {
+ "type": "string",
+ "examples": [
+ "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}"
+ ]
+ },
+ "clone_url": {
"type": "string",
- "format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "https://github.com/octocat/Hello-World.git"
]
},
- "last_edited_at": {
+ "mirror_url": {
"type": [
"string",
"null"
],
- "format": "date-time"
+ "format": "uri",
+ "examples": [
+ "git:git.example.com/octocat/Hello-World"
+ ]
},
- "html_url": {
+ "hooks_url": {
"type": "string",
"format": "uri",
"examples": [
- "https://github.com/orgs/github/teams/justice-league/discussions/1"
+ "http://api.github.com/repos/octocat/Hello-World/hooks"
]
},
- "node_id": {
+ "svn_url": {
"type": "string",
+ "format": "uri",
"examples": [
- "MDE0OlRlYW1EaXNjdXNzaW9uMQ=="
+ "https://svn.github.com/octocat/Hello-World"
]
},
- "number": {
- "description": "The unique sequence number of a team discussion.",
+ "homepage": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "uri",
+ "examples": [
+ "https://github.com"
+ ]
+ },
+ "language": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "forks_count": {
"type": "integer",
"examples": [
- 42
+ 9
+ ]
+ },
+ "stargazers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "watchers_count": {
+ "type": "integer",
+ "examples": [
+ 80
+ ]
+ },
+ "size": {
+ "type": "integer",
+ "examples": [
+ 108
+ ]
+ },
+ "default_branch": {
+ "description": "The default branch of the repository.",
+ "type": "string",
+ "examples": [
+ "master"
+ ]
+ },
+ "open_issues_count": {
+ "type": "integer",
+ "examples": [
+ 0
]
},
- "pinned": {
- "description": "Whether or not this discussion should be pinned for easy retrieval.",
+ "is_template": {
+ "description": "Whether this repository acts as a template that can be used to generate new repositories.",
+ "default": false,
"type": "boolean",
"examples": [
true
]
},
- "private": {
- "description": "Whether or not this discussion should be restricted to team members and organization owners.",
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "has_issues": {
+ "description": "Whether issues are enabled.",
+ "default": true,
"type": "boolean",
"examples": [
true
]
},
- "team_url": {
- "type": "string",
- "format": "uri",
+ "has_projects": {
+ "description": "Whether projects are enabled.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027"
+ true
]
},
- "title": {
- "description": "The title of the discussion.",
- "type": "string",
+ "has_wiki": {
+ "description": "Whether the wiki is enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_pages": {
+ "type": "boolean"
+ },
+ "has_downloads": {
+ "description": "Whether downloads are enabled.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "archived": {
+ "description": "Whether the repository is archived.",
+ "default": false,
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "description": "Returns whether or not this repository disabled."
+ },
+ "visibility": {
+ "description": "The repository visibility: public, private, or internal.",
+ "default": "public",
+ "type": "string"
+ },
+ "pushed_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "examples": [
+ "2011-01-26T19:06:43Z"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
"examples": [
- "How can we improve our workflow?"
+ "2011-01-26T19:01:12Z"
]
},
"updated_at": {
- "type": "string",
+ "type": [
+ "string",
+ "null"
+ ],
"format": "date-time",
"examples": [
- "2018-01-25T18:56:31Z"
+ "2011-01-26T19:14:43Z"
]
},
- "url": {
- "type": "string",
- "format": "uri",
+ "allow_rebase_merge": {
+ "description": "Whether to allow rebase merges for pull requests.",
+ "default": true,
+ "type": "boolean",
"examples": [
- "https://api.github.com/organizations/1/team/2343027/discussions/1"
+ true
]
},
- "reactions": {
- "title": "Reaction Rollup",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "total_count": {
- "type": "integer"
- },
- "+1": {
- "type": "integer"
- },
- "-1": {
- "type": "integer"
- },
- "laugh": {
- "type": "integer"
- },
- "confused": {
- "type": "integer"
- },
- "heart": {
- "type": "integer"
- },
- "hooray": {
- "type": "integer"
- },
- "eyes": {
- "type": "integer"
- },
- "rocket": {
- "type": "integer"
- }
- },
- "required": [
- "url",
- "total_count",
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "eyes",
- "rocket"
+ "temp_clone_token": {
+ "type": "string"
+ },
+ "allow_squash_merge": {
+ "description": "Whether to allow squash merges for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_auto_merge": {
+ "description": "Whether to allow Auto-merge to be used on pull requests.",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "delete_branch_on_merge": {
+ "description": "Whether to delete head branches when pull requests are merged",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "allow_merge_commit": {
+ "description": "Whether to allow merge commits for pull requests.",
+ "default": true,
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "allow_forking": {
+ "description": "Whether to allow forking this repo",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "description": "Whether to require contributors to sign off on web-based commits",
+ "default": false,
+ "type": "boolean",
+ "examples": [
+ false
]
+ },
+ "subscribers_count": {
+ "type": "integer"
+ },
+ "network_count": {
+ "type": "integer"
+ },
+ "open_issues": {
+ "type": "integer"
+ },
+ "watchers": {
+ "type": "integer"
+ },
+ "master_branch": {
+ "type": "string"
}
},
"required": [
- "author",
- "body",
- "body_html",
- "body_version",
- "comments_count",
+ "archive_url",
+ "assignees_url",
+ "blobs_url",
+ "branches_url",
+ "collaborators_url",
"comments_url",
- "created_at",
- "last_edited_at",
+ "commits_url",
+ "compare_url",
+ "contents_url",
+ "contributors_url",
+ "deployments_url",
+ "description",
+ "downloads_url",
+ "events_url",
+ "fork",
+ "forks_url",
+ "full_name",
+ "git_commits_url",
+ "git_refs_url",
+ "git_tags_url",
+ "hooks_url",
"html_url",
- "pinned",
- "private",
+ "id",
"node_id",
- "number",
- "team_url",
- "title",
- "updated_at",
- "url"
+ "issue_comment_url",
+ "issue_events_url",
+ "issues_url",
+ "keys_url",
+ "labels_url",
+ "languages_url",
+ "merges_url",
+ "milestones_url",
+ "name",
+ "notifications_url",
+ "owner",
+ "private",
+ "pulls_url",
+ "releases_url",
+ "stargazers_url",
+ "statuses_url",
+ "subscribers_url",
+ "subscription_url",
+ "tags_url",
+ "teams_url",
+ "trees_url",
+ "url",
+ "clone_url",
+ "default_branch",
+ "forks",
+ "forks_count",
+ "git_url",
+ "has_downloads",
+ "has_issues",
+ "has_projects",
+ "has_wiki",
+ "has_pages",
+ "homepage",
+ "language",
+ "archived",
+ "disabled",
+ "mirror_url",
+ "open_issues",
+ "open_issues_count",
+ "license",
+ "pushed_at",
+ "size",
+ "ssh_url",
+ "stargazers_count",
+ "svn_url",
+ "watchers",
+ "watchers_count",
+ "created_at",
+ "updated_at"
]
}
}
@@ -792523,7 +845924,15 @@
"statusCodes": [
{
"httpStatusCode": "200",
- "description": "OK
"
+ "description": "Alternative response with extra repository information
"
+ },
+ {
+ "httpStatusCode": "204",
+ "description": "Response if repository is managed by this team
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found if repository is not managed by this team
"
}
],
"previews": [],
@@ -792533,18 +845942,19 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
}
]
}
},
{
"serverUrl": "https://api.github.com",
- "verb": "delete",
- "requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "title": "Delete a discussion (Legacy)",
+ "verb": "put",
+ "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
+ "title": "Add or update team repository permissions (Legacy)",
"category": "teams",
- "subcategory": "discussions",
+ "subcategory": "teams",
"parameters": [
{
"name": "team_id",
@@ -792556,17 +845966,126 @@
}
},
{
- "name": "discussion_number",
- "description": "The number that identifies the discussion.
",
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "type": "string",
+ "name": "permission",
+ "in": "body",
+ "description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
+ "enum": [
+ "pull",
+ "push",
+ "admin"
+ ]
+ }
+ ],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions \" endpoint.
\n
\nTo 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.
\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 method .\"
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of setting permission to pull",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "permission": "push"
+ },
+ "parameters": {
+ "team_id": "TEAM_ID",
+ "owner": "OWNER",
+ "repo": "REPO"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "delete",
+ "requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
+ "title": "Remove a repository from a team (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
+ },
+ {
+ "name": "owner",
+ "description": "The account owner of the repository. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "description": "The name of the repository without the .git extension. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
"bodyParameters": [],
- "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Delete a discussion endpoint.
\n
\nDelete a discussion from a team's page.
\nOAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
",
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\n
\nIf 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.
",
"codeExamples": [
{
"key": "default",
@@ -792575,7 +846094,8 @@
"acceptHeader": "application/vnd.github.v3+json",
"parameters": {
"team_id": "TEAM_ID",
- "discussion_number": "DISCUSSION_NUMBER"
+ "owner": "OWNER",
+ "repo": "REPO"
}
},
"response": {
@@ -792597,10 +846117,1202 @@
"fineGrainedPat": true,
"permissions": [
{
- "\"Team discussions\" organization permissions": "write"
+ "\"Administration\" repository permissions": "write",
+ "\"Members\" organization permissions": "read",
+ "\"Metadata\" repository permissions": "read"
+ }
+ ]
+ }
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/teams/{team_id}/teams",
+ "title": "List child teams (Legacy)",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "team_id",
+ "description": "The unique identifier of the team.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": " Warning
\n
\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new List child teams endpoint.
\n
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "team_id": "TEAM_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "if child teams exist
",
+ "example": [
+ {
+ "id": 2,
+ "node_id": "MDQ6VGVhbTI=",
+ "url": "https://api.github.com/teams/2",
+ "name": "Original Roster",
+ "slug": "original-roster",
+ "description": "Started it all.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/2/members{/member}",
+ "repositories_url": "https://api.github.com/teams/2/repos",
+ "parent": {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos"
+ },
+ "html_url": "https://github.com/orgs/rails/teams/core"
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "node_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "privacy": {
+ "type": "string"
+ },
+ "notification_setting": {
+ "type": "string"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "object",
+ "properties": {
+ "pull": {
+ "type": "boolean"
+ },
+ "triage": {
+ "type": "boolean"
+ },
+ "push": {
+ "type": "boolean"
+ },
+ "maintain": {
+ "type": "boolean"
+ },
+ "admin": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "pull",
+ "triage",
+ "push",
+ "maintain",
+ "admin"
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "members_url": {
+ "type": "string"
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "parent",
+ "type"
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "if child teams exist
"
+ },
+ {
+ "httpStatusCode": "403",
+ "description": "Forbidden
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Resource not found
"
+ },
+ {
+ "httpStatusCode": "422",
+ "description": "Validation failed, or the endpoint has been spammed.
"
+ }
+ ],
+ "previews": [],
+ "progAccess": {
+ "userToServerRest": true,
+ "serverToServer": true,
+ "fineGrainedPat": true,
+ "permissions": [
+ {
+ "\"Members\" organization permissions": "read"
}
]
}
+ },
+ {
+ "serverUrl": "https://api.github.com",
+ "verb": "get",
+ "requestPath": "/user/teams",
+ "title": "List teams for the authenticated user",
+ "category": "teams",
+ "subcategory": "teams",
+ "parameters": [
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 30
+ }
+ },
+ {
+ "name": "page",
+ "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API .\"
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 1
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "List all of the teams across all of the organizations to which the authenticated\nuser belongs.
\nOAuth app tokens and personal access tokens (classic) need the user, repo, or read:org scope to use this endpoint.
\nWhen using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization.
",
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json"
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": [
+ {
+ "id": 1,
+ "node_id": "MDQ6VGVhbTE=",
+ "url": "https://api.github.com/teams/1",
+ "html_url": "https://github.com/orgs/github/teams/justice-league",
+ "name": "Justice League",
+ "slug": "justice-league",
+ "description": "A great team.",
+ "privacy": "closed",
+ "notification_setting": "notifications_enabled",
+ "permission": "admin",
+ "members_url": "https://api.github.com/teams/1/members{/member}",
+ "repositories_url": "https://api.github.com/teams/1/repos",
+ "parent": null,
+ "members_count": 3,
+ "repos_count": 10,
+ "created_at": "2017-07-14T16:53:42Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "organization": {
+ "login": "github",
+ "id": 1,
+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
+ "url": "https://api.github.com/orgs/github",
+ "repos_url": "https://api.github.com/orgs/github/repos",
+ "events_url": "https://api.github.com/orgs/github/events",
+ "hooks_url": "https://api.github.com/orgs/github/hooks",
+ "issues_url": "https://api.github.com/orgs/github/issues",
+ "members_url": "https://api.github.com/orgs/github/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "description": "A great organization",
+ "name": "github",
+ "company": "GitHub",
+ "blog": "https://github.com/blog",
+ "location": "San Francisco",
+ "email": "octocat@github.com",
+ "is_verified": true,
+ "has_organization_projects": true,
+ "has_repository_projects": true,
+ "public_repos": 2,
+ "public_gists": 1,
+ "followers": 20,
+ "following": 0,
+ "html_url": "https://github.com/octocat",
+ "created_at": "2008-01-14T04:33:35Z",
+ "updated_at": "2017-08-17T12:37:15Z",
+ "type": "Organization"
+ }
+ }
+ ],
+ "schema": {
+ "type": "array",
+ "items": {
+ "title": "Full Team",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 42
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Developers"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "enum": [
+ "closed",
+ "secret"
+ ],
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "enum": [
+ "notifications_enabled",
+ "notifications_disabled"
+ ],
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "push"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "parent": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "title": "Team Simple",
+ "description": "Groups of organization members that gives permissions on specified repositories.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique identifier of the team",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDQ6VGVhbTE="
+ ]
+ },
+ "url": {
+ "description": "URL for the team",
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/members{/member}"
+ ]
+ },
+ "name": {
+ "description": "Name of the team",
+ "type": "string",
+ "examples": [
+ "Justice League"
+ ]
+ },
+ "description": {
+ "description": "Description of the team",
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great team."
+ ]
+ },
+ "permission": {
+ "description": "Permission that the team will have for its repositories",
+ "type": "string",
+ "examples": [
+ "admin"
+ ]
+ },
+ "privacy": {
+ "description": "The level of privacy this team should have",
+ "type": "string",
+ "examples": [
+ "closed"
+ ]
+ },
+ "notification_setting": {
+ "description": "The notification setting the team has set",
+ "type": "string",
+ "examples": [
+ "notifications_enabled"
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/orgs/rails/teams/core"
+ ]
+ },
+ "repositories_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/organizations/1/team/1/repos"
+ ]
+ },
+ "slug": {
+ "type": "string",
+ "examples": [
+ "justice-league"
+ ]
+ },
+ "ldap_dn": {
+ "description": "Distinguished Name (DN) that team maps to within LDAP environment",
+ "type": "string",
+ "examples": [
+ "uid=example,ou=users,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the enterprise to which this team belongs",
+ "examples": [
+ 42
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "node_id",
+ "url",
+ "members_url",
+ "name",
+ "description",
+ "permission",
+ "html_url",
+ "repositories_url",
+ "slug",
+ "type"
+ ]
+ }
+ ]
+ },
+ "members_count": {
+ "type": "integer",
+ "examples": [
+ 3
+ ]
+ },
+ "repos_count": {
+ "type": "integer",
+ "examples": [
+ 10
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-07-14T16:53:42Z"
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2017-08-17T12:37:15Z"
+ ]
+ },
+ "organization": {
+ "title": "Team Organization",
+ "description": "Team Organization",
+ "type": "object",
+ "properties": {
+ "login": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "id": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDEyOk9yZ2FuaXphdGlvbjE="
+ ]
+ },
+ "url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github"
+ ]
+ },
+ "repos_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/repos"
+ ]
+ },
+ "events_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://api.github.com/orgs/github/events"
+ ]
+ },
+ "hooks_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/hooks"
+ ]
+ },
+ "issues_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/issues"
+ ]
+ },
+ "members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/members{/member}"
+ ]
+ },
+ "public_members_url": {
+ "type": "string",
+ "examples": [
+ "https://api.github.com/orgs/github/public_members{/member}"
+ ]
+ },
+ "avatar_url": {
+ "type": "string",
+ "examples": [
+ "https://github.com/images/error/octocat_happy.gif"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "A great organization"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "examples": [
+ "github"
+ ]
+ },
+ "company": {
+ "type": "string",
+ "examples": [
+ "GitHub"
+ ]
+ },
+ "blog": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/blog"
+ ]
+ },
+ "location": {
+ "type": "string",
+ "examples": [
+ "San Francisco"
+ ]
+ },
+ "email": {
+ "type": "string",
+ "format": "email",
+ "examples": [
+ "octocat@github.com"
+ ]
+ },
+ "twitter_username": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "examples": [
+ "github"
+ ]
+ },
+ "is_verified": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_organization_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "has_repository_projects": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "public_repos": {
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "public_gists": {
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "followers": {
+ "type": "integer",
+ "examples": [
+ 20
+ ]
+ },
+ "following": {
+ "type": "integer",
+ "examples": [
+ 0
+ ]
+ },
+ "html_url": {
+ "type": "string",
+ "format": "uri",
+ "examples": [
+ "https://github.com/octocat"
+ ]
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "examples": [
+ "2008-01-14T04:33:35Z"
+ ]
+ },
+ "type": {
+ "type": "string",
+ "examples": [
+ "Organization"
+ ]
+ },
+ "total_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "owned_private_repos": {
+ "type": "integer",
+ "examples": [
+ 100
+ ]
+ },
+ "private_gists": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 81
+ ]
+ },
+ "disk_usage": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 10000
+ ]
+ },
+ "collaborators": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "examples": [
+ 8
+ ]
+ },
+ "billing_email": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "email",
+ "examples": [
+ "org@example.com"
+ ]
+ },
+ "plan": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "space": {
+ "type": "integer"
+ },
+ "private_repos": {
+ "type": "integer"
+ },
+ "filled_seats": {
+ "type": "integer"
+ },
+ "seats": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "space",
+ "private_repos"
+ ]
+ },
+ "default_repository_permission": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "members_can_create_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "two_factor_requirement_enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ true
+ ]
+ },
+ "members_allowed_repository_creation_type": {
+ "type": "string",
+ "examples": [
+ "all"
+ ]
+ },
+ "members_can_create_public_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_internal_repositories": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_public_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_create_private_pages": {
+ "type": "boolean",
+ "examples": [
+ true
+ ]
+ },
+ "members_can_fork_private_repositories": {
+ "type": [
+ "boolean",
+ "null"
+ ],
+ "examples": [
+ false
+ ]
+ },
+ "web_commit_signoff_required": {
+ "type": "boolean",
+ "examples": [
+ false
+ ]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "archived_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "login",
+ "url",
+ "id",
+ "node_id",
+ "repos_url",
+ "events_url",
+ "hooks_url",
+ "issues_url",
+ "members_url",
+ "public_members_url",
+ "avatar_url",
+ "description",
+ "html_url",
+ "has_organization_projects",
+ "has_repository_projects",
+ "public_repos",
+ "public_gists",
+ "followers",
+ "following",
+ "type",
+ "created_at",
+ "updated_at",
+ "archived_at"
+ ]
+ },
+ "ldap_dn": {
+ "type": "string",
+ "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
+ "examples": [
+ "cn=Enterprise Ops,ou=teams,dc=github,dc=com"
+ ]
+ },
+ "type": {
+ "description": "The ownership type of the team",
+ "type": "string",
+ "enum": [
+ "enterprise",
+ "organization"
+ ]
+ },
+ "organization_id": {
+ "type": "integer",
+ "description": "Unique identifier of the organization to which this team belongs",
+ "examples": [
+ 37
+ ]
+ },
+ "enterprise_id": {
+ "type": "integer",
+ "description": "Unique identifier of the ent{"code":"deadline_exceeded","msg":"operation timed out"}